User forums > General (but related to Code::Blocks)

F8 and CTRL-F10 have different runtime results

(1/1)

bbsqterm:

CTRL-F10: The instruction at "0x7c9397da" referenced memory at "0x0000000". The memory could not be "read".
F8: Got the correct runtime results.

I think there may be memory leak in my code.
But I cannot locate it because debugging mode (F8) doesn't have that problem.

What should I to fix the problems and make CTRL-F10 has correct runtime results as well.

Thanks.

stahta01:
Fix the problems in your logic and other causes of why programs crash.

Tim S.

bbsqterm:

--- Quote from: stahta01 on June 28, 2010, 11:12:34 pm ---Fix the problems in your logic and other causes of why programs crash.

Tim S.

--- End quote ---

Usually, the bugs can be located in debug mode [F8].
However, in my case, the F8 works fine, but C-F10 not.
How to locate the bugs which causes C-F10 crashes.?

stahta01:
You need to find a website that teaches the basic of programming.

FYI:

The debugger does things slightly differently from normal running of a program.
1. It tends to initialize all variables to a default value.
2. It tends to prevent some out of bounds problems from happening
    Example reading or writing past the end of an array.

Tim S.

This is not a site to learn the basics of programming
per the rules: http://forums.codeblocks.org/index.php/topic,9996.0.html

Phenom:

--- Quote from: bbsqterm on June 28, 2010, 10:57:43 pm ---
The instruction at "0x7c9397da" referenced memory at "0x0000000". The memory could not be "read".


--- End quote ---

This indicates an attemp to use a NULL pointer.

Navigation

[0] Message Index

Go to full version