Release/Debug in CUDA Driver API (Visual C++7)

Hi room… am facing some serious problems in using Driver API (with Visual C++ 7)… The application am workin on it concerns an on-the-fly visualization…

in DEBUG mode, it sometimes works for more than 30 minutes… but some other times, it cannot even be executed… It’s a random behaviour…

in RELEASE mode, it rarely works (for 30 minutes for example or even for 1 hour), RARELYYY… but in general I cannot even execute it… I dont know what this means!! What’s this random behaviour due to???
Anyone helps me out!!! Any help would be appreciated…
Thanx a lot…

Hochman…