Re: [OpenSIPStack] MessengerManager Exception
Brought to you by:
joegenbaclor
From: <jo...@pl...> - 2006-10-25 17:43:13
|
Resending this one ... Hi Borislav, You might have already found out that ATLSIP is emant to be used as an = ActiveX Control. MessengerManager is designed to work together with the = upper layer COM interfaces. Using it outside of those interfaces may = lead you to all sorts of library misbehavior. If I find time, I would = make MessagerManager a separate library so that none ATL application may = ling to it directly. For now, you may want to dig deeper as to the = cause of the exception and post your results here. Maybe I or someone = else would pitch in an advise. Joegen >-----Original Message----- >From: Borislav Pechenyashki [mailto:bor...@ab...] >Sent: Tuesday, October 24, 2006 02:25 PM >To: ope...@li... >Subject: [OpenSIPStack] MessengerManager Exception > >Hi, i am still trying ATLSIP and I noticed that an exception is = thrown when MessengerManager is destroyed(); (The exception appers only = if InitializeSIP is called. If i do not call InitializeSIP then there is = no exception) > >The exception: >First-chance exception at 0x7c812a5b in PchOSSTest.exe: 0x0000071A: = The remote procedure call was cancelled. > >I made a console test program ( below ): >when i enter '0' the sipstack starts destroying and then throws an = exception somewhere. (The messenger class is modified a little - the = atlsip reference and all FIRE_ events are removed) >I am a newbie in C++ so may be I am doing something wrong but i want = to ask just in case if there is such a known issue. > >#include "stdafx.h" >#include <iostream> >#include "Messenger.h" >#include "windows.h" > >PDECLARE_PROCESS( DummyPProcess, = PProcess,"PchOSSApi","PchOSSApi",MAJOR_VERSION,MINOR_VERSION,BUILD_TYPE,B= UILD_NUMBER) >void DummyPProcess::Main(){}; >static DummyPProcess process; // active for the life of the DLL > >int _tmain(int argc, _TCHAR* argv[]) >{ > MessengerManager * manager =3D new MessengerManager(0, 0); > manager->InitializeSIP();=20 > char ch; > do > { > cin >> ch;=20 > } while (ch !=3D '0'); > > delete manager; >=20 > return 0; >} > >----------------------------------------------------------------- >Survivor BG. =CE=F6=E5=EB=FF=E2=E0=ED=E5=F2=EE = =EF=F0=EE=E4=FA=EB=E6=E0=E2=E0 =ED=E0 www.survivor.btv.bg=20 > = >------------------------------------------------------------------------= - >Using Tomcat but need to do more? Need to support web services, = security? >Get stuff done quickly with pre-integrated technology to make your = job easier >Download IBM WebSphere Application Server v.1.0.1 based on Apache = Geronimo = >http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D120709&bid=3D263057&dat=3D= 121642 >_______________________________________________ >opensipstack-devel mailing list >ope...@li... >https://lists.sourceforge.net/lists/listinfo/opensipstack-devel > |