Run-Time Check Failure #0 Runtime failure when compiling with visual studio on windows xp


I get this “Run-Time Check Failure #0 - The value of ESP was not properly saved across a function call” error.

I compile with VisualStudio 2005 on XP and I use the nvcc 2.1.

Does anybody know how I can fix that?

Any help would be appreciated.