Runtime Error in Every wxWidgets Application

Questions about wxWidgets running on MS.NET, mono or Portable.NET ? Ask it here !
Post Reply
cristiant
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 »

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:

Image

The execution doesn't even reach MyApp::OnInit(). How can I fix this? I suppose it's a wxWidgets compilation / linking problem.

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

Post by benedicte »

May you have an issue with Unicode / Non unicode builds ?
Did you have any warning when you have built wx dlls, or the samples ??
cristiant
In need of some credit
In need of some credit
Posts: 2
Joined: Mon Sep 05, 2005 8:22 pm

Post by cristiant »

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:

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)
};
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.
molto_b
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 »

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
Jorg
Moderator
Moderator
Posts: 3971
Joined: Fri Aug 27, 2004 9:38 pm
Location: Delft, Netherlands
Contact:

Post by Jorg »

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
http://english.forensischinstituut.nl/
-------------------------------------
Jorg's WasteBucket
http://www.xs4all.nl/~jorgb/wb
Post Reply