C DLL connected with Java GUI. It runs well with some debugging printfs to DOS windows are plugged in C code while Exception Access Violation crashes when the debugging printfs are commented off. There are some pointers referred to a large size dynamic memory got from calloc().
Is JNI have some inner limit for dynamic memory referring?
When Crashes, I found the pointer to array in dynamic memory was corrupted unexplainably. When printfs are added back in, the pointers work OK.
Obviously I don't want to release the code with those printfs in the code and debugging outputs hanging over the screen.
Thanks a lot!