Pelles C forum

Pelles C => Bug reports => Topic started by: Sascha8192 on December 03, 2012, 01:06:00 AM

Title: Debuger access violation win 8
Post by: Sascha8192 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?
Title: Re: Debuger access violation win 8
Post by: CommonTater on December 03, 2012, 02:47:12 AM
Well, for starts we're going to need to see the code that caused the problem.


Title: Re: Debuger access violation win 8
Post by: Sascha8192 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
Title: Re: Debuger access violation win 8
Post by: frankie 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...  :-\)
Title: Re: Debuger access violation win 8
Post by: CommonTater on December 06, 2012, 05:44:51 PM
Try setting optimization:NONE

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

Title: Re: Debuger access violation win 8
Post by: inisheer 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 (http://forum.pellesc.de/index.php?topic=5069.0)