XNA Creators Club Online
Page 1 of 1 (7 items)
Sort Posts: Previous Next

DirectX problem in Windows 7 (program has stopped working)

Last post 7/8/2009 5:08 AM by mpipe. 6 replies.
  • 6/20/2009 4:31 PM

    DirectX problem in Windows 7 (program has stopped working)

    I'm trying to run a VB2008 application that uses DirectX under Windows 7 RC (64 bit). This is an application I wrote on a Vista machine. When I run the compiled application in Windows 7, I get the error message:

    myappname has stopped working


    From within VB2008 Express Edition, I am able to build the solution, but I cannot debug it. Trying to debug will throw the error:

    InvalidOperationException was unhandled.
    An error occured creating the form. See Exception.InnerException for details. The error is: is not a valid Win32 Application. (Exception from HRESULT: 0x800700C1)


    This same project will debug, compile, and run fine under Windows XP or Vista (both test boxes are 32 bit).
    A VB2008 project that does not require DirectX will run find under Windows 7.
    The March 2009 DirectX SDK is installed on the Windows 7 machine, same as the XP and Vista machines.

    Any idea how to get DirectX applications to work under Windows 7?

    Thanks,
    Lance
  • 6/20/2009 5:20 PM In reply to

    Re: DirectX problem in Windows 7 (program has stopped working)

    It might be helpful if you can tell what instruction throw this exception. 
  • 6/25/2009 5:18 PM In reply to

    Re: DirectX problem in Windows 7 (program has stopped working)

    I can create a new VB project, add the DirectX and Direct3D references, and put this code in the main form:

     
    Imports Microsoft.DirectX 
    Imports Microsoft.DirectX.Direct3D 
     
    Public Class Form1 
        Dim device As Direct3D.Device 
     
        Dim MyTriangleStrip(3) As CustomVertex.PositionColored 
    End Class 

    MyTriangleStrip is the line that is causing the error in the original post.
  • 6/25/2009 5:58 PM In reply to

    Re: DirectX problem in Windows 7 (program has stopped working)

    also, it would help if you provided more information about the graphics card in each of your machines...
  • 6/26/2009 3:36 PM In reply to

    Re: DirectX problem in Windows 7 (program has stopped working)

    The video card is a Nvidia GeForce 8800 GT
  • 7/8/2009 5:00 AM In reply to

    Re: DirectX problem in Windows 7 (program has stopped working)

  • 7/8/2009 5:08 AM In reply to

    Re: DirectX problem in Windows 7 (program has stopped working)

    thank you for posting this thread
Page 1 of 1 (7 items) Previous Next