Hi Tom,
You say: "After Excel has crashed, or even while Excel is running and
the addin has been loaded, other user
mode processes begin to crash, Explorer, MMC, etc, from similar
exceptions."
If true, this is pretty serious, and can not be due to any wrong in
Excel, your Excel-DNA add-in or .NET itself, but is indeed a much more
serious symptom of instability on that (virtual) machine. Windows will
generally isolate processes very well, so general errors like this
indicate something very wrong.
As a test I would suggest running the add-in a bit in a non-virtual
host on the same O/S and network environment (i.e. Terminal Services
without XenApp).
As for the list of 'dangerous' features - the ones I would be worried
about in order of concern:
1. running the add-in binaries over the network - you say "it is run
from a FullTrust local intranet share over a distributed file system"
- this would be my first worry. Just copy the binaries to the local
machine (not necessarily the SQLite database).
2. The WPF form over Terminal Services - this would make me a bit
nervous - there used to be issues with WPF being hosted in Office
apps, and WPF via RDP was also a bit funny. Try to isolate this part.
3. Run it under .NET 4 (you might need to add some stuff to the
excel.exe.config file to allow the SQLite driver to load, or change
the System.Data.SQLite version you use. The rest need not even be
recompiled, just add the right RuntimeVersion tag in the .dna file).
On Nov 1, 2:56 pm, Tom Keirl <
tom.ke...@gmail.com> wrote:
> Thanks for your suggestions. We're currently trying a fully stripped down
> version of the Addin with most of those features removed. Any problems with
> the SQLite connection should be caught, in theory, in managed code courtesy
> of a global exception handler registered when the addin loads with
>
> Integration.RegisterUnhandledExceptionHandler
>
> The referenced exception handler returns a string pertaining to the
> exception message after various tests are done to evaluate whether it
> should be logged, output into LogDisplay, etc.
>
> Will update soon.
>
> Thanks
>
> Tom