PrintBugReport only/always returns False

delphi package - automated exception handling
Post Reply
FlagshipTech
Posts: 12
Joined: Sun Jan 18, 2009 1:47 am

PrintBugReport only/always returns False

Post by FlagshipTech »

I see on circumstance under which it could return True.

For the moment I've modified the PrintBugReport function in madExcept.Pas so that it returns True if the user attempted to print, False if they cancelled the print dialog. Like this:

Code: Select all

if PrintDlg(pd) then begin
  .
  .
  .
    if newFont <> 0 then
      DeleteObject(newFont);
    DeleteDC(pd.hDC);
    result := true;     //changed
  end else              //changed
    result := false;    //changed
end;
madshi
Site Admin
Posts: 10754
Joined: Sun Mar 21, 2004 5:25 pm

Re: PrintBugReport only/always returns False

Post by madshi »

Ok, thanks, I'll do this change in my sources, too.
Post Reply