Advertisement
Guest User

Untitled

a guest
Feb 8th, 2016
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. ERROR: System.ComponentModel.Win32Exception: ApplicationName='upower', CommandLine='-i /org/freedesktop/UPower/devices/battery_BAT0', CurrentDirectory='', Native error= Out of memory
  2.  
  3. Dim ret As String = ""
  4. Dim proc As New System.Diagnostics.Process()
  5. proc.StartInfo.FileName = file 'i.e upower
  6. proc.StartInfo.Arguments = arguments 'i.e. -i /org/freedesktop/UPower/devices/battery_BAT0
  7. proc.StartInfo.UseShellExecute = False
  8. proc.StartInfo.RedirectStandardOutput = True
  9. proc.Start()
  10. ret = proc.StandardOutput.ReadToEnd()
  11. proc.WaitForExit()
  12. Return ret
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement