Page 1 of 1

sample app blastar in VS 2005 Debug Win32 mode exit silently

PostPosted: Sep 2, 2007 @ 4:10pm
by aaron08544
Hi all,

I just downloaded the Edge 3.11 to play with a sample app blastar. I have VS 2005 setup and use the solution file in Blastar/workspace_pc_vc2005. Build in Debug and Release mode works fine but only Release mode runs, Debug mode silently quits. Any ideas? Am I missing anything?

System info: XP Pro SP 2

The program '[288] Blastar.exe: Native' has exited with code 0 (0x0).

Upon stepping through the debugging I hit a line in crtexe.c and managedapp is false

/*
* Note that if the exe is managed app, we don't really need to
* call exit or _c_exit. .cctor should be able to take care of
* this.
*/
if ( !managedapp )
exit(mainret);

-Aaron

PostPosted: Sep 3, 2007 @ 12:52pm
by edge
Hi Aaron,

The program probably doesn't start because it can't load the resource file. Inside the Release folder there should be a gfx.epk file containing the graphics.

Copy this file to your debug folder (near the executable file) and it should run fine.

PostPosted: Sep 3, 2007 @ 5:11pm
by aaron08544
Thanks, indeed that's the case! Is there a good example to show how error handling should be done? Silently quitting doesn't seem to be the best choice.

I notice that there's a SetErrorMsg in ClassEdge, should the ClassModule have a pointer that points back to its parent and call this method? I suppose you can't use Exception because not all platforms support it.

-Aaron

PostPosted: Sep 5, 2007 @ 8:08am
by edge