Message 1 of 8
AccessViolationException for PublishExecute

Not applicable
06-01-2012
08:18 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I have created a batch publishing plugin that is causing the following error:
AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
The execption occurs at PublishExecute in the following abbreviated code snippet:
DsdData dsdd = newDsdData();
dsdd.ReadDsd(dsdFile);
Publisher publisher = Application.Publisher;
PlotConfig pc = PlotConfigManager.SetCurrentConfig("DWG To PDF.pc3");
publisher.PublishExecute(dsdd, pc);
This error does NOT occur in my development environment - AutoCAD 2010, Window XP, 32-bit. It does occur on a customers machine - AutoCAD 2011, Win7, 64-bit.
Any ideas on what I need to change to solve this problem? Any help would be greatly appreciated.