Albrecht Schlosser wrote:
Am 09.04.2010 00:03, Domingo Alvarez Duarte wrote:
manolo gouy wrote:
Domingo:

Do you get the zombie problem only when you cancel a print dialog
or do you also get it when you go all the way to the end of the printing
job ?

It's not necessary to print anything, only cancel print dialog, and I've
tested again with latest svn and the device.exe remains zombie.

Domingo, you obviously misunderstood the question. We (seem to) know
that you get zombies if you cancel the print job, but the question
was: Do you *also* get zombies if you really start the print job and
*really* print something?

Albrecht

Attached is an minimun code to get zombie on my windows vista, it has only one window with one Fl_Button, one Fl_Clock and code that opens a print dialog.
# data file for the Fltk User Interface Designer (fluid)
version 1.0300 
header_name {.h} 
code_name {.cxx}
decl {\#include <windows.h>} {private local
} 

Function {} {open
} {
  Fl_Window {} {open
    xywh {31 51 174 210} type Double visible
  } {
    Fl_Button {} {
      label {Print Dialog}
      callback {DWORD       commdlgerr;
  DOCINFO     di;
  PRINTDLG      pd; 
  memset (&pd, 0, sizeof (PRINTDLG));
  pd.lStructSize = sizeof (PRINTDLG);
  pd.hwndOwner = GetForegroundWindow();
  pd.Flags = PD_RETURNDC | PD_USEDEVMODECOPIESANDCOLLATE | PD_NOSELECTION;
  pd.nMinPage = 1;
  pd.nMaxPage = 5;
  PrintDlg (&pd);} selected
      xywh {25 25 115 25} labelsize 18
    }
    Fl_Clock {} {
      xywh {25 75 115 115} labelsize 18
    }
  }
} 
_______________________________________________
fltk-dev mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-dev

Reply via email to