Message 1 of 1
plotting wipeouts to pdf problem

Not applicable
11-16-2007
09:48 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi everyone,
I am having this small really annoying problem. I am trying to plot a drawing to a pdf. The exact process is that I generate an .eps file first and then that file is distilled to a pdf. Now, it all works fine if there are no wipeouts in the drawing, however if I insert a wipeout and try to plot the BeginGenerateGraphics() method in the PlotEngine, errors out and will not finish generating the eps file. The error message that I get is:
"Attempted to read or write protected memory. This is often an indication that other memory is corrupt."
At the same time the preview command works fine, keeping the configurations the same.
I am using a postscript pc3 file.
Does anyone have any suggestion?
Thanks, I would appreciate any help.
Code excert:
PlotConfigManager.RefreshList(RefreshCode.All);
PlotConfiguration ps = null;
PlotInfo pl = LoadPlotSettings(ref fn, ref ps);
eng = PlotFactory.CreatePublishEngine();
eng.BeginPlot(null, null);
DocumentLock dl = Application.DocumentManager.MdiActiveDocument.LockDocument();
eng.BeginDocument(pl, ps.FullFile, null, 1, toFile, fn); //
eng.BeginPage(new PlotPageInfo(), pl, true, null);
eng.BeginGenerateGraphics(null);
eng.EndGenerateGraphics(null);
eng.EndPage(null);
eng.EndDocument(null);
dl.Dispose();
eng.EndPlot(null);
Info:
PlotInfo is a userdefined class that retrieves the configuration for the current plot from a file and sets up the PlotConfiguration;
I am having this small really annoying problem. I am trying to plot a drawing to a pdf. The exact process is that I generate an .eps file first and then that file is distilled to a pdf. Now, it all works fine if there are no wipeouts in the drawing, however if I insert a wipeout and try to plot the BeginGenerateGraphics() method in the PlotEngine, errors out and will not finish generating the eps file. The error message that I get is:
"Attempted to read or write protected memory. This is often an indication that other memory is corrupt."
At the same time the preview command works fine, keeping the configurations the same.
I am using a postscript pc3 file.
Does anyone have any suggestion?
Thanks, I would appreciate any help.
Code excert:
PlotConfigManager.RefreshList(RefreshCode.All);
PlotConfiguration ps = null;
PlotInfo pl = LoadPlotSettings(ref fn, ref ps);
eng = PlotFactory.CreatePublishEngine();
eng.BeginPlot(null, null);
DocumentLock dl = Application.DocumentManager.MdiActiveDocument.LockDocument();
eng.BeginDocument(pl, ps.FullFile, null, 1, toFile, fn); //
eng.BeginPage(new PlotPageInfo(), pl, true, null);
eng.BeginGenerateGraphics(null);
eng.EndGenerateGraphics(null);
eng.EndPage(null);
eng.EndDocument(null);
dl.Dispose();
eng.EndPlot(null);
Info:
PlotInfo is a userdefined class that retrieves the configuration for the current plot from a file and sets up the PlotConfiguration;