Discussion:
utilcls.h error
(too old to reply)
Jan VD
2008-05-20 15:56:30 UTC
Permalink
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)
2008-05-20 16:17:16 UTC
Permalink
You are trying to call the '->' operator on a TComInterface instance that
does not currently hold a valid interface pointer in it.
Post by Jan VD
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
2008-05-20 17:20:12 UTC
Permalink
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
Remy Lebeau (TeamB)
2008-05-20 17:47:26 UTC
Permalink
Post by Jan VD
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?
Post by Jan VD
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
Jan VD
2008-05-20 18:18:39 UTC
Permalink
Post by Remy Lebeau (TeamB)
Post by Jan VD
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

Jan VD
2008-05-20 17:35:55 UTC
Permalink
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
Remy Lebeau (TeamB)
2008-05-20 17:48:03 UTC
Permalink
Post by Jan VD
I have not called a 'TComInterface' as far as I
know or not direct.
Well, something in your code is.


Gambit
Jan VD
2008-05-20 17:37:14 UTC
Permalink
I meant utilcls.h
sorry
Loading...