Notes API Gurus - Problem with DLL loaded from VIEWEXP

I have a couple of custom export dlls, which I add to the notes.ini as VIEWEXPx values, and call using @Command([FileExport]).

Prior to release 7 of Notes, these DLLs, which maintain a handle to the selected documents worked great.

Now in release 7 and 7.0.1, when the DLL is unloaded, it Red Screens with the following error: LookupHandle: handle out of range.

To test this problem a bit further, I’ve commented out just about everything, including any and all loading of any Notes objects. Still, with the DLL doing nothing, I red screen.

Any thoughts?

Subject: Notes API Gurus - Problem with DLL loaded from VIEWEXP

Do you have any code in the DLL destructor functions? If so, what is it?

Subject: RE: Notes API Gurus - Problem with DLL loaded from VIEWEXP

None whatsoever…

I have a total of three DLLs used for different export functions - two of the three have this problem, the third does not. I currently trying to port the bulk of one of the failing dlls into the shell of the successful one.

The main difference between them so far is the successul one is single-threaded, while the two that fail are multi…

I’ll post again if I come to some conclusion.