Jump to content
  • Advertisement
Sign in to follow this  
Srbin013

Very strange problem

This topic is 3902 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I am using debug mode in code::block ide and sdl api. When i quit my program, the console remain open. If i press any key, no problem, console closses and code::blocks report no error. But, if i close console using its top-right close button, i get this error message: Process terminated with status:-1073741510 What is the problem? I am pretty sure everything was freed back to the system. Is there some way to check if i skipped some things?

Share this post


Link to post
Share on other sites
Advertisement
Quote:
Original post by Srbin013
I am using debug mode in code::block ide and sdl api. When i quit my program, the console remain open.


What do you mean here? That you #include <iostream>? If yes, you should not include it.

Share this post


Link to post
Share on other sites
Go into the O/S process manager and simply check what processes/threads are still running. You should get used to doing that anyway if you write a lot of code. Some code looks like it's exited but is still going in the background and if you ever accidentally write a loop with no exit then you'll need to know how to get into the process manager real fast to kill it.

I was tired and accidentally pasted a loop that loaded a 20 mb graphic file into my render handler that updates roughly 200 times a second. That turned my laptop to toast real fast.

m0ng00se

Share this post


Link to post
Share on other sites
Quote:
Original post by sheep19
Quote:
Original post by Srbin013
I am using debug mode in code::block ide and sdl api. When i quit my program, the console remain open.


What do you mean here? That you #include <iostream>? If yes, you should not include it.


I am not using iostream, every output is redirected to console using this:
freopen( "CON", "w", stdout );
freopen( "CON", "w", stderr );



Share this post


Link to post
Share on other sites
Quote:
Original post by m0ng00se
Go into the O/S process manager and simply check what processes/threads are still running. You should get used to doing that anyway if you write a lot of code. Some code looks like it's exited but is still going in the background and if you ever accidentally write a loop with no exit then you'll need to know how to get into the process manager real fast to kill it.

m0ng00se


All fine. As soon as my program exits, it is not in the system anymore.


Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!