We have written several COM objects in Delphi4 (Threading Model of Both) and
running on a multi processor NT found that we got access violations and
invalid pointer operations.
To isolate the problem, we ended up creating a simple COM object (both
threading model) and a test program that creates and destroys this object in
several threads for a specified number of iterations. We got access
voilations in the in-process COM server DLL when we used only 2 threads.
Now this object is just the shell created by the D4 wizard. So one would
have expected it to work okay.
Any ideas what could be wrong?
My suspicion is that the ComServer object is not completely thread safe and
on multi processor systems we are seeing a race condition.
I put a critical section in the creation of the COM objects in the Client
App and presto, it works!.
The only problem is the the client App our COM objects will be used from is
IIS/ASP. We cannot place such as locking mechanism here.
Any Ideas?
Regards
Vikash
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, 5 May 1999 10:26
To: Multiple recipients of list delphi
Subject: RE: [DUG]: COM Stress Testing.
Server dosn't have the same limitation.
Myles Penlington <[EMAIL PROTECTED]> on 05/05/99 09:26:54
Please respond to [EMAIL PROTECTED]
To: Multiple recipients of list delphi <[EMAIL PROTECTED]>
cc: (bcc: Peter Jones/Logistics&Information
Technology/Christchurch/Foodstuffs)
Subject: RE: [DUG]: COM Stress Testing.
Yep NT4.0 Workstation - Does this mean it will not occur on NT server??
It's not DCOM, I'm just running a COM component and the test program on the
same machine.
-----Original Message-----
From: [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED]]
Sent: Tuesday, May 04, 1999 2:45 PM
To: Multiple recipients of list delphi
Subject: Re: [DUG]: COM Stress Testing.
You don't happen to be using NT Workstation for your server do you? 10
Connections is the magic number for Workstation.
Myles Penlington <[EMAIL PROTECTED]> on 04/05/99 14:58:32
Please respond to [EMAIL PROTECTED]
To: Multiple recipients of list delphi <[EMAIL PROTECTED]>
cc: (bcc: Peter Jones/Logistics&Information
Technology/Christchurch/Foodstuffs)
Subject: [DUG]: COM Stress Testing.
I have written a D4 program to stress test our D4 COM object.
All works fine up until about 10 threads, after which we can guarantee to
get a "OLE Catastrophic error". Does anybody know if this is a MS COM
problem or a Delphi problem?
Does anybody know what causes the "Catastrophic error"??
Regards
Myles Penlington
Software Engineer
ADVANCED MANAGEMENT SYSTEMS
This message is confidential to the person to whom it is addressed. It is
not to be used, copied or distributed by anyone else. If the message has
reached you by mistake please contact us immediately and then delete it
from your system. Thank you for your co-operation.
---------------------------------------------------------------------------
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
Website: http://www.delphi.org.nz
---------------------------------------------------------------------------
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
Website: http://www.delphi.org.nz
(UUEncoded file named: att1.unk follows)
(Its format is: File type unknown )
---------------------------------------------------------------------------
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
Website: http://www.delphi.org.nz
---------------------------------------------------------------------------
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
Website: http://www.delphi.org.nz