Full Text Search causing Notes Crash

I have a problem that I need help from the community to fix.

I have an intranet site contained in a single indexed database. I have a search module that basically does an FTSearch in the database, then loops through the result and creates a document containing the results in a rich text field. The search is inside a subform that is included in documents.

The problem is that the process crashes Notes. At first it seemed intermittent, but I think I’ve been able to determined when the crash occurs, but not why, and since I don’t know why, I can’t find a solution to fix it.

The crash seems to happen after someone first boots (or reboots) windows, starts Notes, go in the database, go into one section that opens the documents in a frameset instead in a new tab, and does the search, then Notes crashes. It doesn’t crash if the search when the document is opened in a new tab instead of inside the frameset, and after a crash, if Notes is re-opened, then we can go and repeat the process, it will work no problem. But if the person reboots, it seems to crash again.

I’ve put a quick trace in the script that writes into a temporary log document, and that seems to indicate that the script ends normally. I’ve tried re-creating the result form and the frameset, but with no success.

Has anyone out there encountered this before? Anyone knows what is happening and why? And also how to fix it?