我是 C++ 编程的新手。我正在编译一个 Windows 应用程序,该应用程序编译正常,只有几个警告,但是当我启动它时,它甚至似乎没有启动,并在运行 3 秒后返回访问冲突。当我尝试调试时,它甚至似乎都没有进入代码,所以我不知道从哪里开始寻找问题。
这是我能够从调试器中检索到的信息:
Building to ensure sources are up-to-date
Build succeeded
Selecting target:
Debug
Adding source dir: C:\Documents and Settings\Christian Ekiza\Mis documentos\My Dropbox\Private Files\coding\juego_pruebas_01\juego_pruebas_01\
Adding source dir: C:\Documents and Settings\Christian Ekiza\Mis documentos\My Dropbox\Private Files\coding\juego_pruebas_01\juego_pruebas_01\
Adding file: bin\Debug\juego_pruebas_01.exe
Starting debugger:
done
Registered new type: wxString
Registered new type: STL String
Registered new type: STL Vector
Setting breakpoints
Debugger name and version: GNU gdb 6.8
Child process PID: 3328
Program received signal SIGSEGV, Segmentation fault.
In ?? () ()
这是来自调用堆栈
#0 00000000 0x000154e4 in ??() (??:??)
#1 00409198 __cmshared_create_or_grab() (../../../../gcc-4.4.1/libgcc/../gcc/config/i386/cygming-shared-data.c:140)
#2 00000000 0x0040131b in __gcc_register_frame() (??:??)
#3 00000000 0x0040a09b in register_frame_ctor() (??:??)
#4 00000000 0x00408f42 in __do_global_ctors() (??:??)
#5 00000000 0x00401095 in __mingw_CRTStartup() (??:??)
#6 00000000 0x00401148 in mainCRTStartup() (??:??)
CPU寄存器以
'gs' register with a hex value '0x0'
我真的不知道从哪里开始寻找问题。任何人都可以帮助我或指出正确的方向吗?
注意:我正在使用 Code::Blocks