When I call the the Domodal, to create the dialog, I get the debug assertion failed. I have inserted the break point at starting of InitDialog of my function, but before that it fails. curser will not come to the my Init function, Before that it fails. How to solve this problem.
This is not fixed, some times it works fine but sometimes fails.