This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

error 65: access violation : no 'execute/read' permission

hello,

i am using the following code to generate a delay of 200ms.

while(tfcount <= 16666)
{
	if (TF1 == 1)
	{
		tfcount++;
		TF1 = 0;
	}
}
im using the Timer 1 as a baud rate generator and it overflows every 12 us. the problem is that when i simulate the code using microvision 3 ,as soon as the while condition becomes false, instaed of continuing down the code, it gives the following error :

*** error 65: access violation at C:0x000B : no 'execute/read' permission

can u please help and tell me how to avoid this.

thanks
saad

Parents
  • can u please help and tell me how to avoid this.

    Almost certainly not --- because we have no idea what the code following that while(), nor any other part of code that may be causing this, might look like. You'll need to post much more complete source code. Try to boil down you actual source to the smallest you can come up with that still causes this error.

    And look up C:0x000b in the map file and in your debugger initialization script, or use instruction trace-back to check out how you came there. According to the error message, you're trying to run code at that address, but the debugger doesn't believe that any code was ever put in that position.

Reply
  • can u please help and tell me how to avoid this.

    Almost certainly not --- because we have no idea what the code following that while(), nor any other part of code that may be causing this, might look like. You'll need to post much more complete source code. Try to boil down you actual source to the smallest you can come up with that still causes this error.

    And look up C:0x000b in the map file and in your debugger initialization script, or use instruction trace-back to check out how you came there. According to the error message, you're trying to run code at that address, but the debugger doesn't believe that any code was ever put in that position.

Children