News:

As usual while waiting for the next release - don't forget to check the nightly builds in the forum.

Main Menu

Code::Blocks runs same program twice

Started by tiagocosta, September 27, 2014, 08:19:00 AM

Previous topic - Next topic

tiagocosta

Hello,

I have a problem with my Code::Blocks and I can't find an answer for it anywhere.

Whenever I run a code that I wrote on Code::Blocks, it runs the program twice...
I tryed everything to make it stop, but nothing worked...
Does anyone know how can I stop this?

Thank you very much!

ollydbg

Can't understand your problem if you don't tell us the details.
We need some steps to reproduce your issue.
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

Sleck

I have the same problem.

I notice it only happens when I have inputs such as scanf/fgets in the program.

I'm using Windows 7. I've tried running the same program on my Windows Vista and had no problem.

ollydbg

@Sleck
As I said before:
Quote from: ollydbg on September 27, 2014, 10:23:31 AM
Can't understand your problem if you don't tell us the details.
We need some steps to reproduce your issue.
We can't help you unless you give more details.
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

Sleck

Well, can you like specific what details you want?

It's not a code issue. I already said I've tried the same program on Vista and there was no problem.

ollydbg

Steps. (your operations, your source code) Since we don't know how to reproduce this issue.
Result: it could be: screen shot, other kinds of log messages or descriptions.
C::B version?
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.