This site is no longer active and is available for archival purposes only. Registration and login is disabled.

sample app blastar in VS 2005 Debug Win32 mode exit silently


sample app blastar in VS 2005 Debug Win32 mode exit silently

Postby aaron08544 » Sep 2, 2007 @ 4:10pm

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
aaron08544
pm Member
 
Posts: 2
Joined: Sep 2, 2007 @ 3:59pm


Postby edge » Sep 3, 2007 @ 12:52pm

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.
EDGELIB: Cross-platform mobile development at your fingertips
http://www.edgelib.com
User avatar
edge
pm Member
 
Posts: 1180
Joined: Aug 22, 2005 @ 3:42pm
Location: The Netherlands


Postby aaron08544 » Sep 3, 2007 @ 5:11pm

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
aaron08544
pm Member
 
Posts: 2
Joined: Sep 2, 2007 @ 3:59pm


Postby edge » Sep 5, 2007 @ 8:08am

EDGELIB: Cross-platform mobile development at your fingertips
http://www.edgelib.com
User avatar
edge
pm Member
 
Posts: 1180
Joined: Aug 22, 2005 @ 3:42pm
Location: The Netherlands


Return to EDGELIB


Sort


Forum Description

Powerful and affordable C++ middleware solution covering true multi-platform 2D, 3D and network features for Apple iPhone, Windows Mobile, Symbian S60, UIQ, Linux and Windows desktop.

Moderator:

edge

Forum permissions

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

cron