Sign in to follow this  
ParanoiaComplex

Instant program crash?

Recommended Posts

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.

Share this post


Link to post
Share on other sites
Delryn    142
Try as an additional parameter DDBLTFAST_WAIT and, if you havent done this already ;) check with if(Function == DDERR_...) whats going on!

Share this post


Link to post
Share on other sites
SSJCORY    100
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.

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this