Hi, 
I have narrowed my program down and found that this error is generated when I tried to call a dll.  I have included the dll and some code.  I have use this code with windows 2000 before and with this dll and everything is hunky dory, but now that I  put Windows XP OS on my computer, the exe is the only thing causing a problem, the VI is still working fine.  I have another exe file which I created to parse an xml file and that exe doesn't give me any error upon closing, so I am thinking that the dll is a problem.  If anyone has windows 2000, can you use my code to build an exe and then post it here so maybe I can test to see if there is any difference?  Thanks. http://exchange.ni.com/servlet/ProcessRequest?RHIVEID=101&RPAGEID=137&HOID=506500000005000000
2CA80100&HIsQuestionPoster=Yes&HTHREAD=000108588&UCATEGORY_0=_49_%24_6_&UCATEGORY_S=0
I still don't understand your Stop button or Exit button concept though.  My program stops completely and you can re-run it with the RUN button at the top, doesn't that mean that the program has stopped?  I don't understand how I would implement this STOP button idea without using another loop outside or an event structure.  But either way, it would seem like extra unneccesary code, right?