Domino server crach by agent?

I created an scheduled LS-agent. In that agent, data is written in a SQL-database (by ODBC) en 2 XML-documents are created (by NotesStram). After this documents have been created, a batchfile is called with does some copy with the created XML-documents. The agent us every 15 minutes.After some days (4 or 5) the agent does not run anymore. In the Domino Administrator, ServerTasks, the AgntMgr says: running agent “ExportToExact” , Utilisation: 0%(which is the name of the agent) and this does not stop. I also am not able to stop this process. I have to restart the Domino service.

I don’t know what caused this. Was I editing this agent while it just started to run? Or is there a memory-problem?

The piece of code to run the batchfile is the agent:

shellcopy = Shell(“cmd /c \srvra3\import\new\copyxml.bat”)

srvra3 is another server as the domino-server.

I also can post my agent-code, but is it 469 lines of code.

Koos