From: Luca L. <Luc...@in...> - 2002-04-12 13:10:23
|
Sorry if this was already reported, I have a program that uses gl4Java (now from about 3 or more years) happily. 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 |