Interesting. I see that step one involves copying a list of files from
DTE to your own list. Is that the preferred method of dealing with DTE
data? To copy it?
Also, do you implement your delay in the macro itself? Or do you rerun
your macro starting where it last left off?
steve
Hi Steve
> Interesting. I see that step one involves copying a list of files from
> DTE to your own list. Is that the preferred method of dealing with DTE
> data? To copy it?
For me it was a workaround. I dont think it is proposed way.
> Also, do you implement your delay in the macro itself? Or do you rerun
> your macro starting where it last left off?
Hear is pseudocode:
while counter<maxnumof repetitions
try
DoWork
exit while
catch (e as exception)
counter+=1
thread.sleep(100)
end catch
end while
With best regards,
snichols - 27 Feb 2006 19:53 GMT
Thanks for the info. Here's what I found:
VS .NET 2003 macros run in another process. They communicate with the
IDE via some form of IPC (Inter Process Communication). It seems that
the connection between the macro host and the IDE can be lost
occasionally.
When I converted my macro to an add-in, this problem was resolved.
Add-ins run in the same process as the IDE and, as such, they don't
lose connection.
steve