Skip to main content

Search

Search

Application Hangs When Printing

Comments

3 comments

  • Avatar
    Michael Toupin (mtoupin

    If it only happens when printing to remote printers it's possible that it's permissions related.  Are you specifying that the application work under a specific user account?

    0
  • Avatar
    Legacy Poster

    No, just the standard user account.

    I forgot to mention that the labels will actually print before it hangs, and that probably confuses me the most. If the labels print, it can obviously communicate with the server and the printer; it just doesn't return after printing.

    0
  • Avatar
    Legacy Poster

    Further analysis shows it may be related to threading; for some reason, invoking the print command in a thread causes a hang. When I remove threading from the program, it functions as it should.

     

    I was incorrect, this is not threading related. It turns out, if the timeout is set to 1000, it works as expected; if the timeout is set to 60000, it hangs forever. I've hard-coded the timeout, and it now works as expected.

    0

Please sign in to leave a comment.