On Tue, 15 Jan 2008, Lorenzo Fiorini wrote: > On Jan 15, 2008 9:41 AM, Przemyslaw Czerpak <[EMAIL PROTECTED]> wrote: > > I need self contain example. Can I see tt52.prg? > > Was hbrun linked with HB_EXECVP()? > Here is tt52.prg:
[...] It's working for me without any problem. > I've added HB_EXECVP, HB_KILL, HB_WAITPID to include/hbextern.ch It means that you had to add above functions to one of libraries linked with HBRUN. I've added them directly to hbrun with REQUEST HB_EXECVP, HB_KILL, HB_WAITPID Later I changed: [...] for i:=1 to 5 ? i aadd( aPID, HB_EXECVP( "hbrun" ) ) // here I use an Harbour gtxwc/gttrm app hb_idlesleep(2) next __run("ps xa|grep avm.exe|grep -v grep") hb_idlesleep(3.5) to: for i:=1 to 5 ? i aadd( aPID, HB_EXECVP( "sleep", "2" ) ) hb_idlesleep(0.25) next __run("ps xa|grep avm.exe|grep -v grep") hb_idlesleep(1.0) and run it as .hrb file and directly by: hbrun tt52.prg In both cases it works perfectly. I cannot say what is your problem but seems to be related to some other things. F.e. mixed libraries from different compilers use to create hbrun executable or sth like that. best regards, Przemek _______________________________________________ Harbour mailing list Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour