Page 1 of 1

Wait for esecution completed

Posted: 2008-12-13T07:06:40-07:00
by strawberryfield
I have written a short program in which the output of a command is used as input for a second one.
I have noted that sometime the second command start before the first one had completed the creation of the intermediate file.

is there any method to force the command to wait the completion of the execution of the com method?

thank you!

Re: Wait for esecution completed

Posted: 2009-03-02T20:53:39-07:00
by anthony
We have see this problem before, and it is caused by the Windows buffering the output of the image. The IM command itself has closed and finished everything. Just windows itself is not finished writing the buffered data!!!!

The only solution I have so far seen is to wait a bit. But then I am not a windows user or programmer. I just know IM is not at fault for this.