Board index » cppbuilder » Problem closing an application when I use an Active X

Problem closing an application when I use an Active X


2005-02-21 06:04:05 PM
cppbuilder107
Hello:
I am having problem when I use an Active X and I close my application. I can use the Active X without problems, all its functions are done perfectly, but when I close my application, windows arise an execption, and I can not cautch the exception. This is the second time that this problem happens me, with two differents Active X. I disconnect from the ActiveX with the method Disconnect, and the application doesn īt arise any exception. But when I close the form, the exception arises. Somebody could help me?. I am forgot something, is it a problem from the Active X or from its use or from the environment?.
waiting an answer.
Antonio Farfan MAdrid
 
 

Re:Problem closing an application when I use an Active X

Are you releasing the object properly? Remember that every time an object is
created, its' reference count is incremented. This count is decremented when
it is release. This count must be zero before it will be released.
Good luck
Jeff www.ruamkwamkid.com
"antonio Farfan madrid" < XXXX@XXXXX.COM >wrote in message
Quote

Hello:

I am having problem when I use an Active X and I close my application. I
can use the Active X without problems, all its functions are done perfectly,
but when I close my application, windows arise an execption, and I can not
cautch the exception. This is the second time that this problem happens me,
with two differents Active X. I disconnect from the ActiveX with the method
Disconnect, and the application doesn īt arise any exception. But when I
close the form, the exception arises. Somebody could help me?. I am forgot
something, is it a problem from the Active X or from its use or from the
environment?.
Quote

waiting an answer.
Antonio Farfan MAdrid