Jump to content

Welcome to Geeks to Go - Register now for FREE

Geeks To Go is a helpful hub, where thousands of volunteer geeks quickly serve friendly answers and support. Check out the forums and get free advice from the experts. Register now to gain access to all of our features, it's FREE and only takes one minute. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more.

Create Account How it Works
Photo

Access violation


  • Please log in to reply

#1
AgedNovice

AgedNovice

    Member

  • Member
  • PipPip
  • 19 posts
I have converted a programme developed under XP Home Edition using VC++6 and DirectX 8 to Vista Home Premium (SP1) using C++2008 Express Edition and DirectX 9 (including DirectX 8 Include and Library files). The program compiles OK but when I run it I get an error message: "Unhandled exception at 0x607d24d1 in Alpha1.exe: 0xC0000005: Access violation reading location 0x00000144". The program is failing at a call : "g_pD3DDevice->Present(NULL, NULL, NULL, NULL);" Windowed (TRUE), SwapEffect (D3DSWAPEFFECT_DISCARD), BackBufferFormat (set to Adapter Display Mode format) and EnableAutoDepthStencil (FALSE) presentation parameters are set as indicated. The program does not throw up this error if I comment out the call.

Any advice or help would be much appreciated.

AgedNovice :)
  • 0

Advertisements


#2
AgedNovice

AgedNovice

    Member

  • Topic Starter
  • Member
  • PipPip
  • 19 posts
OK I've sorted this out. I hadn't realized that DX8 and DX9 were so incompatible! I've reworked the program using DX9 and all is well. :)
  • 0

#3
BHowett

BHowett

    OT Moderator

  • Moderator
  • 4,649 posts
Thanks for letting us know you got it sorted :)


feel free to have a look around at all the forums, and make a few new friends.
  • 0






Similar Topics

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

As Featured On:

Microsoft Yahoo BBC MSN PC Magazine Washington Post HP