Hi to the group,
I wrote a program originally in VB.NET 2003 to retrieve some outlook items.
The program runs just fine.
I have recently converted it to VB.NET 2005 and here is the issue:
Program loads and runs up to the point of calling a subroutine -
'GetSomeOutlookItems'. The program has thus far taken about 1/2 second or so.
The subroutine is in its own module and imports Microsoft.Office.Interop.
The program now takes about 6 to 8 seconds to actually get to this subroutine.
Once the program gets there it takes about 1/2 second to finish loading all the data.
Is there something I am overlooking or doing wrong
Did VS2005 convert my program correctly
Thks in advance,
Any all suggestions are welcomed,
Dave

VS 2005 Time delay in calling subroutine (Office Interop)
Hancz
Jorge MVP
araus
I will try this as soon as I learn how to use ngen.
Eventhough this app takes longer to load, I feel that I at least know why.
Many thanks to your help,
Rgs,
Dave
Sugoiram
I opened Outlook and then started my application. The app took just as long to get from calling the sub to getting to the sub.
The app was originally developed in VS 2003 and worked under Framework 1.1. There was no noticeable delay.
I do not really know how Framework / Office.Interop works. You may be quite correct in that there is a 'process' that needs to take place before the called subroutine can be executed.
FYI, the time delay does not exist while working within the IDE. The delay only happens when executing the complied .exe file.
Dave
mikejliddell
Jeffrey E. Moeller
The time is reduced by about 40% - 50% on the second run and no further time savings on subsequent runs.
Dave
Daniel Kunstek