in reply to Windows process suspend
G'day gautamparimoo,
According to the Win32::Process::Kill documentation, GetHandle returns an array. I expect that calling it in scalar context will return 1 (in your code here). Subsequently, you call "SuspendProcess(1);" which is probably responsible for the crash. The documentation has the code you need.
-- Ken
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Windows process suspend
by gautamparimoo (Beadle) on Apr 24, 2013 at 09:28 UTC | |
by roboticus (Chancellor) on Apr 24, 2013 at 10:09 UTC | |
by gautamparimoo (Beadle) on Apr 24, 2013 at 10:16 UTC | |
by Random_Walk (Prior) on Apr 24, 2013 at 10:38 UTC | |
by gautamparimoo (Beadle) on Apr 24, 2013 at 10:46 UTC | |
|