There is something in your code that is not being handled correctly. Check anywhere you use reference numbers: file IO, DAQ, GPIB, control and VI references--that sort of thing. You probibly aren't closing a reference somewhere.
Also if you are calling DLLs anywhere or ActiveX controls, make sure you you are handling them correctly and not leaving things open.
Can you say a little more about what your application is doing?
Mike...