First Chance Exception After Program Exits MS Visual Studio 2005 Exception in Provided Example Code

Whenever my CUDA program exits it generates error messages of the form:
First-chance exception at 0x7c812a5b in simpleCUBLAS.exe: Microsoft C++ exception: cudaError_enum at memory location 0x0012fc10

About half of the provided examples also exhibit this behavior, even though they appear superficially to pass their internal tests.
Case in point is the simpleCUBLAS.exe example as indicated above.

I have a core duo 2 HP laptop containing an NVIDIA Quadro FX 1600M on windows xp 32 bits.
The driver version is 6.14.11.8070.

Of course the latter driver’s install script has been modified so that it will actually install on my laptop, which is pretty common for laptops I hear.

Any suggestions about this? Should I just ignore this for now, since I think it’s more or less working?

There are only a couple of other threads on this error in the forums and they didn’t help me much.

sounds like a MAC-s user :D

did you try some different drivers? maybe this is a common bug?

Nope, I’m on windows XP. I should probably try another driver if I can find one that will install on my laptop.

I don’t see a lot of activity on this particular bug, so perhaps it’s not too common.

The other thought would be to try it on another platform.

I’m getting this too. Did you find out how to fix it?

Should add that I’m using VS2008. Here are the errors:

First-chance exception at 0x7c812aeb in template.exe: Microsoft C++ exception: cudaError_enum at memory location 0x0012fc5c…

First-chance exception at 0x7c812aeb in template.exe: Microsoft C++ exception: cudaError at memory location 0x0012fc58…

First-chance exception at 0x7c812aeb in template.exe: Microsoft C++ exception: cudaError_enum at memory location 0x0012fdd0…

First-chance exception at 0x7c812aeb in template.exe: Microsoft C++ exception: cudaError at memory location 0x0012fd08…

The program ‘[3276] template.exe: Native’ has exited with code -1 (0xffffffff).

Doh, drivers out of date.

did u get the solution

if yes please tell me that becoz i am also getting same error in my programming

I am executing one program of CUDA but i am getting this errors

i have tried to catch error using cudaError_t

so it is giving me " bloated.gifError=device emulation mode and device execution mode cannot be mixed "

following is the output window

GPU.exe’: Loaded ‘C:\Program Files\NVIDIA Corporation\NVIDIA CUDA SDK\bin\win32\Debug\GPU.exe’, Symbols loaded.

‘GPU.exe’: Loaded ‘C:\WINDOWS\system32\ntdll.dll’, No symbols loaded.

‘GPU.exe’: Loaded ‘C:\WINDOWS\system32\kernel32.dll’, No symbols loaded.

‘GPU.exe’: Loaded ‘C:\CUDA\bin\cudart.dll’, Binary was not built with debug information.

‘GPU.exe’: Loaded ‘C:\Program Files\NVIDIA Corporation\NVIDIA CUDA SDK\bin\win32\Debug\cutil32D.dll’, No symbols loaded.

‘GPU.exe’: Loaded ‘C:\WINDOWS\system32\nvcuda.dll’, Binary was not built with debug information.

‘GPU.exe’: Loaded ‘C:\WINDOWS\system32\user32.dll’, No symbols loaded.

‘GPU.exe’: Loaded ‘C:\WINDOWS\system32\gdi32.dll’, No symbols loaded.

‘GPU.exe’: Loaded ‘C:\WINDOWS\system32\opengl32.dll’, No symbols loaded.

‘GPU.exe’: Loaded ‘C:\WINDOWS\system32\msvcrt.dll’, No symbols loaded.

‘GPU.exe’: Loaded ‘C:\WINDOWS\system32\advapi32.dll’, No symbols loaded.

‘GPU.exe’: Loaded ‘C:\WINDOWS\system32\rpcrt4.dll’, No symbols loaded.

‘GPU.exe’: Loaded ‘C:\WINDOWS\system32\glu32.dll’, No symbols loaded.

‘GPU.exe’: Loaded ‘C:\WINDOWS\system32\ddraw.dll’, No symbols loaded.

‘GPU.exe’: Loaded ‘C:\WINDOWS\system32\dciman32.dll’, No symbols loaded.

‘GPU.exe’: Loaded ‘C:\WINDOWS\system32\nvapi.dll’, No symbols loaded.

‘GPU.exe’: Loaded ‘C:\WINDOWS\system32\ole32.dll’, No symbols loaded.

‘GPU.exe’: Loaded ‘C:\WINDOWS\system32\oleaut32.dll’, No symbols loaded.

‘GPU.exe’: Loaded ‘C:\WINDOWS\system32\shlwapi.dll’, No symbols loaded.

‘GPU.exe’: Loaded ‘C:\WINDOWS\system32\shell32.dll’, No symbols loaded.

‘GPU.exe’: Loaded ‘C:\WINDOWS\system32\setupapi.dll’, No symbols loaded.

‘GPU.exe’: Loaded ‘C:\WINDOWS\WinSxS\x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.2600.2180_x-ww_a84f1ff9\comctl32.dll’, No symbols loaded.

‘GPU.exe’: Loaded ‘C:\WINDOWS\system32\comctl32.dll’, No symbols loaded.

First-chance exception at 0x7c81eb33 in GPU.exe: Microsoft C++ exception: cudaError at memory location 0x0012fea4…

First-chance exception at 0x7c81eb33 in GPU.exe: Microsoft C++ exception: cudaError at memory location 0x0012fec4…

First-chance exception at 0x7c81eb33 in GPU.exe: Microsoft C++ exception: cudaError at memory location 0x0012fea8…

First-chance exception at 0x7c81eb33 in GPU.exe: Microsoft C++ exception: cudaError at memory location 0x0012fec8…

First-chance exception at 0x7c81eb33 in GPU.exe: Microsoft C++ exception: cudaError at memory location 0x0012fe48…

First-chance exception at 0x7c81eb33 in GPU.exe: Microsoft C++ exception: cudaError at memory location 0x0012fe68…

First-chance exception at 0x7c81eb33 in GPU.exe: Microsoft C++ exception: cudaError at memory location 0x0012fe48…

First-chance exception at 0x7c81eb33 in GPU.exe: Microsoft C++ exception: cudaError at memory location 0x0012fe68…

First-chance exception at 0x7c81eb33 in GPU.exe: Microsoft C++ exception: cudaError at memory location 0x0012fe48…

First-chance exception at 0x7c81eb33 in GPU.exe: Microsoft C++ exception: cudaError at memory location 0x0012fe68…

First-chance exception at 0x7c81eb33 in GPU.exe: Microsoft C++ exception: cudaError at memory location 0x0012fe40…

First-chance exception at 0x7c81eb33 in GPU.exe: Microsoft C++ exception: cudaError at memory location 0x0012fe60…

First-chance exception at 0x7c81eb33 in GPU.exe: Microsoft C++ exception: cudaError at memory location 0x0012fe30…

First-chance exception at 0x7c81eb33 in GPU.exe: Microsoft C++ exception: cudaError at memory location 0x0012fe50…

First-chance exception at 0x7c81eb33 in GPU.exe: Microsoft C++ exception: cudaError at memory location 0x0012fe50…

First-chance exception at 0x7c81eb33 in GPU.exe: Microsoft C++ exception: cudaError at memory location 0x0012fe70…

First-chance exception at 0x7c81eb33 in GPU.exe: Microsoft C++ exception: cudaError at memory location 0x0012fe40…

First-chance exception at 0x7c81eb33 in GPU.exe: Microsoft C++ exception: cudaError at memory location 0x0012fe60…

First-chance exception at 0x7c81eb33 in GPU.exe: Microsoft C++ exception: cudaError at memory location 0x0012fe4c…

First-chance exception at 0x7c81eb33 in GPU.exe: Microsoft C++ exception: cudaError at memory location 0x0012fe6c…

First-chance exception at 0x7c81eb33 in GPU.exe: Microsoft C++ exception: cudaError at memory location 0x0012fe4c…

First-chance exception at 0x7c81eb33 in GPU.exe: Microsoft C++ exception: cudaError at memory location 0x0012fe6c…

The thread ‘Win32 Thread’ (0x864) has exited with code -1073741510 (0xc000013a).

The program ‘[2720] GPU.exe: Native’ has exited with code -1073741510 (0xc000013a).

what can i do ?

i am not understanding any thing

i have installed Quadro FX 1700 drivers

i have also installed wizard

http://forums.nvidia.com/index.php?showtopic=65111

still i can not get the setting

project → Properties → CUDA → CUDA-Specific → Emulation "Yes(-deviceemu).

http://forums.nvidia.com/index.php?showtopic=62442

I am getting the same problem on my HP laptop with FX1600M chip. Rather disconcerting but there is no reply from anybody in the know as to what to do.
My driver is up to date and I am using CUDA 2.2.

At least I am not alone.

Do you have

cudaThreadExit();

before program termination?