Jump to content

Welcome to Geeks to Go - Register now for FREE

Need help with your computer or device? Want to learn new tech skills? You're in the right place!
Geeks to Go is a friendly community of tech experts who can solve any problem you have. Just create a free account and post your question. Our volunteers will reply quickly and guide you through the steps. Don't let tech troubles stop you. Join Geeks to Go now and get the support you need!

How it Works Create Account
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