OpenSIPStack requires that PProcess is created first before any other
objects. If you are using it in an MFC project you may do this by
declaring PProcess as a member variable of CWinApp
class COSSPhoneMFCApp : public CWinApp
{
public:
/**** OpenSIPStack Start ****/
class PWLibProcess : public PProcess {
PCLASSINFO(PWLibProcess, PProcess);
void Main() { }
} pwlibProcess;
/**** OpenSIPStack End ****/
If you are using OpenSIPStack in a console application, make sure you
use PProcess::Main() instead of creating your own int main() method
class YourProcess : public PProcess
{
public:
PCLASSINFO( YourProcess , PProcess );
void Main()
{
/// your code here
}
};
PCREATE_PROCESS( YourProcess );
The PCREATE_PROCESS creates the int main() for you.
Joegen
Counet Jérémy wrote:
Hi,
When I use the lib file who as generate by the opensipstack porject, I
have this error?
Catastrophic failure, PProcess::Current() = NULL!!
Must I initiate something before creating a SoftPhoneInterface?
Thx,
Jeremy Counet.
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
opensipstack-devel mailing list
opensipstack-devel at lists dot sourceforge dot net
https://lists.sourceforge.net/lists/listinfo/opensipstack-devel
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
opensipstack-devel mailing list
opensipstack-devel at lists dot sourceforge dot net
https://lists.sourceforge.net/lists/listinfo/opensipstack-devel