Code: Select all
MyApp* app = new MyApp();
app->OnInit();
Exception thrown: read access violation.
**this** was nullptr.
Unhandled exception at 0x00007FFF20E0B963 (wxmsw315u_core_vc_custom.dll) in test.exe: 0xC000041D: An unhandled exception was encountered during a user callback.
From further debugging I suspect that this is due to wxWindow parent being set to NULL in the Myframe constructor:
Code: Select all
MyFrame::MyFrame(const wxString& title, const wxPoint& pos, const wxSize& size)
: wxFrame(NULL, wxID_ANY, title, pos, size)
However, I am unsure as to how I can resolve this error.
Any support would be greatly appreciated.