|
-
May 31st, 2005, 04:01 PM
#1
Form Refresh Issues
I hope this makes sense, so here goes:
I have a form that runs in a loop. It uses comm ports, local and remote database lookups. When I start a process, I want to reflect certain information on the console for the operator to see. What is happenning is that some information is reflected correctly, but others are not (they show up after the running process completes).
I am not currently using this in a multi-threaded environment (yet), this is only the first version.
example (m_MDTData is a text field):
Code:
m_MDTData.SetWindowText("Write this now!!!");
RefreshMDT(); // remote database lookup
...
// elsewhere
void RefreshMDT(){
// do a lot of stuff
...
// when done, print the following
m_MDTData.SetWindowText("Write this when finished!!!");
}
When this runs, only the last print statement will print. The RefreshMDT process() may take up to 5 seconds to finish, so the first statement would be nice to see.
I hope this makes sense, because I am stumped as to why the first line fails to print.
There are 10 types of people in the world, those that understand binary and those that don't. 
Using VS 2010
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|