Author Topic: eInvalidEnginState, error when plotting multipage pdf  (Read 1307 times)

0 Members and 1 Guest are viewing this topic.

T.Willey

  • Needs a day job
  • Posts: 5251
eInvalidEnginState, error when plotting multipage pdf
« on: May 27, 2014, 11:27:15 AM »
I am trying to update my batch plotting program to plot to a multipage pdf file.  It will error at random times.  I can select the same drawings and plot the exact same way, and it will work.  I do not understand what is going on.

Upon looking in the arx help docs, I see that this error is caused by the plot engine being in an invalid state.  I BeginDocument, loop through all the files and plot them, then EndDocument.  I think the plot document is being closed before I am calling the EndDocument.  I cannot find any way to check the status of the plot document.

I am trying to just use the plot engine and not using the publish aspect of the .Net framework.

Thanks in advance.
Tim

I don't want to ' end-up ', I want to ' become '. - Me

Please think about donating if this post helped you.

T.Willey

  • Needs a day job
  • Posts: 5251
Re: eInvalidEnginState, error when plotting multipage pdf
« Reply #1 on: May 27, 2014, 12:42:49 PM »
The true error seems to be a memory one, and is causing the other ones.  I will look to see if I can find out clearing or releasing memory obtained by my plotting code.
Tim

I don't want to ' end-up ', I want to ' become '. - Me

Please think about donating if this post helped you.