Rruntime error

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi all,

I created a dll from pjsip.

I integrated this dll in Qt.When I am trying to run the Qt application I am
getting run time error saying "Run-time Check Failure #0 - The value of ESP
was not properly saved across a function call. This is usually a result of
calling a function declared with one calling convention with a function
pointer declared with a different calling convention".

 

My DLL header file contains:

 

#ifdef EXPORTS

      #define DLL_API __declspec(dllexport)

#else

      #define DLL_API __declspec(dllimport)

#endif

 

extern "C" class DLL_API  INInterface

{

public:

      

      virtual void OnLogin(int Result,char* Reason)= 0;

 

      virtual void OnAnswer() = 0;

 

      virtual void OnDisconnect()= 0;

};

 

extern "C"   DLL_API int Login(sLoginInfo &Config,INInterface
&UsrInterface);

 

extern "C"   DLL_API int MakeCall(const char* to_uri);

 

extern "C"   DLL_API int EndCall();

 

extern "C"   DLL_API int Destroy();

 

 

 

 

Can any one please help me in this.

 

Thanks in Advance..

 

 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20090924/2d14df48/attachment.html>


[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux