"Cross-thread operation not valid" exception

Hello,

I have exceptions like this only if I run my application in debug mode and do some actions (It's an application created with VS2003 and converted to VS2005, in 2003 there wasn't these exceptions).
I know how to fix them, but I just want to know if it is advised to fix these exceptions because they didn't cause problems if not debugging.

Thank you very much.

Alex Bell

[390 byte] By [AlexBell] at [2007-12-16]
# 1
Absolutely fix them, just because you don't see any problems when you run the application, it might cause problems on other machines. Especially older Windows versions are less forgiving about cross-thread operations.

The checks that detect these operations are only enabled in debug mode, but it's still wrong to make these calls.

DanielRieck at 2007-9-9 > top of Msdn Tech,Visual Basic,Visual Basic General...
# 2
Ok thank you very much.

Alex Bell

AlexBell at 2007-9-9 > top of Msdn Tech,Visual Basic,Visual Basic General...