VC++ 2010 Runtimes

Apr 5, 2011 at 11:12 PM

In addition to the DirectX runtime noted on the project's home page, apps built with DirectCanvas require the VC++ 2010 runtime. I built some sample apps and deployed them to a "clean" machine. No luck until I installed the VC++ 2010 runtime. I used v 10.0.30319.

Apr 18, 2011 at 11:59 PM

I installed the directx_Jun2010_redist.exe as linked on the home page.  I also tried installing the VC++2010 runtimes found here:

Microsoft Visual C++ 2010 Redistributable Package (x86)
http://www.microsoft.com/downloads/en/details.aspx?FamilyID=a7b7a05e-6de6-4d3a-a423-37bf0912db84

When I tried to run WindowsFormsTest, I found that it referenced a Wildlife.wmv and failed, I placed a file there...
I now get this:
a TargetInvocationException when doing _touchHandler = Factory.CreateHandler<Windows7.Multitouch.TouchHandler>(panel1);

I am running on a Vista Ultimate 32bit OS, so that means I won't be playing with that sample on this machine....

So, I then went back to the next sample,  WPFTestApp, when I run it, I get the following Direct3D9Exception (E_INVALIDARG) on
E_INVALIDARG: An invalid parameter was passed to the returning function (-2147024809)


> DirectCanvas.dll!DirectCanvas.D3DImageSlimDX.SetBackBufferSlimDX(SlimDX.Direct3D10.Texture2D Texture = {SlimDX.Direct3D10.Texture2D}) Line 77 C#  DirectCanvas.dll!DirectCanvas.WPFPresenter.SetBackBuffer() Line 188 + 0x34 bytes C#  DirectCanvas.dll!DirectCanvas.WPFPresenter.InitD3DImage(int width = 825, int height = 650) Line 183 + 0x8 bytes C#  DirectCanvas.dll!DirectCanvas.WPFPresenter.WPFPresenter(DirectCanvas.DirectCanvasFactory directCanvas = {DirectCanvas.DirectCanvasFactory}, int width = 825, int height = 650) Line 93 + 0xe bytes C#  DirectCanvas.dll!DirectCanvas.WPFPresenter.WPFPresenter(DirectCanvas.DirectCanvasFactory directCanvas = {DirectCanvas.DirectCanvasFactory}, int width = 825, int height = 650, System.Windows.Controls.Image image = {System.Windows.Controls.Image}) Line 103 + 0x11 bytes C#  WPFTestApp.exe!WPFTestApp.MainWindow.InitDirectCanvas() Line 171 + 0x62 bytes C#  WPFTestApp.exe!WPFTestApp.MainWindow.MainWindow_Loaded(object sender = {WPFTestApp.MainWindow}, System.Windows.RoutedEventArgs e = {System.Windows.RoutedEventArgs}) Line 65 + 0x8 bytes C#

Any thoughts on how to get past this error?

Thanks,
--dave

PS> your dnn article linked on the DirectCanvas home page for the DXVA checker is full of bad links, you might want to remove that reference on the DirectCanvas homepage.

Apr 19, 2011 at 12:17 AM

Additional information that might be handy, I did notice that the handle coming back from IntPtr GetSharedHandle(SlimDX.Direct3D10.Texture2D Texture) was negative (-2147419200).  All the other parameters looked OK to me. 

Apr 27, 2011 at 1:43 AM

@davehorner: do you have the .NET 4 runtimes or Visual Studio installed?

Apr 27, 2011 at 9:43 PM

This machine has all sorts of stuff on it.  It has Microsoft .Net Framework 4 client profile, 4 Extended, 4 Multi-targeting Pack, DirectX SDK Feb 07,DirectX SDK June 2007, VS2005 pro,VS2008 pro,2010 pro

May 9, 2011 at 1:38 PM

Ok, so pulling the latest from codeplex on my Windows 7 64bit laptop (vs2010) I get working samples! :)
Though, this ultimately should work on my vista machine correct?

Thanks,
--dave