Runtime Error in Every wxWidgets Application

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

Postby cristiant » Mon Sep 05, 2005 9:03 pm

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

Postby 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 ??

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

Postby 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:

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

Postby 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,
Mike

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

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


Return to “wx.NET”

Who is online

Users browsing this forum: No registered users and 2 guests