NO

Author Topic: Aceess violation in IDE  (Read 3953 times)

Offline bitcoin

  • Member
  • *
  • Posts: 179
Aceess violation in IDE
« on: August 15, 2022, 11:43:19 PM »
Hello,
got strange error,
Code: [Select]
fatal error: Internal error: 'Access violation' at 0x00007ff72fa2ab4e.
I removed everything unnecessary from the project, but when compiling the function "int exec(PUNICODE_STRING name)" , I get this error.

Offline frankie

  • Global Moderator
  • Member
  • *****
  • Posts: 2113
Re: Aceess violation in IDE
« Reply #1 on: August 16, 2022, 12:35:55 AM »
The code you attached is not valid.
Please post the correct code that cause the problem.
"It is better to be hated for what you are than to be loved for what you are not." - Andre Gide

Offline bitcoin

  • Member
  • *
  • Posts: 179
Re: Aceess violation in IDE
« Reply #2 on: August 17, 2022, 01:05:26 PM »
correct code don't crashes IDE

Offline John Z

  • Member
  • *
  • Posts: 860
Re: Aceess violation in IDE
« Reply #3 on: August 17, 2022, 01:26:52 PM »
Hi bitcoin,

I tried the code package you posted.  I think maybe you took too much out.
It does not compile at all and has many error messages.  I add one missing header file
but still too much is missing to troubleshoot.

As posted it does not compile, but does not crash the IDE either.

Maybe re-post with a bit more code left in?

John Z

Offline TimoVJL

  • Global Moderator
  • Member
  • *****
  • Posts: 2115
Re: Aceess violation in IDE
« Reply #4 on: August 19, 2022, 01:11:00 PM »
Example was extracted from C++ code ?
Without those structs, can't test, if optimization fails.
Code: [Select]
nebet_test.c(27): error #2048: Undeclared identifier 'USER_STACK' (did you mean: ?).
nebet_test.c(29): error #2152: Unknown member 'StackReserve' of 'SECTION_IMAGE_INFORMATION (aka struct _SECTION_IMAGE_INFORMATION)' (did you mean: Reserved?).
nebet_test.c(34): error #2152: Unknown member 'StackCommit' of 'SECTION_IMAGE_INFORMATION (aka struct _SECTION_IMAGE_INFORMATION)' (did you mean: CheckSum?).
nebet_test.c(52): error #2152: Unknown member 'EntryPoint' of 'SECTION_IMAGE_INFORMATION (aka struct _SECTION_IMAGE_INFORMATION)' (did you mean: ZeroBits?).
Vergilius project
May the source be with you

Offline Marco

  • Member
  • *
  • Posts: 45
Re: Aceess violation in IDE
« Reply #5 on: August 19, 2022, 02:22:58 PM »
Hi bitcoin,

maybe somewhere in your code you have something alike to the following:

https://forum.pellesc.de/index.php?topic=10180.msg35039#msg35039

Offline bitcoin

  • Member
  • *
  • Posts: 179
Re: Aceess violation in IDE
« Reply #6 on: August 21, 2022, 03:01:41 PM »
Hello!

I can post correct code , but its dont crashes IDE. I was surprised that these are not ordinary compiler / linker errors, but 'Access violation'. I thought maybe there was some internal mistake in PellesC itself. And yes, the code was copied from C++ .. moreover, the code is from windows 2000.

Offline John Z

  • Member
  • *
  • Posts: 860
Re: Aceess violation in IDE
« Reply #7 on: August 21, 2022, 04:35:56 PM »
Hi Bitcoin,

Sympathize with your situation, but the code as posted so far just does not crash my IDE.
See attached results -

Perhaps a re-install of Pelles C should be tried?

John Z

Offline bitcoin

  • Member
  • *
  • Posts: 179
Re: Aceess violation in IDE
« Reply #8 on: August 22, 2022, 10:15:53 PM »
but the code as posted so far just does not crash my IDE.
This is very good! So, maybe this is my local bug.