Fix important Native thread issue with multiple env

This commit is contained in:
Victor Shcherb 2011-11-29 20:26:04 +01:00
parent b53d66de7c
commit b70538d31a
2 changed files with 2 additions and 1 deletions

View file

@ -360,7 +360,8 @@ void loadJniBinaryRead() {
extern "C" JNIEXPORT void JNICALL Java_net_osmand_plus_render_NativeOsmandLibrary_deleteSearchResult(JNIEnv* ienv,
jobject obj, jint searchResult) {
setGlobalEnv(ienv);
// DO NOT DO IT it can leads to messing thread that is not allowed
// setGlobalEnv(ienv);
SearchResult* result = (SearchResult*) searchResult;
if(result != NULL){
delete result;

Binary file not shown.