Board index » delphi » GPF on Print in Win '95
rsus...@iafrica.com (Rod Suskin)
Delphi Developer |
Thu, 13 Aug 1998 03:00:00 GMT
GPF on Print in Win '95
I have a strange printer error that only seems to occur in WIndows
'95: A particular routine in my program creates a diagram on paper by calling, in sequence, 5 different routines in another module which has all the printer code. The fourth routine, responsible for putting a few lines onto the page, causes a GPF in the GDI.EXE, which crashes the program (and Windows 95 if its being run in the Delphi compiler). Even if I replace that routine with one that prints a line of text, the crash happens. If I leave out that routine, the code happily goes on to print the code from the next routine called. Under Win3.1, the 'offending' routine behaves normally and prints properly. There are no API calls, complex graphics, or printing off-page (not that that would be a problem anyway.) I would happily show you the code, but as I said, it doesn't matter what the code is, it simply seems that the error occurs at that _point_ in the program no matter what the code. I have moved the offending routine to other modules to change its memory location, but no help. Any ideas for this really WEIRD state of affairs?? Rod. |