If you are using Notes 6 then upgrade to 6.5 with fixpack or better.
If you see this error when lotusscripting with code such as
call draftdoc.remove(true)
then try putting this code in first
Dim uiw As New notesuiworkspace
Dim uidoc As notesuidocument
Set uidoc=uiw.CurrentDocument
Delete uidoc
call draftdoc.remove(true)
If you alread have uidoc declared then just do delete uidoc.
You may want to try call uidoc.close() just before the delete uidoc if you still have trouble.
thanks to Gustavo Baez for this tip.