Home » U++ Library support » U++ Library : Other (not classified elsewhere) » Help:Thirdparty function call crashed
Help:Thirdparty function call crashed [message #6662] |
Wed, 22 November 2006 04:26  |
mobilehunter
Messages: 87 Registered: November 2006
|
Member |
|
|
Hi,
Does anyone use __stdcall as callback to third party library from Ultimate++?
I have created a program to call thirdparty function that need function callback as it's argument from VC++ and Ultimate++
As for the VC++ version nothing bad happened.
But for the Ultimate++ i got error message like this
"Exception: C0000005 at 003919C6 EXCEPTION_ACCESS_VIOLATION reading at 00000014"
My main calls is inherited from TopWindow with layout.
Then i called Open() to get the HWND of newly created window.
Next call thirdparty functition then crashed.
BUT if i commented Open(), then call thirdparty function no crash occured. But in the end, we have to call Run(), this will call Open() right? Then the app crash again.
I think it crashed at GetActiveWindow() line.
Pseudo code
MyWindow::MyWindow()
{
Open();
hwnd = GetHwnd();
CallThirdLibrary(); // crashed
}
GUI_APP_MAIN
{
//if i commented Open() above, then call Run() the crash occured too, may be because Open() is called inside Run()
MyWindow my;
my.Run();
}
Still have no luck.
Thanks
[Updated on: Wed, 22 November 2006 06:52] Report message to a moderator
|
|
|
|
|
Goto Forum:
Current Time: Tue Apr 29 00:30:08 CEST 2025
Total time taken to generate the page: 0.00572 seconds
|