diff -r d6dafc5d983f -r 1627c337e51e javacommons/comms/src/commsendpointnative.cpp --- a/javacommons/comms/src/commsendpointnative.cpp Fri Oct 15 12:29:39 2010 +0300 +++ b/javacommons/comms/src/commsendpointnative.cpp Fri Oct 29 11:49:32 2010 +0300 @@ -162,13 +162,13 @@ } JNIEXPORT void JNICALL Java_com_nokia_mj_impl_comms_CommsEndpointBase__1detach( - JNIEnv*, + JNIEnv* aEnv, jobject, jint aHandle) { JELOG2(EJavaComms); CommsEndpoint* endpoint = reinterpret_cast(aHandle); - endpoint->detachFromVm(); + endpoint->detachFromVm(aEnv); } // CommsEndpoint methods