NO

Author Topic: Debuger access violation win 8  (Read 3806 times)

Sascha8192

  • Guest
Debuger access violation win 8
« on: December 03, 2012, 01:06:00 AM »
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

  • Guest
Re: Debuger access violation win 8
« Reply #1 on: December 03, 2012, 02:47:12 AM »
Well, for starts we're going to need to see the code that caused the problem.



Sascha8192

  • Guest
Re: Debuger access violation win 8
« Reply #2 on: December 05, 2012, 06:52:13 PM »
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
« Last Edit: December 05, 2012, 06:54:33 PM by Sascha8192 »

Offline frankie

  • Global Moderator
  • Member
  • *****
  • Posts: 2113
Re: Debuger access violation win 8
« Reply #3 on: December 06, 2012, 10:01:27 AM »
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

  • Guest
Re: Debuger access violation win 8
« Reply #4 on: December 06, 2012, 05:44:51 PM »
Try setting optimization:NONE

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


inisheer

  • Guest
Re: Debuger access violation win 8
« Reply #5 on: December 15, 2012, 09:01:23 PM »
Seems this may be related to the thread I posted in the Beginner Section.

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