PDA

Click to See Complete Forum and Search --> : DDraw get's :mad: Is this a MS joke?


kedaman
Jun 30th, 2000, 07:05 PM
Ok, what i'm doing is pretty simple, I blitt a surface on the back buffer, but I get a totally unrecognizable error!!!! -2147024809 Have you ever heard of that -2147024809 !!! And this only happens with this surface array!

In my code:

A = Back.BltFast(Mouse.x - 64, Mouse.y - 16, tlTerrain(1, 1), CreateRect(0, 0, 0, 0), DDBLTFAST_WAIT Or DDBLTFAST_SRCCOLORKEY)
Select Case A
Case 0
Case DDERR_EXCEPTION
Case DDERR_GENERIC
Case DDERR_INVALIDOBJECT
Case DDERR_INVALIDPARAMS
Case DDERR_INVALIDRECT
Case DDERR_NOBLTHW
Case DDERR_SURFACEBUSY
Case DDERR_SURFACELOST
Case DDERR_UNSUPPORTED
Case DDERR_WASSTILLDRAWING
Case Else
MsgBox A 'shows -2147024809
End Select



From the DirectX Help:

Error Codes
If the method fails, it can return one of the following:

DDERR_EXCEPTION
DDERR_GENERIC
DDERR_INVALIDOBJECT
DDERR_INVALIDPARAMS
DDERR_INVALIDRECT
DDERR_NOBLTHW
DDERR_SURFACEBUSY
DDERR_SURFACELOST
DDERR_UNSUPPORTED
DDERR_WASSTILLDRAWING



Error Codes
Errors are represented by negative values and cannot be combined. This table lists the values that can be returned by all methods of the DirectDraw7, DirectDrawSurface7, DirectDrawPalette, and DirectDrawClipper objects. For a list of the error codes that each method can return, see the method description.

Darkwraith
Jul 25th, 2003, 06:12 PM
Have you figured out what it is yet? It sounds quite interesting. :)

cyborg
Jul 25th, 2003, 06:58 PM
maybe these aren't predefined and you have to define them:

DDERR_EXCEPTION
DDERR_GENERIC
DDERR_INVALIDOBJECT
DDERR_INVALIDPARAMS
DDERR_INVALIDRECT
DDERR_NOBLTHW
DDERR_SURFACEBUSY
DDERR_SURFACELOST
DDERR_UNSUPPORTED
DDERR_WASSTILLDRAWING

BodwadUK
Jul 28th, 2003, 02:05 AM
Try sizing your Rect properly!!!!

Yes they are predefined :) :) :)

Have you got a clipper??? :confused: :confused: :confused:

CornedBee
Jul 28th, 2003, 05:27 AM
Probably not your problem, but Managed DirectDraw from DX9 throws an exception whenever you try to blit something that touches pixel 0,0 on the back buffer.