A
Andre Nogueira
Hi guys,
Since you helped me out the last time I needed - let me thank you for that
if I haven't already ;-) - I decided to call for your help yet again.
I'd like to be able to open a FolderBrowser instance from within a thread I
lauched, but I don't seem to be able to. It gives me this exception
Current thread must be set to single thread apartment (STA) mode before OLE
calls can be made. Ensure that your Main function has STAThreadAttribute
marked on it. This exception is only raised if a debugger is attached to the
process.
And points me to this MSDN page
http://msdn2.microsoft.com/en-us/library/ms241609.aspx
So... Is there any way I can accomplish this, or do I have to think of
another way?
Thanks!
Andre Nogueira
Since you helped me out the last time I needed - let me thank you for that
if I haven't already ;-) - I decided to call for your help yet again.
I'd like to be able to open a FolderBrowser instance from within a thread I
lauched, but I don't seem to be able to. It gives me this exception
Current thread must be set to single thread apartment (STA) mode before OLE
calls can be made. Ensure that your Main function has STAThreadAttribute
marked on it. This exception is only raised if a debugger is attached to the
process.
And points me to this MSDN page
http://msdn2.microsoft.com/en-us/library/ms241609.aspx
So... Is there any way I can accomplish this, or do I have to think of
another way?
Thanks!
Andre Nogueira