I\'m completely stuck. I\'m testing MetaTrader API and getting next error when tries to run a method in the Immediate Window of VS 2010:
A first chance e
I believe that error means that the method you are trying to execute is spawning a thread. However, since the program is in Break mode, it can't run. To avoid a deadlock (where the method will wait forever for a thread that won't run), Visual Studio kills any spawned threads.
My suggestion is to move the call into the program, and use some other means to execute it.