windows form and cuda

Any one know how to run cuda using windows form application. Everything is working but on execution its generating assert.