Re: Access Violation when disconnecting wodWebServ - WeOnlyDo Discussion board

Re: Access Violation when disconnecting wodWebServ (General questions)

by paul draper, Monday, December 12, 2005, 13:18 (6709 days ago) @ wodSupport

Hi,

From the stack trace:
[code]Wodwebservercomlib_tlb::TwodWebServerCom::get_Activated + 0x225 in InterfaceConnectionManager.exe 1868
0x003B3D78 Wodwebservercomlib_tlb::TwodWebServerCom::InvokeEvent + 0x298 in weonlydo.bpl 1868
0x4017346C Oleserver::TServerEventDispatch::Invoke + 0x80 in vcl60.bpl 1868[/code]
I see that get_Activated() is called from InvokeEvent().

The AV only occurs when I have a number of server objects (each in their own thread). I am disconnecting them whilst there are requests being received.

When I have disconnected I delete the Server object. Is it possible that the server object gets another event after the Server object has been deleted (a state change event possibly)?

I'll look at changing my code so that it makes sure the Server state is disconnected before it deletes it, and see if that helps.

Any further advice would be greatly appreciated.

Thanks
Paul.


Complete thread: