Hi Sasi,
How extensive is your code? Try running parts of your code to see if you can narrow down the problem area. Unfortunately there are not too many patterns associated with application freezing so the best way to fix it is to narrow it down.
Regards,
Jackie
DAQ Product Marketing Engineer
National Instruments