[Gambas-user] window close not killing process

pflora at libero.it pflora at libero.it
Mon Mar 29 13:41:41 CEST 2021


Your advice is right. I have 3 open sockets and never thought about reliesing them before closing the application.
I will fix It.
Thanks.
--
Inviato da Libero Mail per Android domenica, 28 marzo 2021, 07:11PM +02:00 da Bruce Steers  bsteers4 at gmail.com :

>Send the code.
>
>I suspect you have an open file handle you need to close.
>
>Or if all fails add Quit to end of Form_Close() to force exit (you should find reason for lock though, it's usually a file or pipe or socket left open )
>
>BruceS
>On Sun, 28 Mar 2021, 18:06 pinglix via User, < user at lists.gambas-basic.org> wrote:
>>Hello,
>>I have an application with only one main form.
>>When I click the close button on the title bar the windows closes but the process PID remains active so the process is not completely closed.
>>If I run ps aux | grep gambas I still find the process PID.
>>How to close completely the application ?
>>Tank you
>>[System]
>>Gambas=3.15.90
>>OperatingSystem=Linux
>>Kernel=5.0.0-32-generic
>>Architecture=x86_64
>>Distribution=Linux Mint 19.3 Tricia
>>Desktop=XFCE
>>Font=Ubuntu,10
>>Scale=7
>>Theme=mint-y
>>Language=it_IT.UTF-8
>>Memory=1844M
>>
>>[Libraries]
>>Cairo=libcairo.so.2.11510.0
>>Curl=libcurl.so.4.5.0
>>DBus=libdbus-1.so.3.19.4
>>GDK2=libgdk-x11-2.0.so.0.2400.32
>>GDK3=libgdk-3.so.0.2200.30
>>GStreamer=libgstreamer-1.0.so.0.1405.0
>>GTK+2=libgtk-x11-2.0.so.0.2400.32
>>GTK+3=libgtk-3.so.0.2200.30
>>OpenGL=libGL.so.1.0.0
>>Poppler=libpoppler.so.73.0.0
>>QT4=libQtCore.so.4.8.7
>>QT5=libQt5Core.so.5.9.5
>>SDL=libSDL-1.2.so.0.11.4
>>SQLite=libsqlite3.so.0.8.6
>>
>>[Environment]
>>CLUTTER_BACKEND=x11
>>DBUS_SESSION_BUS_ADDRESS=unix:path=/run/ /1000/bus
>>DESKTOP_SESSION=xfce
>>DISPLAY=:0.0
>>GB_GUI=gb.gtk3
>>GDMSESSION=xfce
>>GDM_LANG=it
>>GTK_MODULES=gail:atk-bridge
>>HOME=
>>LANG=it_IT.UTF-8
>>LANGUAGE=it_IT.UTF-8
>>LC_ALL=it_IT.UTF-8
>>LOGNAME=
>>PANEL_GDK_CORE_DEVICE_EVENTS=0
>>PATH= /.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
>>PWD=
>>QT_ACCESSIBILITY=1
>>QT_LOGGING_RULES=*.debug=false
>>QT_QPA_PLATFORMTHEME=qt5ct
>>SESSION_MANAGER=local/ :@/tmp/.ICE-unix/1302,unix/ :/tmp/.ICE-unix/1302
>>SHELL=/bin/bash
>>SHLVL=0
>>SSH_AGENT_PID=1401
>>SSH_AUTH_SOCK=/tmp/ssh-EMdxCCA3ldC5/agent.1302
>>TZ=:/etc/localtime
>>USER=
>>XAUTHORITY= /.Xauthority
>>XDG_CONFIG_DIRS=/etc/xdg/xdg-xfce:/etc/xdg:/etc/xdg
>>XDG_CURRENT_DESKTOP=XFCE
>>XDG_DATA_DIRS=/usr/share/xfce4: /.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/local/share:/usr/share:/var/lib/snapd/desktop:/usr/share
>>XDG_GREETER_DATA_DIR=/var/lib/lightdm-data/
>>XDG_MENU_PREFIX=xfce-
>>XDG_RUNTIME_DIR=/run/ /1000
>>XDG_SEAT=seat0
>>XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0
>>XDG_SESSION_DESKTOP=xfce
>>XDG_SESSION_ID=c1
>>XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0
>>XDG_SESSION_TYPE=x11
>>XDG_VTNR=7
>>
>>
>>
>>
>>----[  http://gambaswiki.org/wiki/doc/netiquette ]----
>
>----[  http://gambaswiki.org/wiki/doc/netiquette ]----
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20210329/16d4bf16/attachment.htm>


More information about the User mailing list