XForms: flimage_is_supported() seg-fault!

thorsten@flaz3.nt.fh-koeln.de
Tue, 7 Dec 1999 19:17:31 +0100 (CET)

# To subscribers of the xforms list from thorsten@flaz3.nt.fh-koeln.de :

hy there!

this one's driven me nuts ;-)

so, could it be, there is a problem with flimage_is_supported() ?
try the demo attached :-)( i put it on ftp://flaz3.nt.fh-koeln.de/pub/form1.tar.gz ) 14k
here is how to use it:

there are 4 buttons.

1. image_supp
a. press it! just <return> for the nonexisting file
-> you see the output: flimage return value for file-name. o.k.
b. again, but choose an existing file
-> seg-fault :-( in flimage_is_supported()
--- 1. error i like to mention ---
2. enable_jpeg
a. just does an flimage_enable_jpeg(), press it!
b. press image_supp, load schiff.pgm
-> why is flimage_is_supported() return value 0 ???? (at this time)
c. do 2.b. for schiff.jpg
file gets load and displayed
-> o.k.
d. now do 2.b. again for schiff.pgm
-> o.k (this time)
--- 2. error ---
3. load_pgm
a. a kind of 2. :-) (without flimage_enable_xxx() )
loads schiff.pgm, press it!
b. press image_supp, choose schiff.pgm again
-> flimage_is_supported: o.k.
--- same as 2. error ---
4. X just exit()

summary:

flimage_is_supported(), works fine after
1. loading any image; does a kind of initialisation??
2. ... ? must be something else, cause ibrowser-demo works too, without seg-fault...

to avoid seg-faults, just use any flimage_enable_xxx()

please shedd some light on it (tc?)!

that's all folks :-)

thorsten

_________________________________________________
To unsubscribe, send the message "unsubscribe" to
xforms-request@bob.usuhs.mil or see
http://bob.usuhs.mil/mailserv/xforms.html
XForms Home Page: http://bragg.phys.uwm.edu/xforms
List Archive: http://bob.usuhs.mil/mailserv/list-archives/