[Gambas-user] Process_Kill and LAST

Rob sourceforge-raindog2 at ...94...
Fri Jan 23 05:44:12 CET 2004


I just noticed tonight that if you refer to LAST.Id or 
LAST.Handle in the Process_Kill() event handler, they both 
always return -1.  This kinda makes it difficult to figure out 
which process got terminated.  Was this an oversight?

The following code in a blank form will demonstrate this one 
pretty well.

' Gambas class file

PUBLIC SUB Form_Open()

  SHELL "ls -al" FOR READ

END

PUBLIC SUB Process_Kill()
  
  Message.info("Process " & LAST.id & " is gone.")
  
END


I have also had LAST.Id and LAST.Handle be -1 during the last 
call of Process_Read(), but not repeatably.

Rob





More information about the User mailing list