Runtime Error in Every wxWidgets Application

Questions about wxWidgets running on MS.NET, mono or Portable.NET ? Ask it here !
Post Reply
In need of some credit
In need of some credit
Posts: 2
Joined: Mon Sep 05, 2005 8:22 pm

Runtime Error in Every wxWidgets Application

Post by cristiant » Mon Sep 05, 2005 9:03 pm


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.


wxWorld Domination!
wxWorld Domination!
Posts: 1409
Joined: Wed Jan 19, 2005 3:44 pm
Location: Paris, France

Post by benedicte » Tue Sep 06, 2005 8:08 am

May you have an issue with Unicode / Non unicode builds ?
Did you have any warning when you have built wx dlls, or the samples ??

In need of some credit
In need of some credit
Posts: 2
Joined: Mon Sep 05, 2005 8:22 pm

Post by cristiant » Tue Sep 06, 2005 11:37 pm

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:


Code: Select all

// we need a dummy app object if the user doesn't want to create a real one
class wxDummyConsoleApp : public wxAppConsole
    wxDummyConsoleApp() { }
    virtual int OnRun() { wxFAIL_MSG( _T("unreachable code") ); return 0; }

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.

In need of some credit
In need of some credit
Posts: 8
Joined: Mon Oct 18, 2004 7:19 pm

Runtime errors also with 2.6.2

Post by molto_b » Sat Dec 03, 2005 1:16 pm

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,

Posts: 3971
Joined: Fri Aug 27, 2004 9:38 pm
Location: Delft, Netherlands

Post by Jorg » Sat Dec 03, 2005 1:20 pm

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
Forensic Software Engineer
Netherlands Forensic Insitute
Jorg's WasteBucket

Post Reply