User forums > Using Code::Blocks

C::B generated .exe-Files crashes

(1/2) > >>

Treito:
Hello,

I am new to Codeblocks. I wanted to try wxSmith and followed the tutorial. There are no errors compiling the .exe, but when I try to start it, I get the error message from windows "plain.exe is not working anymore".
What is wrong?

OS is Windows 8 64-Bit

Error message is "Process was ended with status -1073741819. (0 Minuten, 1 Sekunden)" (Translated)

oBFusCATed:

--- Quote from: Treito on March 28, 2013, 01:34:58 pm ---What is wrong?

--- End quote ---
You've not used the debugger to try to see what is really wrong...

Does it work correctly with a simple console project?

Treito:
Thanks for the reply.

A simple console application seems to work, but even with the debugger I could not start the project:


--- Code: ---Debugger Nameund Version: GNU gdb (GDB) 7.5
Child process PID: 12112
Program received signal SIGSEGV, Segmentation fault.

--- End code ---

Edit:

--- Code: ---Erstellen um zu gewährleisten das die Dateien auf auktuellen Stand sind
Ziel wählen:
Debug
Adding source dir: E:\Eigene Dateien\Eigene Dokumente\Programmierung\Tutorial\Plain\
Adding source dir: E:\Eigene Dateien\Eigene Dokumente\Programmierung\Tutorial\Plain\
Adding file: E:\Eigene Dateien\Eigene Dokumente\Programmierung\Tutorial\Plain\bin\Debug\Plain.exe
Changing directory to: E:/EIGENE~1/EIGENE~2/PROGRA~1/Tutorial/Plain/.
Set variable: PATH=.;D:\SourceCode\Libraries\wxWidgets2.8\lib\gcc_dll;d:\Programme\CodeBlocks\MinGW\bin;d:\Programme\CodeBlocks\MinGW;D:\MinGW64\bin;D:\MinGW64\bin\bin;D:\MinGW64;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\Business Objects\Common\3.5\bin\NOTES;C:\Program Files (x86)\Business Objects\Common\3.5\bin\NOTES\DATA;C:\Programme\MATROX~1\System64;C:\Programme\MATROX~1\System32;C:\Windows\System32;C:\Windows;C:\Windows\System32\wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Program Files (x86)\ATI Technologies\ATI.ACE\Core-Static;C:\Program Files (x86)\Common Files\Acronis\SnapAPI;C:\Program Files (x86)\QuickTime\QTSystem;C:\Program Files (x86)\MKVtoolnix;D:\SocketeQ\windowsandroid_root\system\bin;D:\SocketeQ\windowsandroid_root\system\lib

[debug]Command-line: D:\Programme\CodeBlocks\MinGW\bin\gdb.exe -nx -fullname  -quiet  -args E:/EIGENE~1/EIGENE~2/PROGRA~1/Tutorial/Plain/bin/Debug/Plain.exe
[debug]Working dir : E:\EIGENE~1\EIGENE~2\PROGRA~1\Tutorial\Plain

Starte Debugger: D:\Programme\CodeBlocks\MinGW\bin\gdb.exe -nx -fullname  -quiet  -args E:/EIGENE~1/EIGENE~2/PROGRA~1/Tutorial/Plain/bin/Debug/Plain.exe
erledigt

[debug]> set prompt >>>>>>cb_gdb:

Neuen Typ registriert: wxString
Neuen Typ registriert: STL String
Neuen Typ registriert: STL Vector
Setze Haltpunkt

[debug]Reading symbols from E:\EIGENE~1\EIGENE~2\PROGRA~1\Tutorial\Plain\bin\Debug\Plain.exe...
[debug]done.
[debug](gdb) >>>>>>cb_gdb:
[debug]> show version
[debug]GNU gdb (GDB) 7.5
[debug]Copyright (C) 2012 Free Software Foundation, Inc.
[debug]License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
[debug]This is free software: you are free to change and redistribute it.
[debug]There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
[debug]and "show warranty" for details.
[debug]This GDB was configured as "i686-pc-mingw32".
[debug]For bug reporting instructions, please see:
[debug]<http://www.gnu.org/software/gdb/bugs/>.
[debug]>>>>>>cb_gdb:
[debug]> set confirm off

Debugger Nameund Version: GNU gdb (GDB) 7.5

[debug]>>>>>>cb_gdb:
[debug]> set width 0
[debug]>>>>>>cb_gdb:
[debug]> set height 0
[debug]>>>>>>cb_gdb:
[debug]> set breakpoint pending on
[debug]>>>>>>cb_gdb:
[debug]> set print asm-demangle on
[debug]>>>>>>cb_gdb:
[debug]> set unwindonsignal on
[debug]>>>>>>cb_gdb:
[debug]> set print elements 0
[debug]>>>>>>cb_gdb:
[debug]> set disassembly-flavor att
[debug]>>>>>>cb_gdb:
[debug]> catch throw
[debug]Catchpoint 1 (throw)
[debug]>>>>>>cb_gdb:
[debug]> source D:\Programme\CodeBlocks\share\codeblocks/scripts/stl-views-1.0.3.gdb
[debug]>>>>>>cb_gdb:
[debug]> directory E:/EIGENE~1/EIGENE~2/PROGRA~1/Tutorial/Plain/
[debug]Source directories searched: E:/EIGENE~1/EIGENE~2/PROGRA~1/Tutorial/Plain;$cdir;$cwd
[debug]>>>>>>cb_gdb:
[debug]> run
[debug]Starting program: E:\EIGENE~1\EIGENE~2\PROGRA~1\Tutorial\Plain\bin\Debug\Plain.exe

Child process PID: 8696

[debug][New Thread 8696.0x2c6c]
[debug]Program received signal SIGSEGV, Segmentation fault.
[debug]0x00000002 in ?? ()
[debug]>>>>>>cb_gdb:

Program received signal SIGSEGV, Segmentation fault.
In ?? () ()

[debug]> bt 30
[debug]#0  0x00000002 in ?? ()
[debug]#1  0x00000000 in ?? ()
[debug]>>>>>>cb_gdb:

--- End code ---

oBFusCATed:

--- Quote from: Treito on March 28, 2013, 02:07:40 pm ---... but even with the debugger I could not start the project:

--- End quote ---
The debugger won't make your project magically work, but it could help you to find the problem.
Do you have symbols in the executable?

Read this for some info about the setup needed in order to debug something: http://wiki.codeblocks.org/index.php?title=Debugging_with_Code::Blocks

Treito:
I meant the project crashes immediatly.

From the call stack:

--- Code: ---#0 00000002 ?? () (??:??)
#1 ?? ?? () (??:??)

--- End code ---

Navigation

[0] Message Index

[#] Next page

Go to full version