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.