[Xastir] Print and/or screen dump
Tom Russo
russo at bogodyn.org
Tue Dec 28 11:39:05 EST 2004
On Tue, Dec 28, 2004 at 08:36:39AM -0800, we recorded a bogon-computron collision of the <archer at eskimo.com> flavor, containing:
[SNIP]
> > #define XpmColorFailed -4
> >
> > Given the return value in the fprintf, you'd be able to see why it says it's
> > failing. That might not tell you how to make it succeed, but if it's
> > OpenFailed or FileInvalid it might point the way. If it's ColorError, NoMemory
> > or ColorFailed I don't know how to fix it.
>
> If you think the Xpm define's might be somewhat uniform across
> platforms, we could put in code that spits out the text to go along
> with the integers. If not, perhaps we could just dump out the int
> itself like you have above. No matter what it's good to tell the
> user more.
Actually, there's apparently an XpmErrorMessage routine that interprets the
return codes and returns a string with an error message in it. I think
that's probably the way to go.
If I have a chance today I'll do that. Of course I can't really test it ---
that routine never has failed for me.
--
Tom Russo KM5VY SAR502 DM64ux http://www.swcp.com/~russo/
Tijeras, NM QRPL#1592 K2#398 SOC#236 AHTB#1 http://www.qsl.net/~km5vy/
"When life gives you lemons, find someone with a paper cut."
More information about the Xastir
mailing list