dennisegen / MOST

MOST - Metabolic Optimization and Simulation Tool
3 stars 4 forks source link

GurobiSolver no license bug - object not an instance of declaring class #83

Closed jimkell closed 10 years ago

jimkell commented 10 years ago

In GurobiSolver class, if user has no Gurobi license, instead of displaying the error dialog, the line "int errorCode = (int) grbExceptionGetErrorCodeMethod.invoke(e, null);" (line 116) throws the following error "object not an instance of declaring class". Also in the same class in "public void finalize()", the line "envDisposeMethod.invoke(model, null);" has thrown the same error once of twice, although I have not yet figured out how to reproduce this error.

jimkell commented 10 years ago

Fixed