I built an EXE that scans a portion of a large database based on start/stop points entered by the user. So you can run one EXE to scan A - M and another instance of the same EXE to scan N - Z.
I tried setting the form captions to "Scan_A" and "Scan_N" (so they would have different names) before the looping starts, but I can't restore the "N" instance (Right-click minimized window and Restore) - the OS (Win 2000) seems confused about which one to bring up. The CPU hits 50% when both are running, and there are "DoEvents" statements in the Form's code to respond to user events (this works ok once the window is restored).
Is this a handle problem, since the same EXE creates 2 windows? Any work-arounds? Thanks.
I tried setting the form captions to "Scan_A" and "Scan_N" (so they would have different names) before the looping starts, but I can't restore the "N" instance (Right-click minimized window and Restore) - the OS (Win 2000) seems confused about which one to bring up. The CPU hits 50% when both are running, and there are "DoEvents" statements in the Form's code to respond to user events (this works ok once the window is restored).
Is this a handle problem, since the same EXE creates 2 windows? Any work-arounds? Thanks.