User forums > Help

Hello world crashes

(1/1)

StarGazer2112:
Hello everybody,

    I'm starting with CodeBlocks and wxWidgets but can't make a simple Hello World (GUI) program run: it crashes as soon as I hit the run button, either in debug or release compilation. :cry:   :?:     Making a simple console version ( no wx stuff ) went ok.

   I don't know if this is the right place to ask for help or if I have to look for a specific wxWidgets forum so I won't post a long topic telling what I've already tried, instead I'll wait for some reply.

Thanks

stahta01:
Code::Blocks version or SVN?
Compiler name and version?
OS Name and version?
wxWidget version

Example answer
CB 8.02
Windows XP
Mingw GCC 3.4.5
wx version 2.9.0

Tim S.


Jenna:

--- Quote from: StarGazer2112 on August 20, 2009, 05:58:57 am ---Hello everybody,

    I'm starting with CodeBlocks and wxWidgets but can't make a simple Hello World (GUI) program run: it crashes as soon as I hit the run button, either in debug or release compilation. :cry:   :?:     Making a simple console version ( no wx stuff ) went ok.

   I don't know if this is the right place to ask for help or if I have to look for a specific wxWidgets forum so I won't post a long topic telling what I've already tried, instead I'll wait for some reply.

Thanks

--- End quote ---

If it's a wxWidgets-programm, try to debug it and start debug with step into, or place a breakpoint at the beginning of OnInit and try to find the error.
It's most likely a programming error, like using a null- (or uninitialised) pointer.

Have you tried the wxWidgets sample-project from the wizard (don't apply any changes), to see if it works ?

Navigation

[0] Message Index

Go to full version