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 next 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

Re: Help:Thirdparty function call crashed [message #6666 is a reply to message #6662] Wed, 22 November 2006 10:46 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
It is possible that the function does something GUI-related and bad for U++ CtrlCore.

What does it does?

Have your tried to look at backtrace in the debugger?

Mirek
Re: Help:Thirdparty function call crashed [Solved] [message #6690 is a reply to message #6666] Thu, 23 November 2006 01:06 Go to previous message
mobilehunter is currently offline  mobilehunter
Messages: 87
Registered: November 2006
Member
Thanks, the problem is solved.
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: Fri Apr 26 13:22:42 CEST 2024

Total time taken to generate the page: 0.04229 seconds