LabVIEW Access Violation Crash When Printing

Updated Oct 8, 2018

Reported In

Software

  • LabVIEW
  • LabVIEW Report Generation Toolkit

Issue Details

I have a LabVIEW application that crashes when it tries to print. For example, in my application I am using the Print.Panel to Printer invoke node to print the front panel of my block diagram. However when this node executes I receive Access Violation 0xC000005 and LabVIEW crashes. 
How can I troubleshoot this? 

Solution

There are several troubleshooting steps you can perform:
  1. Report your problem to National Instruments
    In LabVIEW 7.x and later, please submit a bug report to National Instruments using the Retrieve Print Settings Assistant tool attached below. The tool collect useful information about your printing problem and generate a log file. You should submit this log to National Instruments Technical Support along with a VI causing the printing problem. A National Instruments engineer will then attempt to reproduce your printing problem by applying the settings stored in the submitted log file on your VI.

    In LabVIEW 6.x or earlier, please submit a bug report to National Instruments Technical Support. The information that this report should include is:
     
    1. Version of LabVIEW that exhibited the problem:
    2. Did a previous version of LabVIEW not exhibit the problem? If so, which version?
    3. Operating system name, version, and service packs:
    4. Printer manufacturer and model:
    5. Printer driver version:
    6. Networked or local printer?
    7. Type(s) of printing that exhibit the problem (standard, PostScript, or bitmap):
    8. Color/grayscale or black-and-white?
    9. Using the scale to page feature?
    10. Using custom margins?
    11. Video screen resolution?
    12. Video color depth?
    13. Graphics card manufacturer and model:
    14. Graphics driver version:
    15. If possible, include a VI that reproduces the problem:
    16. Steps to reproduce the problem.
  2. Update printer driver
  3. Try with a different printer or a different computer
  4. Check your margins
    Verify that your page margins are set to values which your printer will accept. Incorrect page margins can lead to unpredictable results.
  5. Vary your video settings and check your video driver
    Although it is not immediately obvious, your video driver and settings play a role in printing. Some printing problems disappear when you vary your screen resolution (e.g. 640 by 480) or color depth (e.g. 24-bit True Color). It is usually a good idea to check with the manufacturer of your graphics card to see if there is an updated driver available.
  6. Try printing to HTML or RTF
    You may be able to work around your printing problem by having LabVIEW print to HTML or RTF, and then using a web browser or Microsoft Word to print your document. You can print to these formats using the Print wizard or using the VI Server Print VI to [destination] methods
  7. Try printing with a different function
    You may try to print through a different programmatic approach or using the report generation toolkit

WAS THIS ARTICLE HELPFUL?

Not Helpful