A
AlexS
Hi,
I migrated working 1.1 console project which worked to 2.0 having forms and
console window and started to get this exception in debugger
A call to PInvoke function 'Utils!Utils.ConsoleWindow::GetStdHandle' has
unbalanced the stack
This happens when I issue ShowWindow Win32 call from non-UI thread.
Strange thing it this works w/o any troubles in 1.1.
Main thread fails with cryptic
System.Reflection.TargetInvocationException: Exception has been thrown by
the target of an invocation. ---> System.InvalidOperationException:
Cross-thread operation not valid: Control '' accessed from a thread other
than the thread it was created on.
What should I do?
I migrated working 1.1 console project which worked to 2.0 having forms and
console window and started to get this exception in debugger
A call to PInvoke function 'Utils!Utils.ConsoleWindow::GetStdHandle' has
unbalanced the stack
This happens when I issue ShowWindow Win32 call from non-UI thread.
Strange thing it this works w/o any troubles in 1.1.
Main thread fails with cryptic
System.Reflection.TargetInvocationException: Exception has been thrown by
the target of an invocation. ---> System.InvalidOperationException:
Cross-thread operation not valid: Control '' accessed from a thread other
than the thread it was created on.
What should I do?