¡@

Home 

java Programming Glossary: msgbuf

Best way to throw exceptions in JNI code?

http://stackoverflow.com/questions/230689/best-way-to-throw-exceptions-in-jni-code

char exClassName java lang NoSuchMethodError LPTSTR msgBuf jint retCode size_t nMallocSize exClass env FindClass env exClassName.. strlen className strlen methodName strlen signature 8 msgBuf malloc nMallocSize if msgBuf NULL return throwOutOfMemoryError.. methodName strlen signature 8 msgBuf malloc nMallocSize if msgBuf NULL return throwOutOfMemoryError env throwNoSuchMethodError..