Recommended Posts

rohini chandra    122
We use the main functions with return 0(hardcoded retun value). Sometimes the main functions instead of returning 0 would return a negative value such as -1073741819. We use WIN 2003 as the environment and the development environment in MS VISUAL STUDIO 7.1. Please let me know if any one is acquainted with this problem and knows a ready made solution. Thanks & Regards, RohiniChandra

Share this post


Link to post
Share on other sites
davidsporn    126
I recently discover that simply returning 0 would not stop the program (yeah, very disturbing... -a program on linux, writen with gcc, using sdl-)
Instead of reterning 0, calling exit(0) was the thing to do. Maybe you could try this.

Share this post


Link to post
Share on other sites
Antheus    2409
Quote:
Original post by davidsporn
I recently discover that simply returning 0 would not stop the program (yeah, very disturbing... -a program on linux, writen with gcc, using sdl-)
Instead of reterning 0, calling exit(0) was the thing to do. Maybe you could try this.


"The brakes seem to be malfunctioning. Oh well, if you need to stop, just crash into a tree."

The proper question would be, why isn't it stopping? Spurious threads running? Some third-party library mis-behaving? My guess would be that SDL isn't properly shut down.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this