Re: Can't be solved: Error code 473 - Unable to allocate memory

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

CChris wrote:
> 
> Pete Lomax wrote:
> > 
> However, I don't want to crash because something is wrong with printer,
> because
> user may simply not have or need one at as application is launched. 

Hence why I suggested "if not pinit then initPrinter() end if" lines.

> And if you are bent on printing something still, Windows will see to it that
> your app crashes, won't it?
If that was meant to be a joke, I'm not laughing, otherwise frankly I'm
gobsmacked at your attitude to error handling.

> >     pname = s                                         -- [not OK]
> Oops... Indeed I didn't try uninstalling my printer for testing that, and I
> don't like the idea either. But something has to be done about it.

No need to. Just add vPrinterName="CRUD" and/or pname=0 and ensure it gives
reasonable errors, and/or as you say pop-up suitable dialogues, at the point of
printing, without breaking/interrupting apps that do not use the printer.

Then add a "newPrinter(<what it is for you>,x)" call and test that it works
again. In fact it is no help whatsoever to meddle with your setup.

Regards,
Pete

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

Search



Quick Links

User menu

Not signed in.

Misc Menu