good evening..
my program terminates each time fl_get_fontstruct() fails.
XFontStruct *font_struct=XLoadQueryFont( mydisplay,
"-adobe-times-medium-o-normal--20-*");
if(!font_struct)
fprintf(stderr,"try another font"); /* reached. okay */
font_struct= fl_get_fontstruct(FL_TIMES_STYLE,FL_HUGE_SIZE);
/* never reached! Error report:
X Error of failed request: BadAlloc (insufficient resources for
operation)
Major opcode of failed request: 45 (X_OpenFont)
Serial number of failed request: 2297
Current serial number in output stream: 2298
*/
if(font_struct==0)
fprintf(stderr,"try another font"); /*never reached*/
shouldn't one get the chance to inspect the return value and decide
the fate of the program?
Tano Fotang, xforms 0.88.1 (SuSE linux)
==
signature,what signature??
_________________________________________________________
DO YOU YAHOO!?
Get your free @yahoo.com address at /cgi-bin/exit-to?http://mail.yahoo.com
_________________________________________________
To unsubscribe, send the message "unsubscribe" to
xforms-request@bob.usuf2.usuhs.mil or see
http://bob.usuf2.usuhs.mil/mailserv/xforms.html
XForms Home Page: http://bragg.phys.uwm.edu/xforms
List Archive: http://bob.usuf2.usuhs.mil/mailserv/list-archives/