Skip to main content
GameDev.net gamedev.net
🔒 Locked

ArgumentException[C#]

Started by addy914 Jun 9, 2010 at 12:32 PM 0 replies 500+ views
Original Post
addy914
addy914
I am having a bit of a problem with this one line of code. Yes, it is DirectDraw, but the actual error I don't think is related to DirectDraw.

BackBuffer.DrawFast(x, y, surface, DrawFastFlags.DoNotWait | DrawFastFlags.SourceColorKey);


I have two projects, one is a test for the main one; this line works on test, but not on the main one. The error that comes out is:
"ArgumentException: Value does not fall within the expected range."

I have done some debugging, and when I remove the DrawFastFlags.SourceColorKey it works fine. I think it may be something simple I don't have added or something. My theory is that it's not a valid number when you blend them together.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.