Probably stating the obvious here...

I am making a game using visual studio .net 2003 with directx 9 2005 update.  I create a deployment project with visual studio that includes all directx.dll files and other detected dependancies.  I deploy the game to the computer on which it was developed and it works fine.

Now I want to test the networking so I deploy it to a laptop.  The laptop is running windows xp with SP 2 (so .net framework is there obviously)  I also installed latest runtime on this laptop.

When I try to run the game, it says: "Application has generated an exception that could not be handled"

It may be that the game itself is throwing some kind of exception (video card maybe ) but the game only uses directdraw so I can;t imagine thats the issue.  I know I don't have any files hard coded.

Might there be anything obvious that I'm overlooking


Answer this question

Probably stating the obvious here...

  • ActivityDeveloper

     Paul Bleisch wrote:


    I'm not clear from the above.  Have you used the Redist that comes with the June 2005 SDK to install on the machines you want to run the app on   The SDK installs the redist for you on the dev machine, but the other machines will require you to install the June 2005 redist before any managed application will work properly.


    I have installed the DirectX 9.0c Redistributable from this page.
    http://www.microsoft.com/downloads/details.aspx FamilyID=3ad9f0d1-8d81-40c8-9815-924dcd4cd2c5&DisplayLang=en

    I have also tried to just include the Managed Directx Dll:s from "Microsoft DirectX 9.0 SDK (June 2005)\Developer Runtime\x86\DirectX for Managed Code" into the direction of the application executable.

    I have tried to install other DirectX Redistributables also but none have got the application to work.


  • elfw

    you installed the right runtime on your laptop as you developed your app in
    did you check the runtime version (start/run/dxdiag)
    also check to see if any of the sdk directDraw samples run on your laptop

  • Isty Ahmad

     SretiCentV wrote:
    I think they got rid of that for 2005 release.  Can anyone confirm that


    Yes, this was removed as of the April 2005 Update.

  • bohan

     Paul Bleisch wrote:


    The only redist that will help you is the one from June 2005.  The link you provide above should install the appropriate Managed DirectX assemblies.  What version of the .NET runtime is installed on the machines with the problem


    All the computers i have tried the application on have .NET framework 1.1 isntalled


  • Vincent Mahon

    these are great ideas and I am going to try them later today and post an update on whats going on.  Another thing I am going to try is running this on a computer that has vs.net but no dx sdk.  The reason being: if this error comes up on that computer, then, vs.net will run as a debugger and direct me more specifically to what the problem is. 

    Thanks smacker for the idea and for priming me to have my own idea as well =)

  • jwong008

     DoRsal wrote:

    I have the same problem.

    We are actually a tree different teams working on tree different projects and all are using "Microsoft DirectX 9.0 SDK (June 2005)". It seems like no-one can run the application except those who have the SDK installed. I have also located that it seems to be when Managed.Direct3DX is used that this problem occurs.

    I have set all DirectX references in Visual Studio.net 2003 to be Copy Local so all the DirectX files that are in use are located at the same directory as the application file. If i have understood this correctly this would make the application use the Dlls from the application directory. I have also tried without this configuration.

    I have also tried to install a couple of different DirectX runtimes downloaded from Microsoft. And I have made sure that the Managed DirectX files have been installed (some releases dont install this as default).

    On the test computer I have Windows XP Pro with SP2 installed. I have also tried the Application on other computers that I don’t know the exact configuration on.

    I can also mention that the first stage in the application works fine. That part only uses
    Microsoft.DirectX.Direct3D and Microsoft.DirectX.DirectInput.< xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

     



    I'm not clear from the above.  Have you used the Redist that comes with the June 2005 SDK to install on the machines you want to run the app on   The SDK installs the redist for you on the dev machine, but the other machines will require you to install the June 2005 redist before any managed application will work properly.



  • oaix

    I think they got rid of that for 2005 release.  Can anyone confirm that
  • ArtySaravana

    Actually, if you have the .NET framework installed (1.1 or higher) the managed components will automatically install.  If you install the DirectX SDK _before_ installing the CLR, you will need to re-run the SDK install again to get the managed components.

  • martin palla

    Turns out it was my video card.  Didn't support dx.  Tried it on another machine and it works.  =)


  • nima_API

    If you're still having problems, this might help:

    When installing DirectX 9c, it doesn't by default install the managed DirectX components, you need to install it with the /installmanageddx flag - from the command line you'd type:
    dxsetup /installmanageddx

    This should install the required libraries for managed DirectX apps.

    Hope that helps.



  • windthorstking

    I have the same problem.

    We are actually a tree different teams working on tree different projects and all are using "Microsoft DirectX 9.0 SDK (June 2005)". It seems like no-one can run the application except those who have the SDK installed. I have also located that it seems to be when Managed.Direct3DX is used that this problem occurs.

    I have set all DirectX references in Visual Studio.net 2003 to be Copy Local so all the DirectX files that are in use are located at the same directory as the application file. If i have understood this correctly this would make the application use the Dlls from the application directory. I have also tried without this configuration.

    I have also tried to install a couple of different DirectX runtimes downloaded from Microsoft. And I have made sure that the Managed DirectX files have been installed (some releases dont install this as default).

    On the test computer I have Windows XP Pro with SP2 installed. I have also tried the Application on other computers that I don’t know the exact configuration on.

    I can also mention that the first stage in the application works fine. That part only uses
    Microsoft.DirectX.Direct3D and Microsoft.DirectX.DirectInput.< xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

     

     



  • Peter Ritchie

    I still have the problem though. And my graphics card definitely supports directx.

  • ZmrAbdulla

    Today I got access to a band new computer that i can use as a test computer. I have a fresh install of Windows XP Pro with SP2.

    I have installed .NET Framework 1.1 and directx (the one from the link i posted erlier).

    I have the same error as before. I have also made a very simple direcx application just to test and still I get this error.

    I have run dxdiag to compare the files and all Managed directx files are there with the same version except that I have two Microsoft.DirectX.Direct3DX.dll files on my computer with different versions. But the testapplication I made don’t use Direct3DX so this can’t be the problem.

    Any suggestions what I should try next to get my applications to work on other computers < xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

     

     



  • Christina

     DoRsal wrote:


    I have installed the DirectX 9.0c Redistributable from this page.
    http://www.microsoft.com/downloads/details.aspx FamilyID=3ad9f0d1-8d81-40c8-9815-924dcd4cd2c5&DisplayLang=en
    I have also tried to just include the Managed Directx Dll:s from "Microsoft DirectX 9.0 SDK (June 2005)\Developer Runtime\x86\DirectX for Managed Code" into the direction of the application executable.

    I have tried to install other DirectX Redistributables also but none have got the application to work.


    The only redist that will help you is the one from June 2005.  The link you provide above should install the appropriate Managed DirectX assemblies.  What version of the .NET runtime is installed on the machines with the problem

  • Probably stating the obvious here...