I'm still working on multithreading in VB .Net, and having many problems.
Given that I have my two viewers on the main form of the application, and I've started later two threads that acquire images from two different cameras, does exist a "right way" to show this two images in the respective viewer on the main application form?
By now I'm using Viewer.attach on the Image objects were I'll acquire images later from the threads but, when running the two threads in parallel, the main form gets corrupted (no buttons showed or partial, partial frame around the viewers, etc...). Those problems disappear if I do not attach the images to the viewer or if I run only one thread.
I know about the problem of accessing main window controls from another thread and tried also using a delegate function to update the viewer but this solution doesn't solved the problem. Is ther a "right way" to do this job or it is not possible?
Thanks for the help,
Simone
--
Simone