[Gambas-bugtracker] Bug #2656: WebTimer into a Webform still exist after _free() event

bugtracker at gambaswiki.org bugtracker at gambaswiki.org
Sun Nov 13 18:04:38 CET 2022


http://gambaswiki.org/bugtracker/edit?object=BUG.2656&from=L21haW4-

Olivier CRUILLES reported a new bug.

Summary
-------

WebTimer into a Webform still exist after _free() event

Type             : Bug
Priority         : Medium
Gambas version   : Master
Product          : Web components


Description
-----------

Hello,

In a project using gb.web.gui, into the Main Webform I have a WebContainer into I add other WebForm depending what I want to display.

That way I can focus on each WebForm to added and have each one independent, regarding Variables, WebTimer, etc... it's really cool as for Desktop UI.

But in the case of Web application, it seems when I close (in fact Delete) a WebForm as Child of the WebContainer, the WebTimer into the WebForm still exist and is not destroyed to the Browser side.

Is there a way to inform the Browser that the WebTimer(s) associated to the WebForm that has been destroyed, need to be destroyed too ?

Make sense for you ?

Olivier


System information
------------------

[System]
Gambas=3.17.90 795cd79f6 (master)
OperatingSystem=Linux
Kernel=5.8.15-301.fc33.x86_64
Architecture=x86_64
Distribution=redhat Fedora release 35 (Thirty Five)
Desktop=MATE
Font=Liberation Sans,10
Scale=7
Theme=mint-x
Language=fr_FR.utf8
Memory=32054M

[Libraries]
Cairo=libcairo.so.2.11704.0
Curl=libcurl.so.4.7.0
DBus=libdbus-1.so.3.19.15
GDK2=libgdk-x11-2.0.so.0.2400.33
GDK3=libgdk-3.so.0.2404.30
GStreamer=libgstreamer-1.0.so.0.2000.0
GTK+2=libgtk-x11-2.0.so.0.2400.33
GTK+3=libgtk-3.so.0.2404.30
OpenGL=libGL.so.1.7.0
Poppler=libpoppler.so.112.0.0
QT5=libQt5Core.so.5.15.2
SQLite=libsqlite3.so.0.8.6

[Environment]
BASH_ENV=/usr/share/lmod/lmod/init/bash
BASH_FUNC_ml%%=() {  eval $($LMOD_DIR/ml_cmd "$@")
}
BASH_FUNC_module%%=() {  eval $($LMOD_CMD bash "$@") && eval $(${LMOD_SETTARG_CMD:-:} -s sh)
}
BASH_FUNC_which%%=() {  ( alias;
 eval ${which_declare} ) | /usr/bin/which --tty-only --read-alias --read-functions --show-tilde --show-dot "$@"
}
CAPP_BUILD=<home>/Packages/Starter/Build
CONDA_SHLVL=0
DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus
DEBUGINFOD_URLS=https://debuginfod.fedoraproject.org/ 
DESKTOP_SESSION=mate
DISPLAY=:0
EDITOR=/usr/bin/vim
GB_GUI=gb.gtk3
GDMSESSION=mate
GDM_LANG=fr_FR.utf8
GIO_LAUNCHED_DESKTOP_FILE_PID=203539
GTK3_MODULES=xapp-gtk3-module
GTK_OVERLAY_SCROLLING=0
GUESTFISH_INIT=\e[1;34m
GUESTFISH_OUTPUT=\e[0m
GUESTFISH_PS1=\[\e[1;32m\]><fs>\[\e[0;31m\] 
GUESTFISH_RESTORE=\e[0m
HISTCONTROL=ignoredups
HISTSIZE=1000
HISTTIMEFORMAT=%F %T 
HOME=<home>
HOSTNAME=<hostname>
IMSETTINGS_INTEGRATE_DESKTOP=yes
IMSETTINGS_MODULE=none
KDEDIRS=/usr
LANG=fr_FR.utf8
LC_ALL=fr_FR.utf8
LESSOPEN=||/usr/bin/lesspipe.sh %s
LMOD_CMD=/usr/share/lmod/lmod/libexec/lmod
LMOD_DIR=/usr/share/lmod/lmod/libexec
LMOD_PKG=/usr/share/lmod/lmod
LMOD_ROOT=/usr/share/lmod
LMOD_SETTARG_FULL_SUPPORT=no
LMOD_VERSION=8.4.30
LMOD_sys=Linux
LOGNAME=<user>
MAIL=/var/spool/mail/<user>
MANPATH=/usr/share/lmod/lmod/share/man:
MATE_DESKTOP_SESSION_ID=this-is-deprecated
MODULEPATH=/etc/modulefiles:/usr/share/modulefiles:/usr/share/modulefiles/Linux:/usr/share/modulefiles/Core:/usr/share/lmod/lmod/modulefiles/Core
MODULEPATH_ROOT=/usr/share/modulefiles
MODULESHOME=/usr/share/lmod/lmod
MOZ_GMP_PATH=/usr/lib64/mozilla/plugins/gmp-gmpopenh264/system-installed
PAGER=most
PATH=<home>/.local/bin:<home>/.cargo/bin:<home>/narwhal/bin:<home>/perl5/bin:/usr/condabin:/usr/lib64/ccache:<home>/.cargo/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/var/lib/snapd/snap/bin:<home>/bin:/usr/local/xaralx/bin
PERL5LIB=<home>/perl5/lib/perl5
PERL_LOCAL_LIB_ROOT=<home>/perl5
PERL_MB_OPT=--install_base "<home>/perl5"
PERL_MM_OPT=INSTALL_BASE=<home>/perl5
PWD=<home>
QT_FONT_DPI=88
QT_IM_MODULE=xim
QT_LOGGING_RULES=*.debug=false
QT_SCALE_FACTOR=1
SESSION_MANAGER=local/unix:@/tmp/.ICE-unix/2949,unix/unix:/tmp/.ICE-unix/2949
SHELL=/bin/bash
SHLVL=0
SSH_AGENT_PID=3078
SSH_ASKPASS=/usr/libexec/openssh/gnome-ssh-askpass
SSH_AUTH_SOCK=/run/user/1000/keyring/ssh
TERM=dumb
TZ=:/etc/localtime
USER=<user>
XAUTHORITY=/run/lightdm/<user>/xauthority
XDG_CURRENT_DESKTOP=MATE
XDG_DATA_DIRS=<home>/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/local/share:/usr/share:/var/lib/snapd/desktop
XDG_GREETER_DATA_DIR=/var/lib/lightdm-data/<user>
XDG_RUNTIME_DIR=/run/user/1000
XDG_SEAT=seat0
XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0
XDG_SESSION_CLASS=user
XDG_SESSION_DESKTOP=mate
XDG_SESSION_ID=2
XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0
XDG_SESSION_TYPE=x11
XDG_VTNR=1
XMODIFIERS=@im=none
which_declare=declare -f




More information about the Bugtracker mailing list