Dword unhandled exception

The Partridge Family were neither partridges nor a family. Discuss.
Post Reply
Lividpayment
Posts: 10
Joined: April 13th, 2020, 8:47 pm

Dword unhandled exception

Post by Lividpayment » January 31st, 2021, 1:56 pm

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.

albinopapa
Posts: 4373
Joined: February 28th, 2013, 3:23 am
Location: Oklahoma, United States

Re: Dword unhandled exception

Post by albinopapa » February 1st, 2021, 5:14 am

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.
If you think paging some data from disk into RAM is slow, try paging it into a simian cerebrum over a pair of optical nerves. - gameprogrammingpatterns.com

Lividpayment
Posts: 10
Joined: April 13th, 2020, 8:47 pm

Re: Dword unhandled exception

Post by Lividpayment » February 8th, 2021, 5:00 pm

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.

Post Reply