Close a process

Post your Gambas programming questions here.
Post Reply
User avatar
cogier
Site Admin
Posts: 1118
Joined: Wednesday 21st September 2016 2:22pm
Location: Guernsey, Channel Islands

Close a process

Post by cogier »

What is the correct way to close a process in Gambas 3.9.1? The 'help' says you must use the 'CloseInput' method but whatever way I try this it fails and your are left with a process that's unusable requiring a reboot.
User avatar
gbWilly
Posts: 68
Joined: Friday 23rd September 2016 11:41am
Location: Netherlands
Contact:

Re: Close a process

Post by gbWilly »

I thought you close a Process with Close.
Never heard of CloseInput, must be new.
gbWilly
- Dutch translation for Gambas3
- Gambas wiki content contributer


... there is always a Catch if things go wrong!
User avatar
Got2BeFree
Posts: 91
Joined: Saturday 26th November 2016 2:52am
Location: Lost

Re: Close a process

Post by Got2BeFree »

From my understanding, 'Close' only closes the stream, not the process. To end a process use "Try hProcess.Kill".
sholzy

I'm wondering around lost in the past, not knowing where the present is.
Post Reply