From: Sven G. <sgo...@ja...> - 2002-04-25 04:26:59
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Friday 12 April 2002 15:13, Luca Lutterotti wrote: Thanxs Luca ! i did repaired it, and throw that damn exit call away .. (CVS first) > Sorry if this was already reported, > > I have a program that uses gl4Java (now from about 3 or more years) > happily. so, any contributions ? demo/apps/review ? cheers, sven > I just discover one problem, the doLoadNativeLibraries method that is > called by loadNativeLibraries is supposed to return true if the > libraries are present (and to load them) or false if not. > But (and this was added recently probably, some months ago) it will > never return false, because in that case it simply perform a > System.exit(1) call (arghhhhh!). So in my case that I check for the > libraries when these are not available the method forces my program to > exit without errors......... (even if I can manage the absence using a > pure java alternative). > > From GLContext.doLoadNativeLibraries: > ................. > if(!libsLoaded) > System.exit(1); > > return libsLoaded; > } > .................. > > Just to ask what the purpose of returning libsLoaded if it can only be > true (System.exit otherwise) ;-))) > I hope it was just a couple of lines left there for error. > Could it be removed for the future? It would be better to let the > program dealing with the decision of exiting or continuing. Don't you > think? > > Best regards, > Luca Lutterotti > > > _______________________________________________ > gl4java-usergroup mailing list > gl4...@li... > https://lists.sourceforge.net/lists/listinfo/gl4java-usergroup - -- health & wealth mailto:sgo...@ja... www : http://www.jausoft.com ; pgp: http://www.jausoft.com/gpg/ voice : +49-521-2399440 ; fax : +49-521-2399442 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE8x4WGHdOA30NoFAARAhFjAJ0b4L3tSi8h4Mw+b4VGtm+l7mn+/gCgjpHJ dWKD/CuEpL4H/l/7MDVl9Zo= =SdfS -----END PGP SIGNATURE----- |