Managed Direct3D - DLL hell / Pre-SP2 issues

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: MonoxideC (monoxidec_at_gmail.com)
Date: 12/02/04


Date: 2 Dec 2004 15:00:21 -0800

I'm currently working with a team on a Managed Direct3D app in c#, and
we are having strange issues that seem to be related to SP2. We have
been able to reproduce this issue on multiple machines of various
configurations, but have been unable to find any insight at all into
what the root cause of the problem may be.

The app initializes fine, but once it tries to create the Direct3D
device, it throws a NullReferenceException. We are creating the
device using this line (which is the standard method of creation that
I've seen in many examples)

device = new Device(0, DeviceType.Software, pbRender,
CreateFlags.SoftwareVertexProcessing, presentParams);

However - here's where it get's interesting. It ONLY throws the error
on machines that are PRE-WindowsXP SP2. Installing SP2 fixes the
problem. This error occurs in the samples that are included with the
DirectX SDK October 2004 update as well.

This makes no sense to me - installing the latest DirectX 9.0c runtime
available on Microsoft's website does not help - only pc's running SP2
are able to run the app or any of the sample apps in the SDK.

I have been unable to find any information on this issue, and because
of this, I have no idea on how to proceed. I'm sure that we can
expect our end users to experience the same issues that we are having,
and we definately can't 'require' a SP2 upgrade - that makes no sense.

If anyone has experienced this issue (i'm sure it has to be common
despite the lack of information) we'd appreciate any insight into the
cause and any workarounds or suggestions that you might have.



Relevant Pages

  • RE: HTTP Export to Excel from within application
    ... I posted a similar question regarding exporting within Oracle 11i. ... problem occurred after implementing XP SP2. ... > I have a 2003 Web Server which my app resides on, ... > Excel locally and triggers a Web Query that attempts to pull the data into ...
    (microsoft.public.windows.inetexplorer.ie6.browser)
  • Re: VFP9 SP2 on SP1 runtimes?
    ... no plans for Vista yet. ... Just figuring out if it's safe to play with the SP2 on my dev machine and ... runtimes the same time as the app. ... I'm considering installing the SP2. ...
    (microsoft.public.fox.programmer.exchange)
  • VB6 XP SP2 DBGRID32.OCX
    ... Does anyone know of any issues with dbgrid32.ocx and XP SP2? ... I've inherited support of a VB6 app that uses this data grid. ... Since the new machines came in with SP2, I thought it may be something else ...
    (microsoft.public.vb.general.discussion)
  • Re: Getting "Access is Denied" when starting a ManagementEventWatc
    ... from W2K-Server to XP ... with the install of SP2 some settings related to the ... > I run the app on SP1 or Win2k there is no problem. ... If I run the application on the print server, it works fine, ...
    (microsoft.public.win32.programmer.wmi)
  • Re: multiple windows problem
    ... app would cause all other direct3D apps to stop working when said app is ... >> one in fullscreen mode and one in windowed mode, ... >> fullscreen mode window. ...
    (microsoft.public.win32.programmer.directx.graphics)