deviceemu mode Execution fail when calls from .c files

My problem is only existing in EmuDebug and EmuRelease (-deviceemu).
I have in some functions like below defined in a .cu file which are called from a .c file. The execution fail when arrive : CUDA_SAFE_CALL(cudaMalloc….

void* Gpu_mallocDevice(unsigned int uiSize)
void* utVariable;
CUDA_SAFE_CALL(cudaMalloc((void**) &utVariable, uiSize));
return utVariable;