Important: These forums are for discussions between SkyDemon users. They are not routinely monitored by SkyDemon staff so any urgent issues should be sent directly to our Customer Support.

Unhandled Exception - No Printers are installed


Author
Message
deanflyer
d
Forum Member (32 reputation)Forum Member (32 reputation)Forum Member (32 reputation)Forum Member (32 reputation)Forum Member (32 reputation)Forum Member (32 reputation)Forum Member (32 reputation)Forum Member (32 reputation)Forum Member (32 reputation)
Group: Forum Members
Posts: 1, Visits: 0
T‌ried viewing airfield information and kept getting an unhandled exception. I've worked out it doesn't like my default Dell 3330 laser printer, as it works fine when I select Microsoft PDF as the default printer. Skydemon is 3.9.5.0. OS is Windows 10 64-bit.

D‌etails as below:-

See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.Drawing.Printing.InvalidPrinterException: No printers are installed.
 at System.Drawing.Printing.PrinterSettings.GetHdevmodeInternal(String printer)
 at System.Drawing.Printing.PrinterSettings.GetHdevmode(PageSettings pageSettings)
 at System.Drawing.Printing.PrintController.OnStartPrint(PrintDocument document, PrintEventArgs e)
 at System.Windows.Forms.PrintControllerWithStatusDialog.OnStartPrint(PrintDocument document, PrintEventArgs e)
 at System.Drawing.Printing.PrintController.Print(PrintDocument document)
 at System.Drawing.Printing.Printdocument.Print()
 at System.Windows.Forms.PrintPreviewControl.ComputePreview()
 at System.Windows.Forms.PrintPreviewControl.CalculatePageInfo()
 at System.Windows.Forms.Control.InvokeMarshaledCallbackHelper(Object obj)
 at System.Threading.ExecutionContext.runTryCode(Object userData)
 at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)
 at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
 at System.Windows.Forms.Control.InvokeMarshaledCallback(ThreadMethodEntry tme)
 at System.Windows.Forms.Control.InvokeMarshaledCallbacks()


************** Loaded Assemblies **************
mscorlib
  Assembly Version: 2.0.0.0
  Win32 Version: 2.0.50727.8922 (WinRelRS4.050727-8900)
  CodeBase: file:///C:/Windows/Microsoft.NET/Framework64/v2.0.50727/mscorlib.dll
----------------------------------------
SkyDemon
  Assembly Version: 3.9.5.21034
  Win32 Version:
  CodeBase: file:///C:/Program%20Files%20(x86)/SkyDemon/SkyDemon.exe
----------------------------------------
System.Windows.Forms
  Assembly Version: 2.0.0.0
  Win32 Version: 2.0.50727.8922 (WinRelRS4.050727-8900)
  CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
  Assembly Version: 2.0.0.0
  Win32 Version: 2.0.50727.8922 (WinRelRS4.050727-8900)
  CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
  Assembly Version: 2.0.0.0
  Win32 Version: 2.0.50727.8922 (WinRelRS4.050727-8900)
  CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
Divelements.Aviation
  Assembly Version: 3.9.5.21033
  Win32 Version: 3.9.5.0
  CodeBase: file:///C:/Program%20Files%20(x86)/SkyDemon/Divelements.Aviation.DLL
----------------------------------------
Divelements.SandGrid
  Assembly Version: 2.2.4.1
  Win32 Version: 2.2.4.1
  CodeBase: file:///C:/Program%20Files%20(x86)/SkyDemon/Divelements.SandGrid.DLL
----------------------------------------
SandDock
  Assembly Version: 3.0.6.1
  Win32 Version: 3.0.6.1
  CodeBase: file:///C:/Program%20Files%20(x86)/SkyDemon/SandDock.DLL
----------------------------------------
TallComponents.PDF.Rasterizer
  Assembly Version: 3.0.105.0
  Win32 Version: 3.0.105.0
  CodeBase: file:///C:/Program%20Files%20(x86)/SkyDemon/TallComponents.PDF.Rasterizer.DLL
----------------------------------------
System.Configuration
  Assembly Version: 2.0.0.0
  Win32 Version: 2.0.50727.8922 (WinRelRS4.050727-8900)
  CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Xml
  Assembly Version: 2.0.0.0
  Win32 Version: 2.0.50727.8922 (WinRelRS4.050727-8900)
  CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
Divelements.Mapping
  Assembly Version: 3.9.5.21033
  Win32 Version: 3.9.5.0
  CodeBase: file:///C:/Program%20Files%20(x86)/SkyDemon/Divelements.Mapping.DLL
----------------------------------------
SandBar
  Assembly Version: 1.4.3.2
  Win32 Version: 1.4.3.2
  CodeBase: file:///C:/Program%20Files%20(x86)/SkyDemon/SandBar.DLL
----------------------------------------

************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:

<configuration>
  <system.windows.forms jitDebugging="true" />
</configuration>

When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.


‌‌ ‌
Tim Dawson
Tim Dawson
SkyDemon Team (625K reputation)SkyDemon Team (625K reputation)SkyDemon Team (625K reputation)SkyDemon Team (625K reputation)SkyDemon Team (625K reputation)SkyDemon Team (625K reputation)SkyDemon Team (625K reputation)SkyDemon Team (625K reputation)SkyDemon Team (625K reputation)
Group: Forum Members
Posts: 7.8K, Visits: 8.4K
That's a nasty one. SkyDemon isn't actually part of that error chain, so there's not a lot we can do about it. At least it tells you why it's having trouble. It's the Microsoft printing engine trying to prepare for SkyDemon to print something (or show a preview of printed stuff) but it doesn't give us a chance to handle the error, sadly.
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Reading This Topic

Login

Explore
Messages
Mentions
Search