Villacaleb / slimdx

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

WpfSample10 doesn't work #699

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
The sample is from June 2010's SDK, downloaded from slimdx.org.
Already installed DXSDK and SlimDXSDK (both are June 2010), and reseted the 
reference of the SlimDX to C:\Program Files (x86)\SlimDX SDK (June 
2010)\Bin\net20\x86\SlimDX.dll.

The problem is that the program can only show the two buttons, nothing else.
Directly running "SlimDX Samples (June 
2010)\Direct3D10\SimpleTriangle10\SimpleTriangle10.exe" gives the same problem.

The program gives exception at line 77 in D3DImageSlimDX.cs.
SharedTexture = new Texture(D3DDevice, Texture.Description.Width, 
Texture.Description.Height, 1, Usage.RenderTarget, format, Pool.Default, ref 
Handle);
The message of the exception is "E_INVALIDARG: An invalid parameter was passed 
to the returning function (-2147024809)".
It seems that the last parameter makes this exception. However, this parameter 
is the key parameter.

I have tested it on two computers (Geforce 9600MGT and Radeon 5850), both 
running Vista SP2 x64, and VS 2010.

Original issue reported on code.google.com by mul...@live.com on 9 Jul 2010 at 7:57

GoogleCodeExporter commented 9 years ago
I upgraded one of my OS to win7 (new install), and find WpfSample10 works now. 
I don't know why. It still cannot show triangle on the Vista PC, yet. To 
verify, I directly copied the WpfSample10.exe and MiniTri.fx that don't work on 
Vista PC to Win7 laptop, and they work now.
I think it is possible that the problem is because of the OS, or combination of 
OS and certain software. The two computer don't have same software 
configuration before I upgrade. I will continue test on this problem and hope I 
can find the reason, because the desktop PC is the one that I mainly used for 
development, and I don't plan to upgrade the OS on it now.

Original comment by mul...@live.com on 19 Jul 2010 at 7:01

GoogleCodeExporter commented 9 years ago
I confirm this bug on a fresh Windows 7 x64 installation with Visual Studio 
2008: I also only see two triangles.  Strange thing is, the original C++/CLI 
interop-ed sample that the same came from used to work on my other computer and 
no longer does here either.

Original comment by jia...@gmail.com on 20 Jul 2010 at 6:19

GoogleCodeExporter commented 9 years ago
Can you give us any more information? We're all able to run this without a 
problem, so if you could try debugging the project on one of the problematic 
machines that would be helpful.

Original comment by Mike.Popoloski on 30 Aug 2010 at 7:05

GoogleCodeExporter commented 9 years ago
Unfortunately, I just upgrade my second computer to Win7 last week. Therefore, 
I cannot reproduce the bug on any of my computers. I think it may be because 
some software conflictions (maybe not the system reason but some other 
applications that I may have not installed or already updated after system 
upgrade), but I have no idea now.

Original comment by mul...@live.com on 30 Aug 2010 at 11:03

GoogleCodeExporter commented 9 years ago
I'm going to close this now then. If someone else runs across the problem in 
the future, they may be able to give us more information on it.

Original comment by Mike.Popoloski on 31 Aug 2010 at 3:25

GoogleCodeExporter commented 9 years ago
I'm encountering in this bug. Running 64-bit Vista Service Pack 2. And using 
June 2010's slimdx sdk

Running \SlimDX Samples (June 2010)\Direct3D10\WpfSample10\WpfSample10.exe, I 
see the two buttons, and a white window background. No D3D rendering.

Running \SlimDX Samples (June 
2010)\Direct3D10\SimpleTriangle10\SimpleTriangle10.exe, I see the RGB triangle 
- this is working as expected.

Original comment by memory...@gmail.com on 29 Sep 2010 at 1:13

GoogleCodeExporter commented 9 years ago
Btw, I'm running Visual C# 2010 Express, so I wrapped a try/catch block around 
the offending code:

                try
                {
                    SharedTexture = new Texture(D3DDevice, Texture.Description.Width, Texture.Description.Height, 1, Usage.RenderTarget, format, Pool.Default, ref Handle);
                }
                catch(Exception e)
                {
                    Console.WriteLine("{0} Exception caught.", e);
                }

The exception e has error message:

+       e   {"E_INVALIDARG: An invalid parameter was passed to the returning function 
(-2147024809)"} System.Exception {SlimDX.Direct3D9.Direct3D9Exception}

Original comment by memory...@gmail.com on 29 Sep 2010 at 1:15

GoogleCodeExporter commented 9 years ago
I am also have the exact same issues.  I'm trying to use DirectCanvas and hit 
this same Direct3D9Exception -2147024809 on my Vista 32 bit.

I have written more about my experience here: 
http://directcanvas.codeplex.com/discussions/252688

Samples work fine on my Win7 laptop.

Wishing it would work in vista.

Thanks,
--dave

Original comment by daveydav...@gmail.com on 12 Jun 2011 at 8:49