I would highly recommend that you perform extensive troubleshooting and debugging on your application to track down which particular function is causing the GPF. For example, make sure to set breakpoints on the routines that take care of cleanup right before your program closes. Also, note if the GPF occurs whether you run in debug (standard or extended) or release mode; GPFs in release mode that do not show up on debug mode usually signal bugs in the program that can be tracked down.
GPFs can be tricky to debug so make sure you monitor memory usage, variable assignment and possible dangling pointers. CVI's extended debugging level should help you track down some of these.
On a separate note, you might want to run your appication on the latest version of CVI, 7.
0. You can download the evaluation version on the CVI page at http://www.ni.com/cvi. You will have 30 days to use the full development system of CVI 7.0 (minus some key features, of course) which should give you enough time to reproduce and/or debug your program. CVI 7.0 can coexist with any previous version of CVI on your system, so you don't have to uninstall the current version of CVI you are using. If you still see the GPF, please notify NI's technical support at support@ni.com so we can let R&D know this might be a bug.
Best of luck,
Azucena