|
-
Jan 28th, 2007, 10:36 AM
#1
Thread Starter
Addicted Member
[RESOLVED] [2005] Cross-thread opCross-thread operation not valid. Please help!
Hi,
I'm not explicitly using threading, but I'm getting this error:
Cross-thread operation not valid: Control 'lvStaticGrps' accessed from a thread other than the thread it was created on.
I've just realised why threads are involved: I'm using a FileSystemWatcher to detect when a file is saved. The program responds by loading data from the newly saved file and updating a list view. It's while accessing the list view that the above error occurs.
I've read up a little about threading, but I really have no idea. Do i have to use a Delegate sub and Invoke? Eeck.
Thx for your help!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|