Re: Can't be solved: Error code 473 - Unable to allocate memory
- Posted by CChris <christian.cuvier at a?ricult?re.gouv.fr> Dec 10, 2007
- 539 views
Nemo wrote: > > CChris wrote: > > > > Nemo: please locate, in w32resources.ew, the line > > vPrinterName = getDefaultPrinterName() > > (should be at line 742), > > add }}} <eucode>puts(1,vPrinterName)</eucode> {{{ right after it, and tell > > us what got displayed?</font> > > Also, at line 684 or close, locate > > rc = w32Func(xGetDefaultPrinter,{pBuffer,pNeeded}) > > and add a ?rc after that. The value displayed could be interesting. > > Edited C:\win32lib0702c\Include\w32resources.ew, to > ... > rc = w32Func(xGetDefaultPrinter,{pBuffer,pNeeded}) > ?rc > ... > vPrinterName = getDefaultPrinterName() > puts(1,vPrinterName) > ... > > Then run C:\IDE102\IDE.exw. Nothing happens. Same "Unable to allocate memory" > alert. > > BTW I had the "Print Spooler" service stopped. Does it matter to the printer > stuff you were talking about? Indeed, the lib is unable to get the size of the printer settings structure, aka devmode. This explains the size = -1 in ex.err and the crash you get. And I strongly suspect the print service being stopped to explain this failure - driver doesn't respond. I'll have to stop everything related with printing on such failures so as to proceed smoothly even though no printer will be available (for configuration at least). Hopefully I can get this done in time for 70.3. CChris