Print "close" question

25 views
Skip to first unread message

Louis LaBrunda

unread,
May 10, 2020, 2:36:23 PM5/10/20
to VA Smalltalk
Hi All,

I'm using Totally Objects Visibility print package to print some stuff from VA.  For testing, I'm printing to a PDF printer driver, I don't think that should matter.

The first job seems to go to the PDF printer driver (and a PDF reader opens to show the file) but the second seems to hang in the ether.  I'm testing this mostly in the VA development environment, when I exit VA, the second job comes back to life but doesn't have any data in it.  I expect I need to send some kind of close message but I can't figure out what to send.

I have contacted Dave Pennington, the author of Visibility, about this and expect to hear for him soon but in the mean time I'm posting the question here.

Lou

Louis LaBrunda

unread,
May 11, 2020, 2:14:01 PM5/11/20
to VA Smalltalk
Hi Everybody,

I fixed the print problem.  A method (in TOB Visibility) was being called after the printer shell was closed/destroyed.  I don't know why.  Actually I don't know how it is ever called but it is.  I put code in to test for the shell being destroyed and exit the method.

The method ends pages and starts new pages if needed and ends the job when all pages are done.  When it is called after the job has ended and the shell destroyed, it thinks it is at the beginning and tries to end and then start new pages.  When a new "real" print job starts, things are messed up.

I can see where the call back is added for this method but don't see where the event is signaled.  So, I can't see why it is signaled after the job is closed and the shell destroyed.  Anyway, testing to see if the shell is destroyed and jumping around the code fixes the problem.

Lou
Reply all
Reply to author
Forward
0 new messages