I found the line that was causing the fatal error that I was getting, but I am now having another issue.
I have code that looks as follows:
For Each psent As DBDictionaryEntry In psd id = psd.GetAt(psent.Key) Dim ps As PlotSettings = id.GetObject(OpenMode.ForRead) Dim curps As PlotSettings = New PlotSettings(False) curps.CopyFrom(ps) curps.AddToPlotSettingsDictionary(db) curps.DowngradeOpen() trns.Commit() curps.Dispose() Exit For Next
This will only copy one pagesetup, how ever I have multiple pagesetups that I need to have copied. I can accomplish that by removing the curps.dispose().
however if I remove that then I start getting the fatal error back.
is there a way that I can close the curps plotsettings without using dispose or close?
Solved! Go to Solution.
Solved! by bkenyon13. See the answer in context.
finally figured it out.
this eliminated the fatal error and also copied all the page setups
Access a broad range of knowledge to help get the most out of your products and services.
Start with some of our most frequented solutions or visit the Installation and Licensing Forum to get help installing your software.
Upgrading to a 2015 product? Make sure to check these out 1st!