Skip to main content
gamedev.net
🔒 Locked

Unhandled exeception with DirectDraw initialization code

Started by Elektron Apr 13, 2006 at 3:55 AM 1 replies 800+ views
Original Post
Elektron
Elektron
http://pastebin.com/657221 last 2 lines create unhandled execption [Edited by - jollyjeffers on April 13, 2006 4:20:53 AM]
check my blog: http://indiegamedeveloper71.wordpress.com/
Evil Steve
Evil Steve
CreateSurface() is failing then, giving you a null or invalid pointer. Check your error codes and use the debugger.

ddrval should be something other than DD_OK
jollyjeffers
jollyjeffers
From the Want to post? Read this first. sticky thread:
Quote:
Use a subject line that accurately describes your problem.
Avoid subject lines like:
  • "Problem! I need help!"
  • "DirectX is broken"
  • "Help PLZ PLZ PLZ PLZ"

Use something like:
  • "Extremely low frame rates with shadow volumes"
  • "Determining Z Buffer depths supported"
  • "Flickering when use D3DPRESENT_INTERVAL_IMMEDIATE"
  • "[MDX] Rotating the texture on a pointsprite"

Choosing an accurate subject line helps people identify your thread quickly, and potentially replying.


Help us to help you. You've dumped a block of code and a really quite undescriptive error, with no indication that you've investigated the problem (e.g. checked for NULL pointers, return code values etc..). I updated your subject line so that it might give other members of the community a better idea of what you're trying to ask.

Cheers,
Jack
<hr align="left" width="25%" />
Jack Hoxley <small>[</small><small> Forum FAQ | Revised FAQ |

Topic Locked

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

Sign in to reply to this topic.