Page 1 of 1

Dword unhandled exception

Posted: January 31st, 2021, 1:56 pm
by Lividpayment
Unhandled exception thrown: write access violation.
this was 0xACDB8 >

Color& operator =( Color color )
{
dword = color.dword;
return *this;
}
-----------------------------------------------

Does anyone know what might be causing this error code? Its coming from inside the color class. Happened when I tried to call the putpixel function.

Re: Dword unhandled exception

Posted: February 1st, 2021, 5:14 am
by albinopapa
I have had this error or something similar, though I don't recall what the root cause was. However, more than likely the issue is writing past the end of an array or to some invalid memory area.

You'll have to debug the program a bit to find where the issue lies, if you have problems finding it, share your project here or on github and someone can look through and run the code for a way to find the problem.

Re: Dword unhandled exception

Posted: February 8th, 2021, 5:00 pm
by Lividpayment
Mine was coming from the fact the function couldn't access the information it needed from the graphics class, and throwing an error because of that.