English 中文(简体)
Is Interop.Domino dll thread safe?
原标题:

I am using Interop.Domino dll version 1.2 in c# application, and using multithreading to access multiple NSF file at same time by creating new session for each thread created (Max 5 threads at a time).

For the large NSF files, I was getting the Notes error like memory segment overflow. To overcome this problem, i used Marshal.ReleaseComObject(object) to release the necessary Notesdocument, and NotesView object where ever possible.

Now, the issues is like, i am able to access 2 NSF files but the rest threads are going in dll exceptions as few Notes object are getting null.

Kindly provide me some help....

Thanks for help.

问题回答

I have been doing some experiments on this very same question recently.

I have written a test program that launches two different types of threads. Each thread is configured to work with 8 to 10 users. Every thread does have to read the Domino Directory in order to locate the mail file for the users, and each thread also writes results documents to a single common NSF file. But for the main work in the mail files, no two threads are ever accessing the same NSF. The NSF files are spread across two servers. Five of the threads are using NotesDatabase.Search, and five of the threads are reading a NotesView and drilling down to the NotesViewEntry objects. I ran into the same memory issue that you encountered, and solved it the same way -- but I was very careful not to release the Database objects for the Domino Directory or the output NSF. I ve run this test code with up to 10 active threads, with no problems.

This is encouraging, however I do not think this is really enough proof that the Domino COM objects are completely thread safe.





相关问题
Where are the javadocs for Lotus Notes.jar?

I need to use Lotus Notes/Domino as a data source from a Java application. The documentation at IBM says that the Notes.jar contains everything I will need, but where are the javadocs?

Is Interop.Domino dll thread safe?

I am using Interop.Domino dll version 1.2 in c# application, and using multithreading to access multiple NSF file at same time by creating new session for each thread created (Max 5 threads at a time)....

C#和Lotus Notes附录一

我正在使用C#,并需要附上一张空白(shortcut/link)档案和电子邮件给一个彩票账户。 问题是一对一幅通用形象的不实之词,没有像......那样显示双fold。

How to maintain Lotus Notes Version ? C#

I made one product which is retrieving attachment from mails and saving it on particular folder. But problem i am facing is it is not working in 8.0 version. I did development on Lotus Notes 8.5 ...

How to Edit NSF file using c#?

I want to programaticaly change some values to NSF item and then want to save it.(i.e to edit NSF File and then save the editions) for example: I want to set Sender name of all mails to "preeti@abc....

热门标签