|
-
Dec 29th, 2007, 11:02 PM
#1
[RESOLVED] Threading issue using a dll (illegal cross thread call)
Ok, here is my question. I created a dll that is essentially a memory monitor. It is constantly monitoring a specific memory location checking for changes and when it finds one it raises an event. The searches are all done in a thread created by the dll. Here is my issue. In the forms application using the dll, I want to write data to a text box when the event is called. So I am able to do this as long as I create a Delegate handler and invoke it before writing to the textbox otherwise I get an illegal cross thread call error.
My question is this... Is it possible to invoke the calling thread from within the dll so that I do not have to in the forms application that is using the dll. I have tried quite a few methods and have yet to be successful at it.. I am reaching the point of thinking it isn't possible. If anyone has any insight on this one I would greatly appreciate it.
Thanks
bmahler
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
|