Dear community,

I've got written a report for writing model-infos into a word document with text and graphic. This report is startable with one or more models or with a group, where all the models inside the group and the subgroups are written into the word-document.

Sometimes I get the error message while running the report: "Report debugger error: startDebugSession: report ID==-1==> report exec not properly initialized!"

I have debugged the report and the error occurs at the command for output the model graphic to the output object: "oOutput.OutGraphic(oModelPic, -1, nMaxW, nMaxH);", so I know at which model the error occurs.

If I start the report at one group, the report stops at the round about 40th model. Every time the same model, when starting at the same group. But when I start the report only at this model or at one subgroup with less models but included this model, the report runs through without any errors.

Depending on the group the error occurs at the 40th or 80th model or the report runs through, also with more then 80 models.

My idea is, that there is a problem with the memory. But the task manager says there is free RAM left. I use 6-7GB of 8GB and it becomes not much more when the report is running. The created docx-document haves a size of 1-5 MB, as far as the report runs without this error.

I also tried to put this command into TRY-CATCH. But the command lines in CATCH are not executed. The error message occurs as well as without TRY-CATCH.

So I would be very happy if anyone can help me by telling me:

  • what can be the reason for this error?
  • how can I check the memory usage of the output object?
  • how can I prevent this error?

Many thanks to everyone who haves an idea.

Greetings

Holger

Tags: ARIS Report ARIS script