Hi to all,I have realized a routine that read from my filesystem the .EML file export from another mail-system and render this EML file and create the documents in a mail Db.
I must elaborate over 100.000 file EML…
So that for create this documents I use in a Forall cicle the object “NotesMimeEntity” that create child etc…
I have the suspect that when I assign a variable :
set body=doc.createmimeentity
in a cycle Forall – this allocate memory that don’t release…
(leek problem?)
I have try to insert a code :
→ Delete body <—
But this generate an error, how if body isn’t a abject…why?
I have try to use :
body.remove
but after that I use “doc.save(true,true)”…seem that the body variable don’t exist…
Can someone help me to understand?
This is a sample of my code so that you can undestand :
Forall Filename In Filelist
conta=conta+1
Set doc=db.createdocument
session.ConvertMIME = False
Set body = doc.CreateMIMEEntity
Set parser=New MimeParser(body,filename)
Call doc.ReplaceItemValue("Form", "Memo")
If parser.receive() Then
Call doc.Save(True, True)
Delete Body 'DON'T WORK!
Delete doc
Else
Delete doc
Print "Mime 1.0 not valid!"
End If
Delete parser
session.ConvertMIME = True
End Forall
The parser is a Class that I write for render the EML file that I pass how argument…
Tnx