Code: Select all
MenuBar1 = new wxMenuBar();
Menu1 = new wxMenu();
MenuItem1 = new wxMenuItem(Menu1, idMenuQuit, _("Quit\tAlt-F4"), _("Quit the application"), wxITEM_NORMAL);
Menu1->Append(MenuItem1);
MenuBar1->Append(Menu1, _("&File"));
Menu2 = new wxMenu();
MenuItem2 = new wxMenuItem(Menu2, idMenuAbout, _("About\tF1"), _("Show info about this application"), wxITEM_NORMAL);
Menu2->Append(MenuItem2);
MenuBar1->Append(Menu2, _("Help"));
SetMenuBar(MenuBar1);
The debug output:
The Call Stack:Active debugger config: GDB/CDB debugger:Default
Building to ensure sources are up-to-date
Selecting target:
Debug
Adding source dir: C:\Engineering Software\TIA Designer\
Adding source dir: C:\Engineering Software\TIA Designer\
Adding file: C:\Engineering Software\TIA Designer\bin\Debug\TIA Designer.exe
Changing directory to: C:/ENGINE~1/TIADES~2/.
Set variable: PATH=.;C:\wxWidgets-3.0.3\lib\gcc_dll;C:\Program Files (x86)\CodeBlocks\MinGW\bin;C:\Program Files (x86)\CodeBlocks\MinGW
Starting debugger: C:\Program Files (x86)\CodeBlocks\MINGW\bin\gdb.exe -nx -fullname -quiet -args C:/ENGINE~1/TIADES~2/bin/Debug/TIADES~1.EXE
done
Registered new type: wxString
Registered new type: STL String
Registered new type: STL Vector
Setting breakpoints
Debugger name and version: GNU gdb (GDB) 7.6.1
Child process PID: 6748
At C:\Engineering Software\TIA Designer\TIA_DesignerMain.cpp:524
Continuing...
Program received signal SIGSEGV, Segmentation fault.
In wxWindowBase::Layout() () (C:\wxWidgets-3.0.3\lib\gcc_dll\wxmsw30u_gcc_custom.dll)
Please tell me what I need to do next to solve this problem.#0 0x6a65325d wxWindowBase::Layout() () (C:\wxWidgets-3.0.3\lib\gcc_dll\wxmsw30u_gcc_custom.dll:??)
#1 0x75746e57 USER32!GetThreadDesktop() (C:\Windows\syswow64\user32.dll:??)
#2 0x28b7f4 ?? () (??:??)
#3 0x3b8000c ?? () (??:??)