>I have a VFP7 .APP that works great. I built an .EXE. 99% of the exe works fine - but there is one particular form that hangs the workstation - all other forms work okay. Again, the form works in the .APP, but not the EXE.
>
>The most significant difference in this form than my other forms is that it loads many objects at run-time using CREATEOBJECT and/or NEWOBJECT.
>
>BTW, I've run the EXE on several different computers (win98 and winnt), each time get the same result - this particular form hangs up and I have to use task manager to kill.
>
>Does anyone have any ideas on what the problem may be, or any suggestions on how to debug the EXE?
>
>Thanks,
>Alan
You'd have to basically do a "binary search" to determine the control that's causing the hang. Since you're dealing with controls that are added via CREATEOBJECT()/NEWOBJECT(), you can just comment out the code for half of the controls until the form stops hanging. If it still hangs, comment out half of the remaining controls, etc., etc..