Sometime ago (2-3years) someone (matthew??) posted some code that fixed problems, if the default printer was a network printer and either that printer was not available, or the machine was not on the network, then a AV/Exception is raised on application start (and crash).
I think the offending code is in TPrinter.SetPrinter towards the end of the method somewhere. Myles. -----Original Message----- From: Mark Howard [mailto:[EMAIL PROTECTED]] Sent: Friday, 20 September 2002 12:04 p.m. To: Multiple recipients of list delphi Subject: RE: [DUG]: Application error - EPrinter Error Dave Thanks. The app doesn't even start - it's not just on printing. They say they haven't changed the printer or anything else in the set- up. I've suggested, in the meantime, that they try downloading the lastest driver for their printer. They've loaded the app on another workstation, pointing to the original DB and it is working as a stop gap measure. Mark On 20 Sep 2002 at 11:02, [EMAIL PROTECTED] wrote: > I have a problem where an app gets an access violation and crashes, if > the user prints to a particular printer (but other printers are o.k.). > I suspect the printer driver or something in the way the printer is > set up. Haven't solved this yet. > > Has your client recently introduced a new printer, which your app > prints to? Or have they changed any settings on an existing printer? A > bit out there I know, but just in case it helps. > > Dave > > -----Original Message----- > From: Mark Howard [mailto:[EMAIL PROTECTED]] > Sent: Friday, 20 September 2002 10:54 > To: Multiple recipients of list delphi > Subject: [DUG]: Application error - EPrinter Error > > > Hi > > A site running Win98 is suddenly getting and Windows Application error > message when they try to start my app. (D5, DBISAM) and it crashes the > computer. They sometimes get an extra message referring to an > EPrinter exception. > > The application hasn't changed at all and the problems started when an > accounting package, Exonet, crashed earlier in the week. > > Exonet and all other apps still run OK. Any ideas? > > Mark > ---------------------------------------------------------------------- > ----- > New Zealand Delphi Users group - Delphi List - > [EMAIL PROTECTED] > Website: http://www.delphi.org.nz > To UnSub, send email to: [EMAIL PROTECTED] > with body of "unsubscribe delphi" > Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/ > ---------------------------------------------------------------------- > ----- > New Zealand Delphi Users group - Delphi List - > [EMAIL PROTECTED] > Website: http://www.delphi.org.nz > To UnSub, send email to: [EMAIL PROTECTED] > with body of "unsubscribe delphi" > Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/ > --------------------------------------------------------------------------- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz To UnSub, send email to: [EMAIL PROTECTED] with body of "unsubscribe delphi" Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/ --------------------------------------------------------------------------- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz To UnSub, send email to: [EMAIL PROTECTED] with body of "unsubscribe delphi" Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/