ooh, shudder, programming. I am a hardware/os guy....give a hardware tech a compiler and he's more dangerous than a programmer with a screwdriver.
That said, I stumbled upon this little piece of advice that helped someone else solve a very similar problem....I hope it helps, but I have truly no clue:
---------------------------
To see the unmanaged debug output which comes from the
Direct3D debug runtime, you either have to run an external tool like
dbmon.exe (Visual Studio Folder\Common7\Tools\Bin\winnt) or enable unmanaged
debugging in the solution properties in VS.NET (Configuration
Properties/Debugging/Enable unmanaged debugging).
You should at least get some output like
444: Direct3D9: :====> ENTER: DLLMAIN(071c3950): Process Attach: ...
And if you are lucky, you also see why the InvalidCallException is thrown.
---------------------------
Also, from what I can tell, this problem occurs when you use old Direct3D assembly (version 1.0.900.0) and .NET 1.1 (VS.NET 2003)
The fix suggested was updating (if you had not) to the summer sdk update. Maybe you are experiencing a bug which has already been removed.
good luck
Edited by gerryf, 12 April 2005 - 06:46 AM.