How do I convert a pointer back?
I have:
DrawImage(ImagePTR,X,Y,FrameNum)
Where ImagePTR is a pointer to a tImage type, but I get an error that it can't convert to tImage.
I've Tried:
DrawImage(ImagePTR[0],X,Y,FrameNum)
and I didn't get an error but my computer locked.
I figured it out, I had loaded the image into a local Object which must have been automatically destroyed, so when I referenced it via a pointer the program crashed.
I have:
DrawImage(ImagePTR,X,Y,FrameNum)
Where ImagePTR is a pointer to a tImage type, but I get an error that it can't convert to tImage.
I've Tried:
DrawImage(ImagePTR[0],X,Y,FrameNum)
and I didn't get an error but my computer locked.
I figured it out, I had loaded the image into a local Object which must have been automatically destroyed, so when I referenced it via a pointer the program crashed.