steppo klein wrote: > i tryed the Sourcecode from Thread "Need to pick your brains...!" from > Robert Meek > Sat Feb 21 10:58:24 CST 2004
That's the code at the following address, for those who were wondering. http://www.elists.org/pipermail/delphi/2004-February/025154.html > I select two Tif - Images against the Contextmenu and start my Application. > > Result Application starts but only one Tif - Image is shown in my > Application. > > Why? Check the command line of the first program. I think you'll find that it has two parameters, not just one. Besides, if there are two instances starting simultaneously, the code above has a race condition. What if the second instance calls FindWindow *before* the first instance has managed to create its window? It won't have anywhere to send the atom message, and so one of the file names will be lost. -- Rob _______________________________________________ Delphi mailing list -> [email protected] http://www.elists.org/mailman/listinfo/delphi

