Managed DirectX 64bit

We have a managed directX application that consistently runs out of memory on 32bit system because of large datasets. These are datasets that are bigger than 3Gb and fail without excessive fragmentation of the LOH. I've been investigating running under windows XP 64bit and Vista 64bit. The February 2007 DirectX SDK doesn't appear to have 64bit managed directx.

What are my options (Rewriting our app native isn't one of them).

Jamie Briant



Answer this question

Managed DirectX 64bit

  • bw12117

    We have a managed directX application that consistently runs out of memory on 32bit system because of large datasets. These are datasets that are bigger than 3Gb and fail without excessive fragmentation of the LOH. I've been investigating running under windows XP 64bit and Vista 64bit. The February 2007 DirectX SDK doesn't appear to have 64bit managed directx.

    What are my options (Rewriting our app native isn't one of them).

    Jamie Briant


    The managed DX assemblies aren't compiled for bit-ness I suppose, so they should work as 64 bit when loaded on a 64 bit system (OS + HW).
    Note however that all managed object sizes (like array's) are limited to 2GB even on 64 bit, so if this is your issue you are stuck.
    Note, that on a 64 bit system, you can apply the LARGEADDRESSAWARE option to a 32 bit PE file (using editbin.exe), this will extend the VAS to 4GB, this may solve your problem if you can't get it to work as 64 bit.
    Willy.
     

  • JamesZ

    Unfortunately they appear to load 32 bit native dll's which of course fails. I'm not talking hypotheticals here. This is something I have attempted. The editbin option certainly vastly improves our situation, but still leaves us out in the cold for extremely large files. I should point out that we are running on 8x AMDx2 (16 core) machines with 8Gb of ram, or Dual Quad-Core 64bit Xeons, as well as my humble 64bit laptop :-)

    Jamie


    True they just wrap the native 32 bit dll's.
    That means you are screwed as there are no 64 bit native AX DLL's available.
     
    Willy.
     

  • c_shah

    Unfortunately they appear to load 32 bit native dll's which of course fails. I'm not talking hypotheticals here. This is something I have attempted. The editbin option certainly vastly improves our situation, but still leaves us out in the cold for extremely large files. I should point out that we are running on 8x AMDx2 (16 core) machines with 8Gb of ram, or Dual Quad-Core 64bit Xeons, as well as my humble 64bit laptop :-)

    Jamie


  • Rodolfo Navarro

    MVP User's suggestion of using LaregeAddressAware is a good stop gap until bit is released. I however, do not know what the plans will be for supporting/shipping 64bit.

    Jeff


  • Managed DirectX 64bit