a) On exit, it cannot unload its DLL, so prints an error message
b) To add insult to injury, this message is printed on STDOUT, thus
completely breaks all scripts which use -sOutputFile=-
Anybody knowing why this might happen, and how to fix (a)?
For example,
> gsos2 -c quit -sDEVICE=ps2write -q -dSAFER -dNOPAUSE -dBATCH -sOutputFile=-
GPL Ghostscript 8.70 (2009-07-31)
Copyright (C) 2009 Artifex Software, Inc. All rights reserved.
This software comes with NO WARRANTY: see the file PUBLIC for details.
DosFreeModule returns 12
Unloaded GSDLL
It is the last 2 rows which are written to STDOUT. `help sys0012'
does not show anything interesting: "SYS0012: The access code is
invalid". Documentation of DosFreeModule() DOES list
ERROR_INVALID_ACCESS as a possible return value, but says nothing
about what it might mean.
I see that http://svn.netlabs.org/libc/ticket/57 explains a possible
reason, but this does not explain why people do not report this
problem again and again. Am I the only one who sees this error? (I
reported it to Paul, and got no feedback from him...)
Thanks,
Ilya
P.S. It would be fine if gs_addmess() (see psi/dpmain.c) would result
in messages to STDERR, not STDOUT...
On Mon, 16 Nov 2009 11:28:35 UTC, Ilya Zakharevich
<nospam...@ilyaz.org> wrote:
> I see that http://svn.netlabs.org/libc/ticket/57 explains a possible
> reason, but this does not explain why people do not report this
> problem again and again. Am I the only one who sees this error? (I
> reported it to Paul, and got no feedback from him...)
Sorry - I'm so busy right now it's not funny - it's amazing how moving
house can soak up so much time!!! That and the fact that we're going
through a restructuring at work, so I'm currently in an acting role
that is more senior and taking up more of my time.....
When I get some free time I'll go back through my email - to be honest
I don't recall seeing anything :(
--
Cheers,
Paul.