build fine, crash in emudebug mode not in release or debug

the build is fine. but when i try debug the kernel in emudebug mode. I got a crash even
simply run something like cutilSafeCall(cudaMalloc(devPtr, size)) or cudaSetDevice(cutGetMaxGflopsDeviceId() );
the kernel runs fine in debug or release mode.
any help with that?
BTW:i’m using vs2005 with cuda 2.1 beta. i’m writing a dll use cuda.

Did you find a solution ? I met the same problem…