-
funny error
i have a folderwatch class that monitors a folder for created files.
when a file is created, it triggers an event. in this case i call a function on my main form which tries to add a node to a treeview on the main form.
i get this error: "the action being performed on the control cannot be called from the specified thread" and then something about using control.invoke and control.begininvoke.
any ideas whatsoever????
-
i worked it out. finally.
you use:
mainform.invoke(....
i still don't understand why there is this threading problem. if anybody could explain, that would be nice...
-
The main problem with threading is that any obj created on the main thread can't be shown on the main thread ...