My application generates a data file with instructions to generate a graphic file and after call an external program that processes this information and generates the graphic file.
Next, my program, that is waiting until the graphic file exists, takes this graphic file and incorporates it to his database.
The problem is the the time that the external application take to processing the data file. This time can be very large. An sometimes, my program traying to get the resulting file meanwhile the external program is processing it. This becomes in an OS exception.
Can I ask to the OS, if the file I want to take is been still processing by another application?
The program is cross platform, because of this I can't call the external application waiting to his finallization. And of course, if the solution is for crossplatform, more better.
Thank in advance.