Hi,
I have XP+SP2, Visual Studio 8, wxWidgets 2.6.1. I have compiled the Debug DLL version of wxWidgets.
Every wxWidgets application I run (including "Hello World") compiles and links ok, but at runtime I get this error:
The execution doesn't even reach MyApp::OnInit(). How can I fix this? I suppose it's a wxWidgets compilation / linking problem.
Thanks,
Cristian
Runtime Error in Every wxWidgets Application
No, I built the non unicode debug dll configuration. And I didn't get any warnings (apart of deprecation of string functions, printf, etc.)
This is the code from wxWidgets sources where the the execution stops:
wxWidgets-2.6.1/src/common/init.cpp:
The error message (debug alert) happens in OnRun(). I don't understand the coments that the user doesn't create a real application. What is that? The application I am trying to run worked fine under wxWidgets 2.4.2.
This is the code from wxWidgets sources where the the execution stops:
wxWidgets-2.6.1/src/common/init.cpp:
Code: Select all
// we need a dummy app object if the user doesn't want to create a real one
class wxDummyConsoleApp : public wxAppConsole
{
public:
wxDummyConsoleApp() { }
virtual int OnRun() { wxFAIL_MSG( _T("unreachable code") ); return 0; }
DECLARE_NO_COPY_CLASS(wxDummyConsoleApp)
};
Runtime errors also with 2.6.2
Hi there,
I am getting the exact same result as described above (unreachable code assertion in init.cpp), for my own as well as for all sample apps, if and only if I compile/use wx as dll. Static linking works fine.
My configuration:
wxWidgets 2.6.2
Visual C++ 8 (Express)
Windows XP SP2
Christian: did you eventually solve your problem?
It worked fine for 2.6.1...
Any hint is greatly appreciated,
Mike
I am getting the exact same result as described above (unreachable code assertion in init.cpp), for my own as well as for all sample apps, if and only if I compile/use wx as dll. Static linking works fine.
My configuration:
wxWidgets 2.6.2
Visual C++ 8 (Express)
Windows XP SP2
Christian: did you eventually solve your problem?
It worked fine for 2.6.1...
Any hint is greatly appreciated,
Mike
Please be informed that this forum is not highly visited, it is better to direct this problem to the original wx.NET mailing lists if your problem is not solved here.
- Jorgen
- Jorgen
Forensic Software Engineer
Netherlands Forensic Insitute
http://english.forensischinstituut.nl/
-------------------------------------
Jorg's WasteBucket
http://www.xs4all.nl/~jorgb/wb
Netherlands Forensic Insitute
http://english.forensischinstituut.nl/
-------------------------------------
Jorg's WasteBucket
http://www.xs4all.nl/~jorgb/wb