troubleshooting

Cancel
Save
Edit

Accelerator Troubleshooting

Creating an array from a bitmap is really slow under the VS 2005 Debugger but OK outside the debugger.

This is a known issue debugging Managed Direct X applications in VS 2005. The problem is an interaction between the Direct X Code and the new Managed Debugging Assistants in VS 2005.
From the KB http://lab.msdn.microsoft.com/productfeedback/viewfeedback.aspx?feedbackid=0dda86da-a83f-475d-8610-d3a08a14cc7f
"This is caused due to the Managed Debug Assistant (MDA) PInvokeStackImbalance which is enabled by default when application is run under the debugger. Each call to Bitmap.Width involves a P/Invoke. To workaround this issue disable either this MDA or all MDAs for now. Please refer to http://msdn2.microsoft.com/en-us/library/d21c150d(en-US,VS.80).aspx on how to disable MDAs."
Even after disabling MDA's you may still run into problems. The symptoms are that debug runs after the first one are slow again. This happens if you have Visual Studio Hosting enabled. Please refer to the link below for workarounds
http://lab.msdn.microsoft.com/productfeedback/ViewWorkaround.aspx?FeedbackID=FDBK41388#2

Running a program that uses Accelerator failes on 64-bit computers.

PA.InitGPU raises an exception with the message:

		   Unhandled Exception: [System.BadImageFormatException:]  is not a valid Win32 application. (Exception from HRESULT: 0x800700C1)
		   at [Accelerator.AcceleratorMachineLoader.Load(AcceleratorMachineType] mt)
		   at [Microsoft.Research.DataParallelArrays.ParallelArrays.InitGPU()]
	
To resolve this issue just change your Platform Target to x86.