pandap / slimdx

Automatically exported from code.google.com/p/slimdx
MIT License
0 stars 0 forks source link

SlimDX not loading on WindowsXP. #762

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
OS: Windows XP with SP3
GPU: Direct 9/10 compatible

I've downloaded newest SlimDX release(2.0.10.43) - SDK Version.
Every sample is failing to load with "Could not load file or
assembly 'SlimDX' (...) (check screenshot).

After double checking reference to SlimDX assembly, I decided
to download source from SVN and build it from scratch. I got
same error message again, so I started to dig. After removing
Direct 11 dependencies(source files, .lib files, delayed loads
of DX11 libraries), problem disappeared(obvious since DX11 is not
supported on WinXP ;-) ).

I've attached patch against version 1836 from repository.
It may not be perfect solution, but if you want to have
SlimDX working on 'teh old XP', it will give you idea of
missing dependencies.

Original issue reported on code.google.com by kamil.le...@gmail.com on 16 Dec 2010 at 2:41

Attachments:

GoogleCodeExporter commented 9 years ago
The DLLs are delay loaded, so they will not be loaded unless you execute a code 
path that would load them; SlimDX works fine on XP. That error implies a 
problem with 32/64 bit assemblies to me.

Original comment by josh.petrie on 4 Jan 2011 at 5:29

GoogleCodeExporter commented 9 years ago
Well, I've re-built SlimDX from the source, targetting x86 and this particular 
sample wasn't using DX11 components(only DX9), but it was still raising the 
same exception. I won't be guessing what causes the problem, just said what 
fixed it for me(removing delayed DX11 loads). Maybe it occurs only on 32-bit XP 
- what you are going to do with that information, it's only up to you ;-)

Original comment by kamil.le...@gmail.com on 4 Jan 2011 at 6:32

GoogleCodeExporter commented 9 years ago
What is the platform target of the executable that eventually runs?

Original comment by josh.petrie on 8 Jan 2011 at 10:35

GoogleCodeExporter commented 9 years ago
It's x86 (built on x86 machine).

Original comment by kamil.le...@gmail.com on 9 Jan 2011 at 9:32

GoogleCodeExporter commented 9 years ago
If you can upload your project that demonstrates the problem, I'll give it a 
whirl on an old XP machine I have access to.

Original comment by Mike.Popoloski on 9 Jan 2011 at 3:11

GoogleCodeExporter commented 9 years ago
It's actually MiniTri sample with some small changes. I hope it will reproduce 
the problem on your box.

Original comment by kamil.le...@gmail.com on 9 Jan 2011 at 11:58

Attachments:

GoogleCodeExporter commented 9 years ago
The program runs just fine here, assuming I move the shader and texture into 
the appropriate output folder.

Original comment by Mike.Popoloski on 10 Jan 2011 at 5:15

GoogleCodeExporter commented 9 years ago
I've installed SlimDX runtime and this app on another XP box and it works 
smoothly. I guess you were right after all - this problem might be just local 
assembly management problem. Thanks for being supportive. Mea culpa :)

Original comment by kamil.le...@gmail.com on 10 Jan 2011 at 7:29

GoogleCodeExporter commented 9 years ago
OK, I'm going to close this issue then. Let us know if you run into any other 
issues.

Original comment by Mike.Popoloski on 10 Jan 2011 at 7:37