Board index » delphi » Pb in Com Components (D3.02) Please Help

Pb in Com Components (D3.02) Please Help

Hello all of you.
I have a big problem with Com Components
I use TSocket Server (as NTservice).
I call Methods in Remote Data Modules in Clients (via AppServer)
My RDM is in a EXE component, this component uses others Com
components in DLL's.
When some exceptions occur, I catch them in my SAFECALL methods in the
DLL's components, and raise it to my RDM EXE component. Everything is
ok except if a lot of exceptions occur in a short time (4 reapeted
exceptions for example).
In this case I get Acces Violations in my Dll's components the 3rd ou
4th time when I acces GLOBAL VARIABLES, and only on these.
I do not use multithread. All Method calls are serialized by Com.
I've heard about problems with exceptions in Com components in Delphi
3.01, but I thought it was Ok now.
Is there a problem whith having exceptions in Com Dll's components in
Delphi 3.02?
All my resources are freed each time (blocks try..finally).
Thanks

PS: sorry for my poor english.

Laurent Salmon
salmon_...@mail.dotcom.fr

 

Re:Pb in Com Components (D3.02) Please Help


Hello,

Difficult to tell. You can get access violations from somewhere else too,
such as accessing bad objects or freeing objects the wrong way. Most likely
something else is happening as a result of the exceptions and that something
is whats causing your problem. Best way to find out is to consistently
duplicate the problem and then debug from there.

have fun,
--
Binh Ly
Brickhouse Data Systems, Inc.
http://www.brickhouse.com

Quote
Laurent Salmon wrote in message <6uvepn$t0...@forums.borland.com>...
>Hello all of you.
>I have a big problem with Com Components
>I use TSocket Server (as NTservice).
>I call Methods in Remote Data Modules in Clients (via AppServer)
>My RDM is in a EXE component, this component uses others Com
>components in DLL's.
>When some exceptions occur, I catch them in my SAFECALL methods in the
>DLL's components, and raise it to my RDM EXE component. Everything is
>ok except if a lot of exceptions occur in a short time (4 reapeted
>exceptions for example).
>In this case I get Acces Violations in my Dll's components the 3rd ou
>4th time when I acces GLOBAL VARIABLES, and only on these.
>I do not use multithread. All Method calls are serialized by Com.
>I've heard about problems with exceptions in Com components in Delphi
>3.01, but I thought it was Ok now.
>Is there a problem whith having exceptions in Com Dll's components in
>Delphi 3.02?
>All my resources are freed each time (blocks try..finally).
>Thanks

>PS: sorry for my poor english.

>Laurent Salmon
>salmon_...@mail.dotcom.fr

Other Threads