In my program, I've run into a huge delay problem. I'm not sure exactly why it is occurring, but it is causing a lot of other problems as a result. I've found a way get around the delay problem, DoEvents, but that is causing a lot of other problems on its own accord. When I don't use DoEvents, it seems as if the program is almost skipping over some events or not fully completing them. For instance,
ConnectionTestForm.ConnectionTestTime.Enabled = True
where waitform.show isn't being completed fully and it's going on to the loads. (In the loads is where I have the huge delay because I'm calling a few data acquisition control units through an interface card.) Also, some single line commands don't get completed properly because the delay will cause the program to pause tremendously while talking to the board. The problem is fixed when I add DoEvents, but then different problems occur. The delay is still there, but the program continues running and it'll make the call again to get data while it's still collecting data the first time, which crashes my program. Either way, I lose. Is there any way to figure this out, or am I just really screwed?
0 · ·