Re: [OpenSIPStack] Unhandled exception
Brought to you by:
joegenbaclor
From: Robert V. <ro...@dc...> - 2008-06-24 12:50:35
|
Bill, Is there any chance I could perhaps mail you my code, so you could tell me if I am doing anything horribly wrong? It's just a form with buttons for Initilize, Register, Call, Answer and Hangup (Plus a couple of events, allthough I am still getting exceptions when I comment them out) Regards, Robert ----- Original Message ----- From: "OpenSIPStack Forum" <ope...@op...> To: <ope...@li...> Sent: Saturday, June 21, 2008 12:05 AM Subject: Re: [OpenSIPStack] Unhandled exception > 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} > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://sourceforge.net/services/buy/index.php > _______________________________________________ > opensipstack-devel mailing list > ope...@li... > https://lists.sourceforge.net/lists/listinfo/opensipstack-devel |