Debuger access violation win 8

Started by Sascha8192, December 03, 2012, 01:06:00 AM

Previous topic - Next topic

Sascha8192

My System:

Notebook win8 64 Pro 4gb Ram
Project "Konsolenanwendung"

Options compiler:
-std:C11 -Tx86-coff -Zi -Ob1 -fp:fast -W1 -Gd

Options Linker:
-debug -debugtype:both -subsystem:console -machine:x86

"Fehlersuche starten" ----->  Module Poide.exe caused an Access violation exception at address ...  0042c56c

What can I do?

CommonTater

Well, for starts we're going to need to see the code that caused the problem.



Sascha8192

#2
The error occurs always ( win8 )
int i;
   for(i = 0;i < 10; i++)
      printf("%i\n",i);

>:(

compile and run no problem only debugger -----> crash

frankie

Try setting optimization:NONE
Maybe some optimization interfere with debugger.
Anyway it's always a good habit to disable optimization while debugging, unless you are just tracing an optimization problem (yes can happen when code is sqeezed too much...  :-\)
"It is better to be hated for what you are than to be loved for what you are not." - Andre Gide

CommonTater

Quote from: frankie on December 06, 2012, 10:01:27 AM
Try setting optimization:NONE

Agreed ... there are still some problems in the Optimizer.


inisheer

Seems this may be related to the thread I posted in the Beginner Section.

http://forum.pellesc.de/index.php?topic=5069.0