News:

Status: CAVOK

Main Menu

Cannot print with V3.0.4.59

Started by dempsey, June 11, 2013, 01:50:04 AM

Previous topic - Next topic

dempsey

I am new to Plan-G.

After creating a flight plan I can save it and export it in X-Plane .fms format. However, I get an error message when I try to print it.

These are the error lines from the Plan-G-_og.txt:
Quote
18:30:24.0 Quick Print error: System.ObjectDisposedException: The ObjectContext instance has been disposed and can no longer be used for operations that require a connection.
   at System.Data.Objects.ObjectContext.EnsureConnection()
   at System.Data.Objects.ObjectQuery`1.GetResults(Nullable`1 forMergeOption)
   at System.Data.Objects.ObjectQuery`1.Execute(MergeOption mergeOption)
   at System.Data.Objects.DataClasses.EntityCollection`1.Load(List`1 collection, MergeOption mergeOption)
   at System.Data.Objects.DataClasses.EntityCollection`1.Load(MergeOption mergeOption)
   at System.Data.Objects.DataClasses.RelatedEnd.Load()
   at System.Data.Objects.DataClasses.RelatedEnd.DeferredLoad()
   at Plan_G3.Model.Print.BuildPLOGDocument(FlightPlan fp, Dictionary`2 mPlanWX) in C:\Users\Tim\Documents\Visual Studio 2010\Projects\Plan-G3\Plan-G3\Model\Print.cs:line 517
   at Plan_G3.Model.Print.QuickPrintPlan() in C:\Users\Tim\Documents\Visual Studio 2010\Projects\Plan-G3\Plan-G3\Model\Print.cs:line 179

I am very suspicious about the last two lines as my user profile is certainly not C:\Users\Tim...

Dempsey

X-Plane 11.25, Plan-G 3.2.1.151

tim arnot

I'll look into that, see if I can figure out what's causing it. Could you attach the plan you were trying to print, in case it has a bearing?

The path in the error message is nothing to worry about - for some reason it adds the fully qualified path to the source code on my development PC into the error message. I've never figured a way to stop that, but it isn't anything to worry about.

Tim. @TimArnot

dempsey

Tim,

Sorry, this was a false alarm. I stopped and started the program several times yesterday and the print problem persisted. My PC was shutdown overnight and now the flight plans print beautifully.

BTW, great program. Thanks.
Dempsey

X-Plane 11.25, Plan-G 3.2.1.151