Instant program crash?

Started by
4 comments, last by ParanoiaComplex 19 years, 9 months ago
When I try to call my g_pDDSBack surface (my back buffer), my program crashes entirely. What gives? I call it right before in another function, and it works perfectly.
Quote:hRet = g_pDDSBack->BltFast(xPos, yPos, g_pDDSOne, &rcRect, DDBLTFAST_SRCCOLORKEY);
And yes, those are all valid values being passed. I checked. Believe me, I checked.
Advertisement
Try as an additional parameter DDBLTFAST_WAIT and, if you havent done this already ;) check with if(Function == DDERR_...) whats going on!
if( g_pDDSBack == NULL )
. . SureCrash();
else
. . YupDirectDrawError();
That isn't the problem. Whenever I even attempt to call it, it crashes.
I've had errors like that. The first time i had one because i didn't zero out the d3d present parameters struct. I don't know why its doing it for you hope you figure it out.
Favorite Quotes:Gandalf: You cannot pass!|Smeagol: We don't need you!|Sloth: Hey you guys!|
Ever since I tried to put my program into many files, this didn't work.

I can write to the backbuffer in other files, but as soon as I try to access it within my cObject class, it fails.

And I'm using DX7 and directdraw, so I have no idea what you are talking about when you say present parameters :P

This topic is closed to new replies.

Advertisement