Re: [OpenSIPStack] Unhandled exception
Brought to you by:
joegenbaclor
From: OpenSIPStack F. <ope...@op...> - 2008-06-21 08:43:32
|
Robert, I am also trying to use ATLSIP.dll from Delphi. For me so far, I only seem to get exceptions during shutdown. I haven't been able to track the problem down yet. I'm not a .NET programmer, but I've been assuming that OSSPhone is using ATLSIP.dll through AxATLSIPLib.dll, as Joegen suggests. ASTLSIP.dll is native code, but OSSPhone is .NET. If there was a non-.NET version of OSSPhone using ATLSIP.DLL, debugging would be easier. There is an MFC version of OSSPhone, but it appears to use OpenSipStack directly. One thing to remember is that OpenSipStack uses a lot of threads. Your code needs to be aware of this when implementing ATLSIP event handlers, since they will be executed (I believe) from a thread other than the main VCL thread. Thus accessing VCL controls directly won't work properly. You should also protect non-local variables using multithreading mechanisms (critical sections, mutexes, Windows events, etc.) Finest regards, Bill Root {quote}I am using the ATLSIP.dll generated by the ATLSIP project to write a softphone (in Delphi). The phone works fine, except that it throws unhandled exceptions at seemingly random times. I don't get these problems when running OSSPhone. I noticed that OSSPhone uses AxInterop.ATLSIPLib.1.0.dll and not ATLSIP.dll. Is there a difference between the dll's? Regards, Robert{quote} |