Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ Library : Other (not classified elsewhere) » Help:Thirdparty function call crashed
icon5.gif  Help:Thirdparty function call crashed [message #6662] Wed, 22 November 2006 04:26 Go to previous message
mobilehunter is currently offline  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

 
Read Message icon5.gif
Read Message
Read Message
Previous Topic: How to show a ButtonOption in a cell of a the GridCtrl
Next Topic: Custom abort of HttpClient::Execute()
Goto Forum:
  


Current Time: Sat Jun 08 05:50:05 CEST 2024

Total time taken to generate the page: 0.01112 seconds