I was afraid I would have to resort to that. I've got the source code for the COM object (but it's in VB) so I might have a go at translating it into a Delphi component instead.
Phil. ----- Original Message ----- From: "Dennis Chuah" <[EMAIL PROTECTED]> To: "Multiple recipients of list delphi" <[EMAIL PROTECTED]> Sent: Wednesday, October 23, 2002 7:19 AM Subject: Re: [DUG]: COM Object error > > >From memory, VB only supports apartment threading model. Depending on the > type of load your server is going to experience, you could try: Have a > worker thread that communicated with the VB COM object. The client > connection threads will need to place the data somewhere, then wait for the > worker thread to send the data away. > > Anyway, apartment threading doesn't really support heavy loads. > > Dennis. > > ----- Original Message ----- > From: "Phil Middlemiss" <[EMAIL PROTECTED]> > To: "Multiple recipients of list delphi" <[EMAIL PROTECTED]> > Sent: Tuesday, October 22, 2002 5:00 PM > Subject: [DUG]: COM Object error > > > > Hi all, > > > > I have an app that uses the Indy components to act as a TCP server. When > it > > get's a connection and receives the required data, the application uses a > > third party COM object to communicate the data to second server running on > a > > remote location. > > > > If I run a test routine and just send some dummy data to the second server > > then everything is fine. If I try exactly the same test code but this time > > call it when I have received some data from a connection to my TCP server, > > then I get an access violation from 'MSVBVM60.DLL' (the COM object was > > written in VB). > > > > I'm guessing its a threading issue since the TCP server is hanging on to a > > TIDPeerThread from it's Execute event. I've tried placing > > EnterCriticalSection etc around the code but it makes no difference. > > > > Does anyone have any ideas? > > > > Regards, > > Phil. > > > > > > -------------------------------------------------------------------------- > - > > New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] > > Website: http://www.delphi.org.nz > > To UnSub, send email to: [EMAIL PROTECTED] > > with body of "unsubscribe delphi" > > Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/ > > > -------------------------------------------------------------------------- - > New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] > Website: http://www.delphi.org.nz > To UnSub, send email to: [EMAIL PROTECTED] > with body of "unsubscribe delphi" > Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/ > --------------------------------------------------------------------------- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz To UnSub, send email to: [EMAIL PROTECTED] with body of "unsubscribe delphi" Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/