I wrote a program on FEZSpider under VS2012 Express, working fine in Debug mode.
But When I deploy it on the board (vie VS), program running very slow, take several minute to make a simple action.
I delete all Debug trace in the program before deployment and Release Build don’t change speed.
There is an issue with NETMF:
When USB cable is connected, but no Debugger (like VisualStudio) is actively connected, then every debug Output gets slow.
These are not only calls to Debug.Print, but also all Outputs from exceptions, garbage collector, thread Scheduler, …
If it gets fast when the USB cable is disconnected, thenm this is the cause of the Problem.
Could be related to a known known issue. I don’t have the Codeplex issue number at hand, but it had to do with timeouts after debug output buffer overflows, and the board trying repeatedly to connect to VS.