Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

utilcls.h error

1,201 views
Skip to first unread message

Jan VD

unread,
May 20, 2008, 11:56:30 AM5/20/08
to
Hi everybody,

Can you help me with this one:


On some PC's my application gives this error:

intf != 0 @ c:\program files\borland\cbuilder\include\vcl\utilcls.h/2916.

On top of the message box there is _ASSERTE:

Some PC's don't seem to have this problem.
It happens when a file is opened.

Personally, I did not see this error on any of the PC's that I can get my
hands on PC,
but two users informed me about this problem.

I am using Builder version 6

Thank you very much.


Jan VD


Remy Lebeau (TeamB)

unread,
May 20, 2008, 12:17:16 PM5/20/08
to

"Jan VD" <usm...@skynet.be> wrote in message
news:4832f4ac$1...@newsgroups.borland.com...

> On some PC's my application gives this error:
>
> intf != 0 @ c:\program files\borland\cbuilder\include\vcl\utilcls.h/2916.

You are trying to call the '->' operator on a TComInterface instance that
does not currently hold a valid interface pointer in it.

> Some PC's don't seem to have this problem.

The COM object you are trying to access likely is not installed on those
machines, and your code is probably not checking for that before trying to
use the COM object.


Gambit


Jan VD

unread,
May 20, 2008, 1:20:12 PM5/20/08
to
Hi Remy,

In the mean time I found that a user had a working version.
With a newer version (with minor changes) this problem occurs, on the same
PC.

I have checked both the projects BPR file for differences for the good and
bed version,
this are the only differences I can find:
Only jpmopencompc6.bpl is mentioned first in the bad list.


Good version:

[Excluded Packages]
c:\program
files\borland\cbuilder6\Projects\Bpl\esbpcs_base_db_dt_c6.bpl=ESBPCS Base Db
for BCB 6 - Design Time
c:\program
files\borland\cbuilder6\Projects\Bpl\esbpcs_calcs_db_dt_c6.bpl=ESBPCS Calcs
Db for BCB 6 - Design Time
c:\program files\borland\cbuilder6\Projects\Bpl\jpmopencompc6.bpl=JPM Open
Components for BCB 6
c:\program files\borland\cbuilder6\Projects\Bpl\jpmopen_esbpcs_c6.bpl=JPM
Open/ESBPCS Components for BCB 6


Error version:

[Excluded Packages]
c:\program files\borland\cbuilder6\Projects\Bpl\jpmopencompc6.bpl=JPM Open
Components for BCB 6
c:\program
files\borland\cbuilder6\Projects\Bpl\esbpcs_base_db_dt_c6.bpl=ESBPCS Base Db
for BCB 6 - Design Time
c:\program
files\borland\cbuilder6\Projects\Bpl\esbpcs_calcs_db_dt_c6.bpl=ESBPCS Calcs
Db for BCB 6 - Design Time
c:\program files\borland\cbuilder6\Projects\Bpl\jpmopen_esbpcs_c6.bpl=JPM
Open/ESBPCS Components for BCB 6

Does this mean anything?


Thank you for helping me!


Jan


Jan VD

unread,
May 20, 2008, 1:35:55 PM5/20/08
to
Hi Remy,

To answer to your reply:
I have not called a 'TComInterface' as far as I know
or not direct.

I don't include utils.h in my source code...
Can this help?

Thanks

Jan


Jan VD

unread,
May 20, 2008, 1:37:14 PM5/20/08
to
I meant utilcls.h
sorry


Remy Lebeau (TeamB)

unread,
May 20, 2008, 1:47:26 PM5/20/08
to

"Jan VD" <usm...@skynet.be> wrote in message
news:48330851$1...@newsgroups.borland.com...

> In the mean time I found that a user had a working version.
> With a newer version (with minor changes) this problem occurs,
> on the same PC.

What is different in the code between the two versions?

> I have checked both the projects BPR file for differences for
> the good and bed version

BPRs have nothing to do with this issue. It is happening in your actual
code.


Gambit


Remy Lebeau (TeamB)

unread,
May 20, 2008, 1:48:03 PM5/20/08
to

"Jan VD" <usm...@skynet.be> wrote in message
news:48330bfe$1...@newsgroups.borland.com...

> I have not called a 'TComInterface' as far as I
> know or not direct.

Well, something in your code is.


Gambit


Jan VD

unread,
May 20, 2008, 2:18:39 PM5/20/08
to

>> In the mean time I found that a user had a working version.
>> With a newer version (with minor changes) this problem occurs,
>> on the same PC.
>
> What is different in the code between the two versions?
>

I have added a TEdit box
and removed a TToolbutton
and changed simple code for AnsiStrings.
Nothing spectacular.

However I compiled this version with
the 'Use dynamic RTL" option on
and 'build with runtime packages' option on.
To see what happened to the size of the exe.
But I afterwards I put these options back as thy were
and compiled again.

Jan


Jan


0 new messages