I recently figured out the problem causing sinfamxk.

The first call to OpenPrinterDialog(ps) captures the front most window as
the source of the call and is used as the display location for further calls
to show a printer dialog using ps.

Once the window is closed, ps is corrupted and will fail silently. It
doesn't matter which window actually calls the printer dialog, Window(0) is
stored and it becomes the source location where subsequent dialogs employing
ps are shown.

Workaround:
1. Hide but never close the front most window when OpenPrinterDialog(ps) is
called. 

Or 

2. Do not use a global printersetup object.

Keith DeLong

> Chris......
> 
> I reported this problem back in March.....  check out and please sign-
> on to "sinfamxk"......
> 
> I am also not sure if this is related to the other major Win32
> printing issue but it does certainly create some kind of "bad"
> printersetup.
> 
> Jim
> 
> On Jun 9, 2006, at 5:11 PM, realbasic-nug-
> [EMAIL PROTECTED] wrote:
> 
>> Message: 7
>> Subject: is this the same windows printer issue or a new one...
>> From: Chris Halford <[EMAIL PROTECTED]>
>> Date: Fri, 9 Jun 2006 13:01:19 -0600
>> 
>> I am trying to work through a Windows printing bug that seems
>> different from the one that is being discussed so much.
>> 
>> I have a global printersetup object and the second time I use it in a
>> g = openPrinterDialog( ... ) the dialog never shows up and the
>> graphics object is returned as nil.
>> 
>> Oddly no exceptions are thrown so I'm not sure what has happened. It
>> appears that the printerSetup has corrupted. Trying to recreate the
>> printerSetup from the setupString crashes, and forcing a new
>> printerSetup dialog each time is not really an acceptable workflow
>> for the end-user.
>> 
>> Any thoughts or recommendations?
>> 
>> C.
> _______________________________________________
> Unsubscribe or switch delivery mode:
> <http://www.realsoftware.com/support/listmanager/>
> 
> Search the archives of this list here:
> <http://support.realsoftware.com/listarchives/lists.html>
> 


_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to