func main() {
http.HandleFunc("/", sroot)
http.ListenAndServe(":8080", nil)
}
I started it by Build Menu > FileRun.
And then stopped it by Build Menu > Stop action.
IDE’s output console shows:
Error: process crashed or was terminated while running.
But the process main.exe
is still running in the os.
How to properly stop http server from within LiteIDE?
geosoft1
(George Calianu)
January 6, 2019, 8:42am
2
Your problem is not about LiteIDE but operating system. While you run your program in user mode probably you should stop the application as privileged user. Try running LiteIDE ar administrator.
The problem was in the way I started it. When I run it like BuildAndRun it works and stops as expected.
system
(system)
Closed
April 6, 2019, 8:52am
4
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.