Jump to content

  • Log In with Google      Sign In   
  • Create Account


#ActualDanicco

Posted 28 December 2012 - 02:55 PM

You're reading 3 bytes at a time and writing 4 bytes at a time.

 

Ops, typed without thinking, didn't notice that.

 

I managed to find what is causing the HEAP CORRUPTION, it's because of the cast from signed char to unsigned char in the while loop, if I use a signed char array it works fine only to go through the debugger, but I can't use signed char for the rest of the code. Is there any solution for this?


#1Danicco

Posted 28 December 2012 - 02:55 PM

You're reading 3 bytes at a time and writing 4 bytes at a time.

 

Ops, typed without thinking, didn't noticed that.

 

I managed to find what is causing the HEAP CORRUPTION, it's because of the cast from signed char to unsigned char in the while loop, if I use a signed char array it works fine only to go through the debugger, but I can't use signed char for the rest of the code. Is there any solution for this?


PARTNERS