Client Crash when running Database Agent

Hi,I am running and agent importing data from a CSV file and creating notes documents. Crashes invariably happen after 4000 or so new documents have been created. Problem does not seem to be related to data being imported as agent happily imports the line where the crash occurred on re-start.

Problem also occurs in 7 and 8.5 clients in other workstations.

Below is an extract of the NSD file. A pointer as what to look for in the agent, if indeed it is coding problem, would be greatly appreciated.

FATAL THREAD 13/15 [ nlnotes: 1498: 13c0]

FP=0x07e3ef20, PC=0x60aed9a4, SP=0x07e3ef08

stkbase=07e40000, total stksize=262144, used stksize=4344

EAX=0x0837bbac, EBX=0x05d9bbc4, ECX=0x05d9bbd4, EDX=0x05d9b7a0

ESI=0xdddddddd, EDI=0x05d9bbd4, CS=0x0000001b, SS=0x00000023

DS=0x00000023, ES=0x00000023, FS=0x0000003b, GS=0x00000000 Flags=0x00010206

Exception code: c0000005 (ACCESS_VIOLATION)

############################################################

@[ 1] 0x60aed9a4 nnotes.LSsThread::ArrayAllocCopy+84 (5d9b7a0,5d9ba7c,837bbac,5d9bbc4)

@[ 2] 0x6005e333 nnotes.LSsMathOp::Assignment+387 (8,8,1,2)

@[ 3] 0x60021239 nnotes.LSsThread::NRun+5417 (5d9b7a0,0,7ceea14,0)

@[ 4] 0x60021b96 nnotes.LSsThread::Run+182 (5d9b7a0,7e3f014,60ab8746,5d42620)

@[ 5] 0x600a7f1d nnotes.LSsInstance::Resume+29 (5d42620,7ceea14,7e3f040,60ab83f8)

@[ 6] 0x60ab8746 nnotes.LSIThread::Run+86 (7ceea14,0,1,7ceea14)

@[ 7] 0x60ab83f8 nnotes.LSIThread::RunInternal+72 (7e30002,0,0,0)

@[ 8] 0x60ab866c nnotes.LSIThread::RunToCompletion+332 (7ceea14,0,1,781a214)

@[ 9] 0x60ab3f4f nnotes.CLSIDocument::RunScript+639 (781a714,404,1,60b95b05)

@[10] 0x605e6f0a nnotes.CRawActionLotusScript::Run+554 (2b7d,781ad94,402,7e3f488)

@[11] 0x605e348a nnotes.CRawAction::Run+58 (0,781a114,402,7e3f4b4)

@[12] 0x605e405d nnotes.CRawAction::Execute+221 (705e3d4,2ada,7e3fc90,605e1440)

@[13] 0x605dc406 nnotes.CAssistant::RunAlone+22 (7825014,781a114,7825014,0)

@[14] 0x605e1440 nnotes.CAssistant::Run+3600 (7825014,7e3fee4,705e4ac,7825014)

@[15] 0x61ae4602 nnotesws.RunAssistantEx@28+482 (0,705e4ac,0,1,0,0,0)

@[16] 0x6208d15d nnotesws.CThreadAssistTwi::WorkItem+317 (3,705e414,0,405,0,0,0)

@[17] 0x6181e338 nnotesws.CTwi::TwiThread+392 (0,7e3ffb4,60104485,705e414,0,0,0)

@[18] 0x6181c37e nnotesws.TwiThreadProc+14 (705e414,0,13d5a4,0,0,0,0)

@[19] 0x60104485 nnotes.ThreadWrapper@4+213 (0)

[20] 0x7c80b729 kernel32.GetModuleFileNameA+442 (601043b0)

############################################################

PASS 2 : FATAL THREAD with STACK FRAMES 13/15 [ nlnotes: 1498: 13c0]

FP=07e3ef20, PC=60aed9a4, SP=07e3ef08

stkbase=07e40000, total stksize=262144, used stksize=4344

Exception code: c0000005 (ACCESS_VIOLATION)

############################################################

Disassembly of c. 10 instructions before and after faulting address 60aed9a4:



    60aed98e 3bc2             cmp     eax,edx

    60aed990 750a             jnz     60aed99c

    60aed992 66b8c800         mov     ax,0xc8

    60aed996 8be5             mov     esp,ebp

    60aed998 5d               pop     ebp

    60aed999 c20c00           ret     0xc

    60aed99c 8b5508           mov     edx,[ebp+0x8]             ss:09519ec2=????????

    60aed99f 53               push    ebx

    60aed9a0 56               push    esi

    60aed9a1 8b7004           mov     esi,[eax+0x4]             ds:09a56b4e=????????

FAULT ->60aed9a4 668b5e08 mov bx,[esi+0x8] ds:df4b8d80=???

    60aed9a8 668b460a         mov     ax,[esi+0xa]                  ds:df4b8d80=????

    60aed9ac 8b4e0c           mov     ecx,[esi+0xc]             ds:df4b8d7f=????????

    60aed9af 57               push    edi

    60aed9b0 0fb77e04         movzx   edi,word ptr [esi+0x4]        ds:df4b8d80=????

    60aed9b4 51               push    ecx

    60aed9b5 50               push    eax

    60aed9b6 81e3ffdf0000     and     ebx,0xdfff

    60aed9bc 53               push    ebx

    60aed9bd 57               push    edi

    60aed9be 8d4dfc           lea     ecx,[ebp+0xfc]            ss:09519ec2=????????

    60aed9c1 51               push    ecx