500 points - An invisible thread in VB.Net!!
Posted on 2005-04-28
Ok, i've been working on this all day so someone please help me figure this out!
I have a program that needs to pull a load of info from Outlook, because everytime i access something like contacts or addresses the outlook security warning pops up. So, i look at a few microsoft articles and write myself a 'shared Addin' project.
This basically kicks of an event everytime Outlook starts, passing through the Application object, which in theory should be security warnings free...
The only problem is, that when i pass the application to my main program (another Class project) then it seems to go 'under' the Vb.Net debugger. i.e. none of the breakpoints catch the thread, but if i put a msgbox in the way of the thread, that will show!
I also tried to invoke the UI thread by calling the main application form which is shared in another project, and although it exists in the 'debugged' thread... it is empty in the thread that it's been passed to!
How can i get that application object to the currently running instance of my program?