Is Interop.Domino dll thread safe?

I am using Interop.Domino dll version 1.2 in a C # application and using multithreading to access multiple NSF files at the same time, creating a new session for each stream created (max 5 threads at a time).

For large NSF files, I got a Notes error as a memory segment overflow. To overcome this problem, I used Marshal.ReleaseComObject (object) to free the required Notesdocument and NotesView, where possible.

Now the problems are similar to the fact that I can access 2 NSF files, but the rest of the threads go in dll exceptions as the number of Notes objects becomes zero.

Please give me some help ....

Thanks for the help.

+3
source share
1 answer

I have been doing some experiments on this very issue recently.

, . 8-10 . Domino Directory, , NSF. NSF. NSF . NotesDatabase.Search, NotesView NotesViewEntry. , , , , Domino Directory NSF. 10 .

, , , COM- Domino .

+2

Source: https://habr.com/ru/post/1724361/


All Articles