>
> We have this problem that is starting to drive me nuts.
We currently have an app that uses a PrinterSetupDialog
> component. There is a menu option that simply calls the dialogs
execute method. I consistently get an AV when calling
> Execute. I shouldn't say "I", because it not only happens on
my development machine, but on three separate workstations
> (No Delphi installed) and another Delphi development machine (Clean
install). Each machine is configured pretty much
> the same. All have printers assigned, with a default selected.
Each machine has the same version of ComDlg32.dll. I
> stepped thru the VCL only to find it dumping on this line:
>
> Result := TDialogFunc(DialogFunc)(DialogData);
>
> This happens 100% of the time. I don't know which way to turn.
I have removed the control from the form, simply
>
Once I had stumbled on that one too. It may be too stupid to
suggest this, but do you have a valid printer installed? Sometimes
I
got this error when I called PrinterSetupDialog with no printers
installed. I just check it using methods from printers unit and
perform a PrinterSetupDialog.Execute only if there is at least one
printer installed. Anyway that was how I handled it in the Delphi 1.0
days.....