Problem loading .xrc file

"Tim Burgess" <[email protected]> Wed, 20 Aug 2025 09:11:50 +0100
Newsgroups gmane.comp.lib.wxwindows.general
Message-ID <[email protected]>
Hi,

 

I've been taking inspiration from the XRC sample, particularly the code for
derived classes, but get the following:

 

wxWidgets Debug Alert

A debugging check in this application has failed.

C:\Users\Tim\p\wxWidgets\src\msw\window.cpp(1293): assert "!m_oldWndProc"
failed in wxWindow::SubclassWin(): subclassing window twice? 

 

When my code executes:

 

wxXmlResource::Get()->LoadDialog(this, parent, "myDlg");

 

within the constructor of my derived dialog.

 

Googling this message and some variations on it didn't give me any hits to
help me understand the issue.

 

I'd be grateful for any advice as to how to tackle this.

 

Best wishes.

 

Tim

 

-- 
Please read https://www.wxwidgets.org/support/mlhowto.htm before posting.
--- 
You received this message because you are subscribed to the Google Groups "wx-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To view this discussion visit https://groups.google.com/d/msgid/wx-users/013f01dc11aa%2415703560%244050a020%24%40raisedbar.net.