Re: EzCreateFont failure

new topic     » goto parent     » topic index » view thread      » older message » newer message

Derek Parnell wrote:
> > I posted this back in April 2004 but never got a response...maybe now?
> 
> Sorry.

No apologies necessary!

> 
> > I wonder if anyone else has run across this.  I have several programs where
> > the user
> > can print information.  The first print always works fine but the second and
> > subsequent
> > print fails with:
> > 
> > ezCreateFont: SaveDC failed.
> > 
> > I searched the message archives and saw some mention about ezCreateFont
> > refering
> to
> > 
> > resource leaks but that was back in 2002.  
> > 
> > Any help or suggestions would be appreciated.
> 
> Don't suppose I can see a (small) source code example of this effect?
> 
> -- 

I narrowed down the error to the getTextExtent routine and then tried to
work up a small program that demonstrates the error but couldn't come up
with a small program to reproduce the error.

This might be a lot to ask, but if you're willing you could download the
timesheet program I submitted from the archives.  The routine printSheet 
is where the error is happening but only when trying to print twice. At
this point I can't reproduce the error in a small program.  And maybe
that's just it...my timesheet program does quite a bit of printing.

Jonas

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu