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
> 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
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
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
> 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
> I have not called a 'TComInterface' as far as I
> know or not direct.
Well, something in your code is.
Gambit
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