From bkv at mailbox.org Wed Aug 1 08:15:27 2018 From: bkv at mailbox.org (bkv at mailbox.org) Date: Wed, 1 Aug 2018 08:15:27 +0200 (CEST) Subject: [Gambas-user] Moving from OpenSuse to Mint In-Reply-To: References: <1512367262.17333.1532879050578@office.mailbox.org> <20180729155433.GC17634@highrise.localdomain> <1719584772.19835.1532882568948@office.mailbox.org> <1364346868.20242.1532888800300@office.mailbox.org> <360099322.6561.1532982029194@office.mailbox.org> Message-ID: <1183911545.7376.1533104128354@office.mailbox.org> Thank you. I am also happy with how it runs on OpenSuse (with qt components), but I need to make sure I can move the project to other Linux systems. Right now I try it on Mint, but without success so far. Regards, Bj?rn > On July 31, 2018 at 4:55 PM T Lee Davidson wrote: > > > It runs fine on my openSUSE system with either of the Qt components manually selected in the IDE. It will not run with either of > the GTK components. And, I get NO error messages when running an executable from the command line. > > [System] > Gambas=3.11.90 584a7b6ba (master) > OperatingSystem=Linux > Kernel=4.4.140-62-default > Architecture=x86_64 > Distribution=openSUSE Leap 42.3 > Desktop=KDE5 > Theme=QtCurve > Language=en_US.UTF-8 > Memory=3951M > > [Libraries] > Cairo=/usr/lib64/libcairo.so.2.11502.0 > Curl=/usr/lib64/libcurl.so.4.3.0 > DBus=/lib64/libdbus-1.so.3.8.14 > GStreamer=/usr/lib64/libgstreamer-0.10.so.0.30.0 > GStreamer=/usr/lib64/libgstreamer-1.0.so.0.803.0 > GTK+2=/usr/lib64/libgtk-x11-2.0.so.0.2400.31 > GTK+3=/usr/lib64/libgtk-3.so.0.2000.10 > OpenGL=/usr/lib64/libGL.so.1.2.0 > Poppler=/usr/lib64/libpoppler.so.60.0.0 > QT4=/usr/lib64/libQtCore.so.4.8.7 > QT5=/usr/lib64/libQt5Core.so.5.6.2 > SDL=/usr/lib64/libSDL-1.2.so.0.11.4 > SQLite=/usr/lib64/libsqlite3.so.0.8.6 > > [Environment] > [snip] > GB_GUI=gb.qt5 > [snip] > GTK2_RC_FILES=/etc/gtk-2.0/gtkrc:/.gtkrc-2.0 > GTK_IM_MODULE=cedilla > GTK_MODULES=canberra-gtk-module > [snip] > KDE_FULL_SESSION=true > KDE_SESSION_UID=1000 > KDE_SESSION_VERSION=5 > [snip] > QT_AUTO_SCREEN_SCALE_FACTOR=0 > QT_IM_MODULE=xim > QT_IM_SWITCHER=imsw-multi > QT_SYSTEM_DIR=/usr/share/desktop-data > [snip] > > ___ > Lee > > > On 07/30/2018 04:20 PM, bkv at mailbox.org wrote: > > Hi > > I can only make it run with GB_GUI=gb.qt4. That is in the Gambas developement environment. > > If I try to make an exeutable adn run it I get these messages: > > > > (Ladelogg:3815): GLib-GObject-WARNING **: invalid (NULL) pointer instance > > (Ladelogg:3815): GLib-GObject-CRITICAL **: g_signal_connect_data: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed > > > > I have attached my project. I am glad inf someone would take a loHi > > I can only make it run with GB_GUI=gb.qt4. That is in the Gambas developement environment. > > If I try to make an exeutable adn run it I get these messages: > > > > (Ladelogg:3815): GLib-GObject-WARNING **: invalid (NULL) pointer instance > > (Ladelogg:3815): GLib-GObject-CRITICAL **: g_signal_connect_data: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed > > > > I have attached my project. I am glad inf someone would take a look. > > > > > > -Bj?rn > > > > > > > >> On July 30, 2018 at 6:36 PM T Lee Davidson wrote: > >> > >> > >> I notice in your System Information that the GB_GUI environment variable is set to gb.qt5 ("GB_GUI=gb.qt5"). Perhaps try setting > >> that to one of the GTK components (ie. gb.gtk or gb.gtk3). Or, just unset it at the command line (`unset GB_GUI`). > >> > >> > >> -- > >> Lee > >> > >> > >> On 07/29/2018 02:26 PM, bkv at mailbox.org wrote: > >>> Hi > >>> I went to Debug -> GUI Component and selected QT4. I can now run the program in the Gambas developement environment. > >>> > >>> But I guess it would be better not to use QT4 on Mint, but rather the GUI system used by mint itself. How can I achieve that? > >>> > >>> -Bj?rn > >>> > >>> > [snip] > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- From bagonergi at gmail.com Wed Aug 1 11:07:08 2018 From: bagonergi at gmail.com (Gianluigi) Date: Wed, 1 Aug 2018 11:07:08 +0200 Subject: [Gambas-user] Moving from OpenSuse to Mint In-Reply-To: <1183911545.7376.1533104128354@office.mailbox.org> References: <1512367262.17333.1532879050578@office.mailbox.org> <20180729155433.GC17634@highrise.localdomain> <1719584772.19835.1532882568948@office.mailbox.org> <1364346868.20242.1532888800300@office.mailbox.org> <360099322.6561.1532982029194@office.mailbox.org> <1183911545.7376.1533104128354@office.mailbox.org> Message-ID: It works well here too. [System] Gambas=3.11.90 584a7b6 (master) OperatingSystem=Linux Kernel=4.15.0-29-generic Architecture=x86_64 Distribution=Ubuntu 18.04.1 LTS Desktop=UBUNTU:GNOME Theme=Cleanlooks Regards Gianluigi 2018-08-01 8:15 GMT+02:00 : > > > Thank you. > I am also happy with how it runs on OpenSuse (with qt components), but I > need to make sure I can move the project to other Linux systems. Right now > I try it on Mint, but without success so far. > > > Regards, > > Bj?rn > > > > On July 31, 2018 at 4:55 PM T Lee Davidson > wrote: > > > > > > It runs fine on my openSUSE system with either of the Qt components > manually selected in the IDE. It will not run with either of > > the GTK components. And, I get NO error messages when running an > executable from the command line. > > > > [System] > > Gambas=3.11.90 584a7b6ba (master) > > OperatingSystem=Linux > > Kernel=4.4.140-62-default > > Architecture=x86_64 > > Distribution=openSUSE Leap 42.3 > > Desktop=KDE5 > > Theme=QtCurve > > Language=en_US.UTF-8 > > Memory=3951M > > > > [Libraries] > > Cairo=/usr/lib64/libcairo.so.2.11502.0 > > Curl=/usr/lib64/libcurl.so.4.3.0 > > DBus=/lib64/libdbus-1.so.3.8.14 > > GStreamer=/usr/lib64/libgstreamer-0.10.so.0.30.0 > > GStreamer=/usr/lib64/libgstreamer-1.0.so.0.803.0 > > GTK+2=/usr/lib64/libgtk-x11-2.0.so.0.2400.31 > > GTK+3=/usr/lib64/libgtk-3.so.0.2000.10 > > OpenGL=/usr/lib64/libGL.so.1.2.0 > > Poppler=/usr/lib64/libpoppler.so.60.0.0 > > QT4=/usr/lib64/libQtCore.so.4.8.7 > > QT5=/usr/lib64/libQt5Core.so.5.6.2 > > SDL=/usr/lib64/libSDL-1.2.so.0.11.4 > > SQLite=/usr/lib64/libsqlite3.so.0.8.6 > > > > [Environment] > > [snip] > > GB_GUI=gb.qt5 > > [snip] > > GTK2_RC_FILES=/etc/gtk-2.0/gtkrc:/.gtkrc-2.0 > > GTK_IM_MODULE=cedilla > > GTK_MODULES=canberra-gtk-module > > [snip] > > KDE_FULL_SESSION=true > > KDE_SESSION_UID=1000 > > KDE_SESSION_VERSION=5 > > [snip] > > QT_AUTO_SCREEN_SCALE_FACTOR=0 > > QT_IM_MODULE=xim > > QT_IM_SWITCHER=imsw-multi > > QT_SYSTEM_DIR=/usr/share/desktop-data > > [snip] > > > > ___ > > Lee > > > > > > On 07/30/2018 04:20 PM, bkv at mailbox.org wrote: > > > Hi > > > I can only make it run with GB_GUI=gb.qt4. That is in the Gambas > developement environment. > > > If I try to make an exeutable adn run it I get these messages: > > > > > > (Ladelogg:3815): GLib-GObject-WARNING **: invalid (NULL) pointer > instance > > > (Ladelogg:3815): GLib-GObject-CRITICAL **: g_signal_connect_data: > assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed > > > > > > I have attached my project. I am glad inf someone would take a loHi > > > I can only make it run with GB_GUI=gb.qt4. That is in the Gambas > developement environment. > > > If I try to make an exeutable adn run it I get these messages: > > > > > > (Ladelogg:3815): GLib-GObject-WARNING **: invalid (NULL) pointer > instance > > > (Ladelogg:3815): GLib-GObject-CRITICAL **: g_signal_connect_data: > assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed > > > > > > I have attached my project. I am glad inf someone would take a look. > > > > > > > > > -Bj?rn > > > > > > > > > > > >> On July 30, 2018 at 6:36 PM T Lee Davidson > wrote: > > >> > > >> > > >> I notice in your System Information that the GB_GUI environment > variable is set to gb.qt5 ("GB_GUI=gb.qt5"). Perhaps try setting > > >> that to one of the GTK components (ie. gb.gtk or gb.gtk3). Or, just > unset it at the command line (`unset GB_GUI`). > > >> > > >> > > >> -- > > >> Lee > > >> > > >> > > >> On 07/29/2018 02:26 PM, bkv at mailbox.org wrote: > > >>> Hi > > >>> I went to Debug -> GUI Component and selected QT4. I can now run the > program in the Gambas developement environment. > > >>> > > >>> But I guess it would be better not to use QT4 on Mint, but rather > the GUI system used by mint itself. How can I achieve that? > > >>> > > >>> -Bj?rn > > >>> > > >>> > > [snip] > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bm.530502 at gmail.com Wed Aug 1 13:00:55 2018 From: bm.530502 at gmail.com (M Be) Date: Wed, 1 Aug 2018 13:00:55 +0200 Subject: [Gambas-user] Moving from OpenSuse to Mint In-Reply-To: <1183911545.7376.1533104128354@office.mailbox.org> References: <1512367262.17333.1532879050578@office.mailbox.org> <20180729155433.GC17634@highrise.localdomain> <1719584772.19835.1532882568948@office.mailbox.org> <1364346868.20242.1532888800300@office.mailbox.org> <360099322.6561.1532982029194@office.mailbox.org> <1183911545.7376.1533104128354@office.mailbox.org> Message-ID: I can run your project on Mint: Best regards Ingo [System] Gambas=3.11.2 OperatingSystem=Linux Kernel=4.10.0-38-generic Architecture=x86 Distribution=Linux Mint 18.3 Sylvia Desktop=MATE Theme=Gtk Language=de_DE.UTF-8 Memory=2459M [Libraries] Cairo=libcairo.so.2.11400.6 Curl=libcurl.so.4.4.0 DBus=libdbus-1.so.3.14.6 GStreamer=libgstreamer-0.10.so.0.30.0 GStreamer=libgstreamer-1.0.so.0.803.0 GTK+2=libgtk-x11-2.0.so.0.2400.30 GTK+3=libgtk-3.so.0.1800.9 OpenGL=libGL.so.1.2.0 Poppler=libpoppler.so.58.0.0 QT4=libQtCore.so.4.8.7 QT5=libQt5Core.so.5.5.1 SDL=libSDL-1.2.so.0.11.4 SQLite=libsqlite3.so.0.8.6 [Environment] CLUTTER_BACKEND=x11 COMPIZ_CONFIG_PROFILE=mate DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-hG1oTZ2XOS,guid=c3d3ea032a020bec1437737d5b61914f DEFAULTS_PATH=/usr/share/gconf/mate.default.path DESKTOP_SESSION=mate DISPLAY=:0 GB_GUI=gb.qt4 GDMSESSION=mate GDM_LANG=de_DE GTK_MODULES=gail:atk-bridge GTK_OVERLAY_SCROLLING=0 HOME= LANG=de_DE.UTF-8 LANGUAGE=de_DE LOGNAME= MANDATORY_PATH=/usr/share/gconf/mate.mandatory.path MATE_DESKTOP_SESSION_ID=this-is-deprecated PATH=/bin:/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games PWD= QT_ACCESSIBILITY=1 QT_LINUX_ACCESSIBILITY_ALWAYS_ON=1 QT_STYLE_OVERRIDE=gtk SESSION_MANAGER=local/:@/tmp/.ICE-unix/1979,unix/:/tmp/.ICE-unix/1979 SHELL=/bin/bash SHLVL=0 SSH_AGENT_PID=2112 SSH_AUTH_SOCK=/run/user/1000/keyring/ssh TZ=:/etc/localtime USER= XAUTHORITY=/.Xauthority XDG_CONFIG_DIRS=/etc/xdg/xdg-mate:/etc/xdg XDG_CURRENT_DESKTOP=MATE XDG_DATA_DIRS=/usr/share/mate:/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/local/share:/usr/share XDG_GREETER_DATA_DIR=/var/lib/lightdm-data/ XDG_RUNTIME_DIR=/run/user/1000 XDG_SEAT=seat0 XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0 XDG_SESSION_DESKTOP=mate XDG_SESSION_ID=c2 XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0 XDG_SESSION_TYPE=x11 XDG_VTNR=7 2018-08-01 8:15 GMT+02:00 : > > > Thank you. > I am also happy with how it runs on OpenSuse (with qt components), but I > need to make sure I can move the project to other Linux systems. Right now > I try it on Mint, but without success so far. > > > Regards, > > Bj?rn > > > > On July 31, 2018 at 4:55 PM T Lee Davidson > wrote: > > > > > > It runs fine on my openSUSE system with either of the Qt components > manually selected in the IDE. It will not run with either of > > the GTK components. And, I get NO error messages when running an > executable from the command line. > > > > [System] > > Gambas=3.11.90 584a7b6ba (master) > > OperatingSystem=Linux > > Kernel=4.4.140-62-default > > Architecture=x86_64 > > Distribution=openSUSE Leap 42.3 > > Desktop=KDE5 > > Theme=QtCurve > > Language=en_US.UTF-8 > > Memory=3951M > > > > [Libraries] > > Cairo=/usr/lib64/libcairo.so.2.11502.0 > > Curl=/usr/lib64/libcurl.so.4.3.0 > > DBus=/lib64/libdbus-1.so.3.8.14 > > GStreamer=/usr/lib64/libgstreamer-0.10.so.0.30.0 > > GStreamer=/usr/lib64/libgstreamer-1.0.so.0.803.0 > > GTK+2=/usr/lib64/libgtk-x11-2.0.so.0.2400.31 > > GTK+3=/usr/lib64/libgtk-3.so.0.2000.10 > > OpenGL=/usr/lib64/libGL.so.1.2.0 > > Poppler=/usr/lib64/libpoppler.so.60.0.0 > > QT4=/usr/lib64/libQtCore.so.4.8.7 > > QT5=/usr/lib64/libQt5Core.so.5.6.2 > > SDL=/usr/lib64/libSDL-1.2.so.0.11.4 > > SQLite=/usr/lib64/libsqlite3.so.0.8.6 > > > > [Environment] > > [snip] > > GB_GUI=gb.qt5 > > [snip] > > GTK2_RC_FILES=/etc/gtk-2.0/gtkrc:/.gtkrc-2.0 > > GTK_IM_MODULE=cedilla > > GTK_MODULES=canberra-gtk-module > > [snip] > > KDE_FULL_SESSION=true > > KDE_SESSION_UID=1000 > > KDE_SESSION_VERSION=5 > > [snip] > > QT_AUTO_SCREEN_SCALE_FACTOR=0 > > QT_IM_MODULE=xim > > QT_IM_SWITCHER=imsw-multi > > QT_SYSTEM_DIR=/usr/share/desktop-data > > [snip] > > > > ___ > > Lee > > > > > > On 07/30/2018 04:20 PM, bkv at mailbox.org wrote: > > > Hi > > > I can only make it run with GB_GUI=gb.qt4. That is in the Gambas > developement environment. > > > If I try to make an exeutable adn run it I get these messages: > > > > > > (Ladelogg:3815): GLib-GObject-WARNING **: invalid (NULL) pointer > instance > > > (Ladelogg:3815): GLib-GObject-CRITICAL **: g_signal_connect_data: > assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed > > > > > > I have attached my project. I am glad inf someone would take a loHi > > > I can only make it run with GB_GUI=gb.qt4. That is in the Gambas > developement environment. > > > If I try to make an exeutable adn run it I get these messages: > > > > > > (Ladelogg:3815): GLib-GObject-WARNING **: invalid (NULL) pointer > instance > > > (Ladelogg:3815): GLib-GObject-CRITICAL **: g_signal_connect_data: > assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed > > > > > > I have attached my project. I am glad inf someone would take a look. > > > > > > > > > -Bj?rn > > > > > > > > > > > >> On July 30, 2018 at 6:36 PM T Lee Davidson > wrote: > > >> > > >> > > >> I notice in your System Information that the GB_GUI environment > variable is set to gb.qt5 ("GB_GUI=gb.qt5"). Perhaps try setting > > >> that to one of the GTK components (ie. gb.gtk or gb.gtk3). Or, just > unset it at the command line (`unset GB_GUI`). > > >> > > >> > > >> -- > > >> Lee > > >> > > >> > > >> On 07/29/2018 02:26 PM, bkv at mailbox.org wrote: > > >>> Hi > > >>> I went to Debug -> GUI Component and selected QT4. I can now run the > program in the Gambas developement environment. > > >>> > > >>> But I guess it would be better not to use QT4 on Mint, but rather > the GUI system used by mint itself. How can I achieve that? > > >>> > > >>> -Bj?rn > > >>> > > >>> > > [snip] > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bkv at mailbox.org Wed Aug 1 14:08:37 2018 From: bkv at mailbox.org (bkv at mailbox.org) Date: Wed, 1 Aug 2018 14:08:37 +0200 (CEST) Subject: [Gambas-user] Moving from OpenSuse to Mint In-Reply-To: References: <1512367262.17333.1532879050578@office.mailbox.org> <20180729155433.GC17634@highrise.localdomain> <1719584772.19835.1532882568948@office.mailbox.org> <1364346868.20242.1532888800300@office.mailbox.org> <360099322.6561.1532982029194@office.mailbox.org> <1183911545.7376.1533104128354@office.mailbox.org> Message-ID: <655527528.7984.1533125317483@office.mailbox.org> Great, which desktop do you have? I have Mate on my Mint. I'll compare Your Project file to mine tonight. Regards, Bj?rn > On August 1, 2018 at 1:00 PM M Be wrote: > > I can run your project on Mint: > Best regards > Ingo > > [System] > Gambas=3.11.2 > OperatingSystem=Linux > Kernel=4.10.0-38-generic > Architecture=x86 > Distribution=Linux Mint 18.3 Sylvia > Desktop=MATE > Theme=Gtk > Language=de_DE.UTF-8 > Memory=2459M > > [Libraries] > Cairo=libcairo.so.2.11400.6 > Curl=libcurl.so.4.4.0 > DBus=libdbus-1.so.3.14.6 > GStreamer=libgstreamer-0.10.so.0.30.0 > GStreamer=libgstreamer-1.0.so.0.803.0 > GTK+2=libgtk-x11-2.0.so.0.2400.30 > GTK+3=libgtk-3.so.0.1800.9 > OpenGL=libGL.so.1.2.0 > Poppler=libpoppler.so.58.0.0 > QT4=libQtCore.so.4.8.7 > QT5=libQt5Core.so.5.5.1 > SDL=libSDL-1.2.so.0.11.4 > SQLite=libsqlite3.so.0.8.6 > > [Environment] > CLUTTER_BACKEND=x11 > COMPIZ_CONFIG_PROFILE=mate > DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-hG1oTZ2XOS,guid=c3d3ea032a020bec1437737d5b61914f > DEFAULTS_PATH=/usr/share/gconf/mate.default.path > DESKTOP_SESSION=mate > DISPLAY=:0 > GB_GUI=gb.qt4 > GDMSESSION=mate > GDM_LANG=de_DE > GTK_MODULES=gail:atk-bridge > GTK_OVERLAY_SCROLLING=0 > HOME= > LANG=de_DE.UTF-8 > LANGUAGE=de_DE > LOGNAME= > MANDATORY_PATH=/usr/share/gconf/mate.mandatory.path > MATE_DESKTOP_SESSION_ID=this-is-deprecated > PATH=/bin:/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games > PWD= > QT_ACCESSIBILITY=1 > QT_LINUX_ACCESSIBILITY_ALWAYS_ON=1 > QT_STYLE_OVERRIDE=gtk > SESSION_MANAGER=local/:@/tmp/.ICE-unix/1979,unix/:/tmp/.ICE-unix/1979 > SHELL=/bin/bash > SHLVL=0 > SSH_AGENT_PID=2112 > SSH_AUTH_SOCK=/run/user/1000/keyring/ssh > TZ=:/etc/localtime > USER= > XAUTHORITY=/.Xauthority > XDG_CONFIG_DIRS=/etc/xdg/xdg-mate:/etc/xdg > XDG_CURRENT_DESKTOP=MATE > XDG_DATA_DIRS=/usr/share/mate:/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/local/share:/usr/share > XDG_GREETER_DATA_DIR=/var/lib/lightdm-data/ > XDG_RUNTIME_DIR=/run/user/1000 > XDG_SEAT=seat0 > XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0 > XDG_SESSION_DESKTOP=mate > XDG_SESSION_ID=c2 > XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0 > XDG_SESSION_TYPE=x11 > XDG_VTNR=7 > > 2018-08-01 8:15 GMT+02:00 : > > > > > > Thank you. > > I am also happy with how it runs on OpenSuse (with qt components), but I need to make sure I can move the project to other Linux systems. Right now I try it on Mint, but without success so far. > > > > > > Regards, > > > > Bj?rn > > > > > > > On July 31, 2018 at 4:55 PM T Lee Davidson < t.lee.davidson at gmail.com mailto:t.lee.davidson at gmail.com > wrote: > > > > > > > > > It runs fine on my openSUSE system with either of the Qt components manually selected in the IDE. It will not run with either of > > > the GTK components. And, I get NO error messages when running an executable from the command line. > > > > > > [System] > > > Gambas=3.11.90 584a7b6ba (master) > > > OperatingSystem=Linux > > > Kernel=4.4.140-62-default > > > Architecture=x86_64 > > > Distribution=openSUSE Leap 42.3 > > > Desktop=KDE5 > > > Theme=QtCurve > > > Language=en_US.UTF-8 > > > Memory=3951M > > > > > > [Libraries] > > > Cairo=/usr/lib64/libcairo.so. 2.11502.0 > > > Curl=/usr/lib64/libcurl.so.4. 3.0 > > > DBus=/lib64/libdbus-1.so.3.8. 14 > > > GStreamer=/usr/lib64/ libgstreamer-0.10.so.0.30.0 > > > GStreamer=/usr/lib64/ libgstreamer-1.0.so.0.803.0 > > > GTK+2=/usr/lib64/libgtk-x11-2. 0.so.0.2400.31 > > > GTK+3=/usr/lib64/libgtk-3.so. 0.2000.10 > > > OpenGL=/usr/lib64/libGL.so.1. 2.0 > > > Poppler=/usr/lib64/libpoppler. so.60.0.0 > > > QT4=/usr/lib64/libQtCore.so.4. 8.7 > > > QT5=/usr/lib64/libQt5Core.so. 5.6.2 > > > SDL=/usr/lib64/http://libSDL-1.2.so . 0.11.4 > > > SQLite=/usr/lib64/libsqlite3. so.0.8.6 > > > > > > [Environment] > > > [snip] > > > GB_GUI=gb.qt5 > > > [snip] > > > GTK2_RC_FILES=/etc/gtk-2.0/ gtkrc:/.gtkrc-2.0 > > > GTK_IM_MODULE=cedilla > > > GTK_MODULES=canberra-gtk- module > > > [snip] > > > KDE_FULL_SESSION=true > > > KDE_SESSION_UID=1000 > > > KDE_SESSION_VERSION=5 > > > [snip] > > > QT_AUTO_SCREEN_SCALE_FACTOR=0 > > > QT_IM_MODULE=xim > > > QT_IM_SWITCHER=imsw-multi > > > QT_SYSTEM_DIR=/usr/share/ desktop-data > > > [snip] > > > > > > ___ > > > Lee > > > > > > > > > On 07/30/2018 04:20 PM, bkv at mailbox.org mailto:bkv at mailbox.org wrote: > > > > Hi > > > > I can only make it run with GB_GUI=gb.qt4. That is in the Gambas developement environment. > > > > If I try to make an exeutable adn run it I get these messages: > > > > > > > > (Ladelogg:3815): GLib-GObject-WARNING **: invalid (NULL) pointer instance > > > > (Ladelogg:3815): GLib-GObject-CRITICAL **: g_signal_connect_data: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed > > > > > > > > I have attached my project. I am glad inf someone would take a loHi > > > > I can only make it run with GB_GUI=gb.qt4. That is in the Gambas developement environment. > > > > If I try to make an exeutable adn run it I get these messages: > > > > > > > > (Ladelogg:3815): GLib-GObject-WARNING **: invalid (NULL) pointer instance > > > > (Ladelogg:3815): GLib-GObject-CRITICAL **: g_signal_connect_data: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed > > > > > > > > I have attached my project. I am glad inf someone would take a look. > > > > > > > > > > > > -Bj?rn > > > > > > > > > > > > > > > >> On July 30, 2018 at 6:36 PM T Lee Davidson < t.lee.davidson at gmail.com mailto:t.lee.davidson at gmail.com > wrote: > > > >> > > > >> > > > >> I notice in your System Information that the GB_GUI environment variable is set to gb.qt5 ("GB_GUI=gb.qt5"). Perhaps try setting > > > >> that to one of the GTK components (ie. gb.gtk or gb.gtk3). Or, just unset it at the command line (`unset GB_GUI`). > > > >> > > > >> > > > >> -- > > > >> Lee > > > >> > > > >> > > > >> On 07/29/2018 02:26 PM, bkv at mailbox.org mailto:bkv at mailbox.org wrote: > > > >>> Hi > > > >>> I went to Debug -> GUI Component and selected QT4. I can now run the program in the Gambas developement environment. > > > >>> > > > >>> But I guess it would be better not to use QT4 on Mint, but rather the GUI system used by mint itself. How can I achieve that? > > > >>> > > > >>> -Bj?rn > > > >>> > > > >>> > > > [snip] > > > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bm.530502 at gmail.com Wed Aug 1 14:28:44 2018 From: bm.530502 at gmail.com (M Be) Date: Wed, 1 Aug 2018 14:28:44 +0200 Subject: [Gambas-user] Moving from OpenSuse to Mint In-Reply-To: <655527528.7984.1533125317483@office.mailbox.org> References: <1512367262.17333.1532879050578@office.mailbox.org> <20180729155433.GC17634@highrise.localdomain> <1719584772.19835.1532882568948@office.mailbox.org> <1364346868.20242.1532888800300@office.mailbox.org> <360099322.6561.1532982029194@office.mailbox.org> <1183911545.7376.1533104128354@office.mailbox.org> <655527528.7984.1533125317483@office.mailbox.org> Message-ID: Hi Bj?rn, here once again (see my previous mail) Distribution=Linux Mint 18.3 Sylvia Desktop=MATE Regards Ingo schrieb am Mi. 1. Aug. 2018 um 14:08: > Great, > > which desktop do you have? I have Mate on my Mint. I'll compare Your > Project file to mine tonight. > > > Regards, > > Bj?rn > > On August 1, 2018 at 1:00 PM M Be wrote: > > I can run your project on Mint: > Best regards > Ingo > > [System] > Gambas=3.11.2 > OperatingSystem=Linux > Kernel=4.10.0-38-generic > Architecture=x86 > Distribution=Linux Mint 18.3 Sylvia > Desktop=MATE > Theme=Gtk > Language=de_DE.UTF-8 > Memory=2459M > > [Libraries] > Cairo=libcairo.so.2.11400.6 > Curl=libcurl.so.4.4.0 > DBus=libdbus-1.so.3.14.6 > GStreamer=libgstreamer-0.10.so.0.30.0 > GStreamer=libgstreamer-1.0.so.0.803.0 > GTK+2=libgtk-x11-2.0.so.0.2400.30 > GTK+3=libgtk-3.so.0.1800.9 > OpenGL=libGL.so.1.2.0 > Poppler=libpoppler.so.58.0.0 > QT4=libQtCore.so.4.8.7 > QT5=libQt5Core.so.5.5.1 > SDL=libSDL-1.2.so.0.11.4 > SQLite=libsqlite3.so.0.8.6 > > [Environment] > CLUTTER_BACKEND=x11 > COMPIZ_CONFIG_PROFILE=mate > DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-hG1oTZ2XOS,guid=c3d3ea032a020bec1437737d5b61914f > > DEFAULTS_PATH=/usr/share/gconf/mate.default.path > DESKTOP_SESSION=mate > DISPLAY=:0 > GB_GUI=gb.qt4 > GDMSESSION=mate > GDM_LANG=de_DE > GTK_MODULES=gail:atk-bridge > GTK_OVERLAY_SCROLLING=0 > HOME= > LANG=de_DE.UTF-8 > LANGUAGE=de_DE > LOGNAME= > MANDATORY_PATH=/usr/share/gconf/mate.mandatory.path > MATE_DESKTOP_SESSION_ID=this-is-deprecated > PATH=/bin:/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games > > PWD= > QT_ACCESSIBILITY=1 > QT_LINUX_ACCESSIBILITY_ALWAYS_ON=1 > QT_STYLE_OVERRIDE=gtk > SESSION_MANAGER=local/:@/tmp/.ICE-unix/1979,unix/:/tmp/.ICE-unix/1979 > > SHELL=/bin/bash > SHLVL=0 > SSH_AGENT_PID=2112 > SSH_AUTH_SOCK=/run/user/1000/keyring/ssh > TZ=:/etc/localtime > USER= > XAUTHORITY=/.Xauthority > XDG_CONFIG_DIRS=/etc/xdg/xdg-mate:/etc/xdg > XDG_CURRENT_DESKTOP=MATE > XDG_DATA_DIRS=/usr/share/mate:/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/local/share:/usr/share > > XDG_GREETER_DATA_DIR=/var/lib/lightdm-data/ > XDG_RUNTIME_DIR=/run/user/1000 > XDG_SEAT=seat0 > XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0 > XDG_SESSION_DESKTOP=mate > XDG_SESSION_ID=c2 > XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0 > XDG_SESSION_TYPE=x11 > XDG_VTNR=7 > > 2018-08-01 8:15 GMT+02:00 : > > > > Thank you. > I am also happy with how it runs on OpenSuse (with qt components), but I > need to make sure I can move the project to other Linux systems. Right now > I try it on Mint, but without success so far. > > > Regards, > > Bj?rn > > > > On July 31, 2018 at 4:55 PM T Lee Davidson < t.lee.davidson at gmail.com> > wrote: > > > > > > It runs fine on my openSUSE system with either of the Qt components > manually selected in the IDE. It will not run with either of > > the GTK components. And, I get NO error messages when running an > executable from the command line. > > > > [System] > > Gambas=3.11.90 584a7b6ba (master) > > OperatingSystem=Linux > > Kernel=4.4.140-62-default > > Architecture=x86_64 > > Distribution=openSUSE Leap 42.3 > > Desktop=KDE5 > > Theme=QtCurve > > Language=en_US.UTF-8 > > Memory=3951M > > > > [Libraries] > > Cairo=/usr/lib64/libcairo.so. 2.11502.0 > > Curl=/usr/lib64/libcurl.so.4. 3.0 > > DBus=/lib64/libdbus-1.so.3.8. 14 > > GStreamer=/usr/lib64/ libgstreamer-0.10.so.0.30.0 > > GStreamer=/usr/lib64/ libgstreamer-1.0.so.0.803.0 > > GTK+2=/usr/lib64/libgtk-x11-2. 0.so.0.2400.31 > > GTK+3=/usr/lib64/libgtk-3.so. 0.2000.10 > > OpenGL=/usr/lib64/libGL.so.1. 2.0 > > Poppler=/usr/lib64/libpoppler. so.60.0.0 > > QT4=/usr/lib64/libQtCore.so.4. 8.7 > > QT5=/usr/lib64/libQt5Core.so. 5.6.2 > > SDL=/usr/lib64/ libSDL-1.2.so. 0.11.4 > > SQLite=/usr/lib64/libsqlite3. so.0.8.6 > > > > [Environment] > > [snip] > > GB_GUI=gb.qt5 > > [snip] > > GTK2_RC_FILES=/etc/gtk-2.0/ gtkrc:/.gtkrc-2.0 > > GTK_IM_MODULE=cedilla > > GTK_MODULES=canberra-gtk- module > > [snip] > > KDE_FULL_SESSION=true > > KDE_SESSION_UID=1000 > > KDE_SESSION_VERSION=5 > > [snip] > > QT_AUTO_SCREEN_SCALE_FACTOR=0 > > QT_IM_MODULE=xim > > QT_IM_SWITCHER=imsw-multi > > QT_SYSTEM_DIR=/usr/share/ desktop-data > > [snip] > > > > ___ > > Lee > > > > > > On 07/30/2018 04:20 PM, bkv at mailbox.org wrote: > > > Hi > > > I can only make it run with GB_GUI=gb.qt4. That is in the Gambas > developement environment. > > > If I try to make an exeutable adn run it I get these messages: > > > > > > (Ladelogg:3815): GLib-GObject-WARNING **: invalid (NULL) pointer > instance > > > (Ladelogg:3815): GLib-GObject-CRITICAL **: g_signal_connect_data: > assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed > > > > > > I have attached my project. I am glad inf someone would take a loHi > > > I can only make it run with GB_GUI=gb.qt4. That is in the Gambas > developement environment. > > > If I try to make an exeutable adn run it I get these messages: > > > > > > (Ladelogg:3815): GLib-GObject-WARNING **: invalid (NULL) pointer > instance > > > (Ladelogg:3815): GLib-GObject-CRITICAL **: g_signal_connect_data: > assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed > > > > > > I have attached my project. I am glad inf someone would take a look. > > > > > > > > > -Bj?rn > > > > > > > > > > > >> On July 30, 2018 at 6:36 PM T Lee Davidson < t.lee.davidson at gmail.com> > wrote: > > >> > > >> > > >> I notice in your System Information that the GB_GUI environment > variable is set to gb.qt5 ("GB_GUI=gb.qt5"). Perhaps try setting > > >> that to one of the GTK components (ie. gb.gtk or gb.gtk3). Or, just > unset it at the command line (`unset GB_GUI`). > > >> > > >> > > >> -- > > >> Lee > > >> > > >> > > >> On 07/29/2018 02:26 PM, bkv at mailbox.org wrote: > > >>> Hi > > >>> I went to Debug -> GUI Component and selected QT4. I can now run the > program in the Gambas developement environment. > > >>> > > >>> But I guess it would be better not to use QT4 on Mint, but rather > the GUI system used by mint itself. How can I achieve that? > > >>> > > >>> -Bj?rn > > >>> > > >>> > > [snip] > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net > ]---- > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mckaygerhard at gmail.com Wed Aug 1 15:46:42 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Wed, 1 Aug 2018 09:46:42 -0400 Subject: [Gambas-user] help with inherits using serial port In-Reply-To: References: Message-ID: i feel that i are the only that ask for real problems or my questions are outside of this world maybe i try inherits the common operations inside each class and determine class type when use the main class Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2018-07-31 17:15 GMT-04:00 PICCORO McKAY Lenz : > hello, today I have another case, I want to implement inheritance to the > common code with the serial port printing. > > What I want to do is to have the procedures to open, close and write to > the serial port in one class, and two others that inherit these functions, > then one of the inheritors writes "A" to the port while the other writes > "B" to the port but the writing functions should be called the same... > > i attached project with minimal comments hope someone will help with this! > > the firts problem its that i received "'canot write "stream are closed" > why? > > the second problem its that i cannot got any stream event when i do not > have stream errors > > Lenz McKAY Gerardo (PICCORO) > http://qgqlochekone.blogspot.com > -------------- next part -------------- An HTML attachment was scrubbed... URL: From leonardo.a.salazar at gmail.com Wed Aug 1 16:18:36 2018 From: leonardo.a.salazar at gmail.com (Leonardo Salazar) Date: Wed, 1 Aug 2018 10:18:36 -0400 Subject: [Gambas-user] help with inherits using serial port In-Reply-To: References: Message-ID: I liked the idea too, also work in java but in gambas the subject of the inheritance is not very clear to me. 2018-08-01 9:46 GMT-04:00 PICCORO McKAY Lenz : > i feel that i are the only that ask for real problems or my questions are > outside of this world > > maybe i try inherits the common operations inside each class and determine > class type when use the main class > > Lenz McKAY Gerardo (PICCORO) > http://qgqlochekone.blogspot.com > > 2018-07-31 17:15 GMT-04:00 PICCORO McKAY Lenz : > >> hello, today I have another case, I want to implement inheritance to the >> common code with the serial port printing. >> >> What I want to do is to have the procedures to open, close and write to >> the serial port in one class, and two others that inherit these functions, >> then one of the inheritors writes "A" to the port while the other writes >> "B" to the port but the writing functions should be called the same... >> >> i attached project with minimal comments hope someone will help with this! >> >> the firts problem its that i received "'canot write "stream are closed" >> why? >> >> the second problem its that i cannot got any stream event when i do not >> have stream errors >> >> Lenz McKAY Gerardo (PICCORO) >> http://qgqlochekone.blogspot.com >> > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jussi.lahtinen at gmail.com Wed Aug 1 16:19:22 2018 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Wed, 1 Aug 2018 17:19:22 +0300 Subject: [Gambas-user] help with inherits using serial port In-Reply-To: References: Message-ID: Not sure about that, but you certainly are the only one who do not know how to use spell checker or care enough to write understandable English. At least one problem in your code is because you close the stream and then try to read from it. The IDE has feature to run your project step by step. It's easy way to see the problem. Jussi On Wed, Aug 1, 2018 at 4:46 PM, PICCORO McKAY Lenz wrote: > i feel that i are the only that ask for real problems or my questions are > outside of this world > > maybe i try inherits the common operations inside each class and determine > class type when use the main class > > Lenz McKAY Gerardo (PICCORO) > http://qgqlochekone.blogspot.com > > 2018-07-31 17:15 GMT-04:00 PICCORO McKAY Lenz : > >> hello, today I have another case, I want to implement inheritance to the >> common code with the serial port printing. >> >> What I want to do is to have the procedures to open, close and write to >> the serial port in one class, and two others that inherit these functions, >> then one of the inheritors writes "A" to the port while the other writes >> "B" to the port but the writing functions should be called the same... >> >> i attached project with minimal comments hope someone will help with this! >> >> the firts problem its that i received "'canot write "stream are closed" >> why? >> >> the second problem its that i cannot got any stream event when i do not >> have stream errors >> >> Lenz McKAY Gerardo (PICCORO) >> http://qgqlochekone.blogspot.com >> > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mckaygerhard at gmail.com Wed Aug 1 16:45:17 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Wed, 1 Aug 2018 10:45:17 -0400 Subject: [Gambas-user] help with inherits using serial port In-Reply-To: References: Message-ID: The problem is that you didn't read the context of the first email and the first email is translated with the "wonderful deepl translator" and by the answer from you its very bad them Explain that the main module is where I call the functions (I see the translator didn't place it very well), and once of thems are the close port ("$printdev.cp") I was must to read the English part before sent it, it is very badly translated, EVEN IF I REMOVE THE LINE THAT CLOSES THE PORT THE PRINT LINE DOES NOT OUT NOTHING, you can notice that it doesn't write anything when I try to print. I noted that many of the gambas forums are very dead, and only the gambas german book are alive, gambas resources are very limited, and i must finish hurry my requeriments so from any of you must understand when a people has some pression, i note when herbert said that want to swicht to python and i understand their problem.. it's the obvious result due the very limited resources.. i like to continue work with gambas but please dont make "too easy to do" (i pretentd to are sarcastid) Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2018-08-01 10:19 GMT-04:00 Jussi Lahtinen : > Not sure about that, but you certainly are the only one who do not know > how to use spell checker or care enough to write understandable English. > At least one problem in your code is because you close the stream and then > try to read from it. > The IDE has feature to run your project step by step. It's easy way to see > the problem. > > > Jussi > > On Wed, Aug 1, 2018 at 4:46 PM, PICCORO McKAY Lenz > wrote: > >> i feel that i are the only that ask for real problems or my questions are >> outside of this world >> >> maybe i try inherits the common operations inside each class and >> determine class type when use the main class >> >> Lenz McKAY Gerardo (PICCORO) >> http://qgqlochekone.blogspot.com >> >> 2018-07-31 17:15 GMT-04:00 PICCORO McKAY Lenz : >> >>> hello, today I have another case, I want to implement inheritance to the >>> common code with the serial port printing. >>> >>> What I want to do is to have the procedures to open, close and write to >>> the serial port in one class, and two others that inherit these functions, >>> then one of the inheritors writes "A" to the port while the other writes >>> "B" to the port but the writing functions should be called the same... >>> >>> i attached project with minimal comments hope someone will help with >>> this! >>> >>> the firts problem its that i received "'canot write "stream are closed" >>> why? >>> >>> the second problem its that i cannot got any stream event when i do not >>> have stream errors >>> >>> Lenz McKAY Gerardo (PICCORO) >>> http://qgqlochekone.blogspot.com >>> >> >> >> >> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >> >> > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From taboege at gmail.com Wed Aug 1 18:06:48 2018 From: taboege at gmail.com (Tobias Boege) Date: Wed, 1 Aug 2018 18:06:48 +0200 Subject: [Gambas-user] help with inherits using serial port In-Reply-To: References: Message-ID: <20180801160648.GE17634@highrise.localdomain> On Wed, 01 Aug 2018, PICCORO McKAY Lenz wrote: > i feel that i are the only that ask for real problems or my questions are > outside of this world > That's it, I guess, kind of. I can only speak for myself of course, but I got the impression from some threads in recent months that you don't really know what you are doing in Gambas on a fundamental and architectural level and then it takes more elaborate answers to be helpful. In addition to that, your questions take me, personally, more effort than others to get behind before I even think of answering, so I mostly ignore them altogether. Instead of posting a real-world question with your awkward real-world code, spend some time to distill the essence of what your problem is and ask a more generic question, or break it into multiple questions. On the upside, your English wasn't a problem for me this time. > 2018-07-31 17:15 GMT-04:00 PICCORO McKAY Lenz : > > > hello, today I have another case, I want to implement inheritance to the > > common code with the serial port printing. > > > > What I want to do is to have the procedures to open, close and write to > > the serial port in one class, and two others that inherit these functions, > > then one of the inheritors writes "A" to the port while the other writes > > "B" to the port but the writing functions should be called the same... > > This sounds like a perfectly good plan. Inheritance does exactly that. If you want to confirm that it works, write simple classes first, with your desired methods, derive a few classes, override methods and most importantly have everything just print text, like in the attached example. That way, you don't have the complexity of a SerialPort to deal with just to see if inheritance fits your design. > > i attached project with minimal comments hope someone will help with this! > > > > the firts problem its that i received "'canot write "stream are closed" > > why? > > The opening of the serial port may have failed. Your pringeneric.op() function has this: Try SComm.Open() Catch Print "error device" & Error.Text Since you use Try, the error will be shadowed and you don't get error reporting via Catch, i.e. you won't know if opening failed. That's exactly what Try does: ignore errors. My normal user has no permissions to access /dev/ttyS0 and that error is ignored by your code, leading to another error later. It may be different on your system, but be sure to check it and remove the Try. > > the second problem its that i cannot got any stream event when i do not > > have stream errors > > Well, try again once you're sure that the port opens at all. Then, the next issue that I can spot is that you declare the event name "SComm" but don't use it at all to intercept events. No wonder you don't get any. I also see the question > Print printodev.dataread ' why here the inhereits does not prin the printer buffer? in the code. The function that reads data is this wonderous figment: Public Sub rp() Dim buffers As String = "" Dim timedout As Boolean = False Dim timetout As Long timetout = Val(Format$(Now, "nnss")) Do Sleep 0.1 Read #SComm, buffers, Lof(SComm) Sleep 0.1 dataread = dataread & buffers timedout = ((Val(Format$(Now, "nnss")) - timetout) > 0.5) Loop Until (timedout) End This is not how you read something from a stream and it is certainly not how you do a timeout. What happens when you enter this routine at 17:59:59? Then timetout will be 5959, but a second later your timestamp stand-in will be 0000 in the computation of time*d*out. You have just created an infinite loop because there is no value of Format$(..., "nnss") that you can subtract 5959 from to give you a positive value -- except maybe leap seconds, which I guess are sometimes displayed as "59:60". BTW, why do you compare to 0.5 specifically (because you subtract integers, you'll always get a clean integer, no need for fractions)? You can use DateDiff() to compare the value of Now() at different times and even save the conversion to Integer via String: start = Now Do Wait 0.1 Read #SComm, buffers, Lof(SComm) dataread &= buffers Loop Until DateDiff(start, Now, gb.Millisecond) > 500 And even then, this is polling. I'm not even sure how Read behaves when Lof is zero but reading would block. You *might* want to make SComm.Blocking = False if you need to poll, but if your device and program design don't require synchronous data processing, I would prefer to use the SComm_Read event instead, kind of bouncing back to your previous question. Regards, Tobi [1] https://lists.gambas-basic.org/pipermail/user/2018-July/064864.html PS: You didn't ask for this, but it caught my attention: > Private printodev As Variant in printermanager. The Variant is too generic. A Variant can hold anything, so it works, but it won't tell anyone reading the code that printodev is actually an instance of printobixolo or printoepson. Luckily, you use inheritance. You can declare printodev to be of the common type that printobixolo and printoepson inherit from: > Private printodev As pringeneric -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From t.lee.davidson at gmail.com Wed Aug 1 18:11:26 2018 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Wed, 1 Aug 2018 12:11:26 -0400 Subject: [Gambas-user] help with inherits using serial port In-Reply-To: References: Message-ID: <8db1f699-f7a2-ab5f-221f-e531b6d8a17f@gmail.com> On 08/01/2018 10:45 AM, PICCORO McKAY Lenz wrote: > The problem is that you didn't read the context of the first email and the first email is translated with the "wonderful deepl > translator" and by the answer from you its very bad them I disagree that Jussi's response to you is very bad. Jussi reiterated a valid issue that has already been pointed out to you several times. Ves, esto es con lo que consigues quejarte de tu texto trnslat con erores astillados. (https://www.deepl.com/translator#en/es/You%20see%20ths%20is%20whit%20you%20get%20whin%20you%20trnslat%20text%20with%20splling%20erors.) [snip] > > I was must to read the English part before sent it, it is very badly translated, EVEN IF I REMOVE THE LINE THAT CLOSES THE PORT > THE PRINT LINE DOES NOT OUT NOTHING, you can notice that it doesn't write anything when I try to print. The close function was called after the write function. So, removing the line that closes the port would have NO effect on the write function which would have already executed. Perhaps the problem you are having with the write function is because the interpreter does not understand the "#Super" keyword. > I noted that many of the gambas forums are very dead, and only the gambas german book are alive, gambas resources are very > limited, and i must finish hurry my requeriments so from any of you must understand when a people has some pression, i note when > herbert said that want to swicht to python and i understand their problem.. it's the obvious result due the very limited > resources..? i like to continue work with gambas but please dont make "too easy to do" (i pretentd to are sarcastid) Yes, PICCORO, don't make it "too easy" for us to understand what you're saying. ___ Lee > 2018-08-01 10:19 GMT-04:00 Jussi Lahtinen >: > > Not sure about that, but you certainly are the only one who do not know how to use spell checker or care enough to write > understandable English. > At least one problem in your code is because you close the stream and then try to read from it. > The IDE has feature to run your project step by step. It's easy way to see the problem. > > > Jussi > > On Wed, Aug 1, 2018 at 4:46 PM, PICCORO McKAY Lenz > wrote: > > i feel that i are the only that ask for real problems or my questions are outside of this world > > maybe i try inherits the common operations inside each class and determine class type when use the main class > > Lenz McKAY Gerardo (PICCORO) > http://qgqlochekone.blogspot.com > > 2018-07-31 17:15 GMT-04:00 PICCORO McKAY Lenz >: > > hello, today I have another case, I want to implement inheritance to the common code with the serial port printing. > > What I want to do is to have the procedures to open, close and write to the serial port in one class, and two others > that inherit these functions, then one of the inheritors writes "A" to the port while the other writes "B" to the > port but the writing functions should be called the same... > > i attached project with minimal comments hope someone will help with this! > > the firts problem its that i received "'canot write "stream are closed"? why? > > the second problem its that i cannot got any stream event when i do not have stream errors > > Lenz McKAY Gerardo (PICCORO) > http://qgqlochekone.blogspot.com > > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > From taboege at gmail.com Wed Aug 1 18:12:01 2018 From: taboege at gmail.com (Tobias Boege) Date: Wed, 1 Aug 2018 18:12:01 +0200 Subject: [Gambas-user] help with inherits using serial port In-Reply-To: <20180801160648.GE17634@highrise.localdomain> References: <20180801160648.GE17634@highrise.localdomain> Message-ID: <20180801161201.GF17634@highrise.localdomain> On Wed, 01 Aug 2018, Tobias Boege wrote: > [...] like in the attached example [...] -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk -------------- next part -------------- A non-text attachment was scrubbed... Name: inheritest-0.0.1.tar.gz Type: application/gzip Size: 11565 bytes Desc: not available URL: From taboege at gmail.com Wed Aug 1 18:19:23 2018 From: taboege at gmail.com (Tobias Boege) Date: Wed, 1 Aug 2018 18:19:23 +0200 Subject: [Gambas-user] help with inherits using serial port In-Reply-To: References: Message-ID: <20180801161923.GG17634@highrise.localdomain> On Wed, 01 Aug 2018, Leonardo Salazar wrote: > I liked the idea too, also work in java but in gambas the subject of the > inheritance is not very clear to me. > Feel free to ask about what remained unclear after the mandatory reading for this topic: "The Gambas Object Model" [1]. Regards, Tobi [1] http://gambaswiki.org/wiki/doc/object-model -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From t.lee.davidson at gmail.com Wed Aug 1 18:22:07 2018 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Wed, 1 Aug 2018 12:22:07 -0400 Subject: [Gambas-user] help with inherits using serial port In-Reply-To: <20180801160648.GE17634@highrise.localdomain> References: <20180801160648.GE17634@highrise.localdomain> Message-ID: <0a9e011b-8ac9-b2c3-8467-73267bbccba1@gmail.com> Or, if using Try, use "If Error Then" instead of Catch. http://gambaswiki.org/wiki/lang/try ___ Lee On 08/01/2018 12:06 PM, Tobias Boege wrote: > The opening of the serial port may have failed. Your pringeneric.op() > function has this: > > Try SComm.Open() > Catch > Print "error device" & Error.Text > > Since you use Try, the error will be shadowed and you don't get error > reporting via Catch, i.e. you won't know if opening failed. That's exactly > what Try does: ignore errors. My normal user has no permissions to access > /dev/ttyS0 and that error is ignored by your code, leading to another > error later. It may be different on your system, but be sure to check it > and remove the Try. From tmorehen at ajm-software.com Wed Aug 1 18:15:09 2018 From: tmorehen at ajm-software.com (Tony Morehen) Date: Wed, 1 Aug 2018 12:15:09 -0400 Subject: [Gambas-user] help with inherits using serial port In-Reply-To: References: Message-ID: <1fe671fa-2fe3-b60b-e1ca-f8797fc43771@ajm-software.com> 1) Serial ports are almost never used these days so it's likely no one is able to test your code. 2) Your description of what you want to do is very confusing. Please remember that computer translators don't work very well for technical documents. 3) Jussi is right.? You close the port before you read from it.? Of course there's nothing to read. 4) You are getting stream errors, that's what 'cannot write, stream closed' is. 5) Obviously, for stream to be closed, your open failed.? Your program never tests for a successful open. 6) Open does not raise an error because your open code says not to: Try SComm.Open().? With the Try, Catch will never be called. 7) In serial programming, direct reads from tty are best event-driven.? That way you can control the size of the buffer. Oh yes, remember to remove read data from the buffer. On 2018-08-01 10:45 AM, PICCORO McKAY Lenz wrote: > The problem is that you didn't read the context of the first email and > the first email is translated with the "wonderful deepl translator" > and by the answer from you its very bad them > > Explain that the main module is where I call the functions (I see the > translator didn't place it very well), and once of thems are the close > port ("$printdev.cp") > > I was must to read the English part before sent it, it is very badly > translated, EVEN IF I REMOVE THE LINE THAT CLOSES THE PORT THE PRINT > LINE DOES NOT OUT NOTHING, you can notice that it doesn't write > anything when I try to print. > > I noted that many of the gambas forums are very dead, and only the > gambas german book are alive, gambas resources are very limited, and i > must finish hurry my requeriments so from any of you must understand > when a people has some pression, i note when herbert said that want to > swicht to python and i understand their problem.. it's the obvious > result due the very limited resources..? i like to continue work with > gambas but please dont make "too easy to do" (i pretentd to are sarcastid) > > Lenz McKAY Gerardo (PICCORO) > http://qgqlochekone.blogspot.com > > 2018-08-01 10:19 GMT-04:00 Jussi Lahtinen >: > > Not sure about that, but you certainly are the only one who do not > know how to use spell checker or care enough to write > understandable English. > At least one problem in your code is because you close the stream > and then try to read from it. > The IDE has feature to run your project step by step. It's easy > way to see the problem. > > > Jussi > > On Wed, Aug 1, 2018 at 4:46 PM, PICCORO McKAY Lenz > > wrote: > > i feel that i are the only that ask for real problems or my > questions are outside of this world > > maybe i try inherits the common operations inside each class > and determine class type when use the main class > > Lenz McKAY Gerardo (PICCORO) > http://qgqlochekone.blogspot.com > > > 2018-07-31 17:15 GMT-04:00 PICCORO McKAY Lenz > >: > > hello, today I have another case, I want to implement > inheritance to the common code with the serial port printing. > > What I want to do is to have the procedures to open, close > and write to the serial port in one class, and two others > that inherit these functions, then one of the inheritors > writes "A" to the port while the other writes "B" to the > port but the writing functions should be called the same... > > i attached project with minimal comments hope someone will > help with this! > > the firts problem its that i received "'canot write > "stream are closed"? why? > > the second problem its that i cannot got any stream event > when i do not have stream errors > > Lenz McKAY Gerardo (PICCORO) > http://qgqlochekone.blogspot.com > > > > > > ----[ Gambas mailing-list is hosted by > https://www.hostsharing.net ]---- > > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net > ]---- > > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- -------------- next part -------------- An HTML attachment was scrubbed... URL: From mckaygerhard at gmail.com Wed Aug 1 19:21:35 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Wed, 1 Aug 2018 13:21:35 -0400 Subject: [Gambas-user] help with inherits using serial port In-Reply-To: <20180801161201.GF17634@highrise.localdomain> References: <20180801160648.GE17634@highrise.localdomain> <20180801161201.GF17634@highrise.localdomain> Message-ID: hi tobias,thanks and but I am confused, aparto of that i not clear if i dismayed or impressive with your answer, I have not slept for several hours now between finding what I do wrong and the daily work... and before answering each line of your previous email, I need to add for you and for everyone else something I could se and found: I removed the $prindev.rp line and included it right after inside the funtion of reading the port inside each class that inherits, and I got some answers just in a few moments, this in addition what you say about using datediff puts part of the problem in alcaratorias, but I'll explain why I don't want to marry with native dates in the following lines ... let's anwers for all only the important mail and dont worry i'm happy that more than one answwer inclusive for even if it was to claim something: 2018-08-01 12:06 GMT-04:00 Tobias Boege : That's it, I guess, kind of. I can only speak for myself of course, but > I got the impression from some threads in recent months that you don't > really know what you are doing in Gambas on a fundamental and architectural > level and then it takes more elaborate answers to be helpful. In addition > now i dissasembly each part of the ideas and program or future programs in little modules to test and as you noted with json, serial port print, and others... after work i paste code in main project so i try to emulate the JAVAEE methods to develop in a languaje that are more identical to pascal or C of course guys libraries it's the right answer to, but unfortunatelly implies absolute paths > to that, your questions take me, personally, more effort than others to > get behind before I even think of answering, so I mostly ignore them > altogether. Instead of posting a real-world question with your awkward > i feel so honour with that thanks! tobias, so my questions are great pieces of codes and ideas that challenge not only minds, also priograming skills ;-) > questions. On the upside, your English wasn't a problem for me this time. > ironic, the first email was the lasted translated usin deepl translator but also my fault not reading before sending.. and yes i always write in a hurry, i not have stable internet connection so can fail for hours/days the problem of you guys and current gnu/linux workd its assumed that all people have 24/7 internet resource.. i noted that mayor countries that not use gnu/linux software are those where not are enough resources.. now again ironic!? not just are logic! > This sounds like a perfectly good plan. Inheritance does exactly that. > If you want to confirm that it works, write simple classes first, > with your desired methods, derive a few classes, override methods and > most importantly have everything just print text, like in the attached > example. That way, you don't have the complexity of a SerialPort to > deal with just to see if inheritance fits your design. > i try to paste as example and explain as most posible inclusive put some at the gambas wiki so more other novice uses can avoid asking so much and coplex questions come event.. so in that way, we can make more complex projects in conjuntion.. that's the other part of the idea > The opening of the serial port may have failed. Your pringeneric.op() > function has this: > > Try SComm.Open() > Catch > Print "error device" & Error.Text > > Since you use Try, the error will be shadowed and you don't get error > so now i noted that, but not know that, this are in some place of the wiki? i think it's a important note in that case i must use/raised the exception righ? > reporting via Catch, i.e. you won't know if opening failed. That's exactly > what Try does: ignore errors. My normal user has no permissions to access > /dev/ttyS0 and that error is ignored by your code, leading to another > yes was one of the problem yesterday, today her enoted few hours ago in the other machine > error later. It may be different on your system, but be sure to check it > and remove the Try. > as i said what about raised the error using the Error.Propagate ? and also i must point again that that note about *catch and eror shadow must be linked to Error.Propagate in the wiki* > Well, try again once you're sure that the port opens at all. Then, the > today at the morning > next issue that I can spot is that you declare the event name "SComm" but > don't use it at all to intercept events. No wonder you don't get any. > *please that parti, i need more clear ideas of them, but the english language are a barrier* *a kind of more "example for dummies" can be in that point?* > I also see the question > > Print printodev.dataread ' why here the inhereits does not prin the > printer buffer? > as i wrote in this mail at begining, i put the reading procedures rules just after write inside each class and got something aparto fo the note about datediff from you this angree me, due seem i cannot read later but as you also said, i not use the event's really! so need help about that ,but need "exampel for dummy" about the date i'll abort in new mail, so continues about the variable type, this are notable: > PS: You didn't ask for this, but it caught my attention: > > > Private printodev As Variant > > in printermanager. The Variant is too generic. A Variant can hold anything, > so it works, but it won't tell anyone reading the code that printodev is > actually an instance of printobixolo or printoepson. Luckily, you use > inheritance. You can declare printodev to be of the common type that > printobixolo and printoepson inherit from: > > > Private printodev As pringeneric > doe sdo not work, seems if you see the new constructor, got a runtime error about type of class so that's why the variant and i noted so you run the code in your mind, wow! > > -- > "There's an old saying: Don't change anything... ever!" -- Mr. Monk > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mckaygerhard at gmail.com Wed Aug 1 20:37:19 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Wed, 1 Aug 2018 14:37:19 -0400 Subject: [Gambas-user] using try when access devices shadow the errors Message-ID: in other email from tobias, mentioned that Catch may shadowed the errors if i used devices.. '' generic open port procedure Try SComm.Close() SComm = New SerialPort As "SComm" SComm.PortName = puerto SComm.Speed = 9600 SComm.Parity = 0 SComm.DataBits = 8 SComm.StopBits = 1 SComm.FlowControl = 2 Try SComm.Open() Catch Print "error device" & Error.Text exactly if "Try" wil ignore errors, so how to property propagate error to up class in inherits? a good question for good desing, so we cannot always write tode for school! Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From taboege at gmail.com Wed Aug 1 21:10:00 2018 From: taboege at gmail.com (Tobias Boege) Date: Wed, 1 Aug 2018 21:10:00 +0200 Subject: [Gambas-user] using try when access devices shadow the errors In-Reply-To: References: Message-ID: <20180801191000.GH17634@highrise.localdomain> On Wed, 01 Aug 2018, PICCORO McKAY Lenz wrote: > in other email from tobias, mentioned that Catch may shadowed the errors > if i used devices.. > That's twisting what I said in many directions. It has nothing to do with devices. > '' generic open port procedure > Try SComm.Close() > SComm = New SerialPort As "SComm" > SComm.PortName = puerto > SComm.Speed = 9600 > SComm.Parity = 0 > SComm.DataBits = 8 > SComm.StopBits = 1 > SComm.FlowControl = 2 > Try SComm.Open() > Catch > Print "error device" & Error.Text > > exactly if "Try" wil ignore errors, so how to property propagate error to > up class in inherits? > > a good question for good desing, so we cannot always write tode for school! > If you use Try SComm.Open() then any error raised by the Open call is ignored. Normally, an error aborts the Gambas program, like throwing an exception, but you cancel that when you use Try. As was mentioned in the other thread, even when you use Try, you can still find out if an error happened. The interpreter will set the the keyword Error to True in Boolean context when an error happened: Try SComm.Open() If Error Then ' react to the error here Endif Now this can be a bit confusing because the error keyword in Gambas means three things, even at the top level: * It is the name of a class Error in the gb component, where more information about the last error that occured is stored, * It is a printing instruction like Print, but instead of standard output, it prints to standard error, * The last meaning is the one that is relevant to the code above: it is True if and only if the last Try statement detected an error. The first is documented here [1], the latter two here [2]. Now to your question: if you want to propagate an error, simply don't catch it, neither with Try nor Catch. Gambas will propagate an error that happens in a function automatically to the calling function, and if that doesn't handle it, the error is forwarded to the next caller and so forth. This chain stops once any function handles the error, either by having the function call that leads to the error prefixed by Try or by having a Catch block. On the other hand, if you arrive at the outmost function on the call stack, and no function bothers handling the error, the interpreter will look for the Static Public Sub Application_Error [3] in the startup class of your project. This is a global "catch all" event handler that you can use to maybe save important work. If an error propagates to the outmost scope, then the interpreter will display an error message and abort your program. Something more advanced: you can catch and rethrow errors in Gambas using Error.Propagate(): Dim iTries As Integer = 5 Do Try SComm.Open() Dec iTries While Error and iTries > 0 If Error Then Error.Propagate() This will try to connect five times (without changing any parameter) and after the fifth failure, it will just take the error produced by the Open() method and forward it. This is a bit of a silly example for a serial port, but the idea is that you can catch an error using Try, then you attempt to recover from the error in a way that fits your problem, and if that also doesn't succeed, you propagate the error to your caller. The Try method is good if you have a chance of recovering from the error inside the function itself. On the other hand, the Catch block [4] does not let you resume execution of your function: when an error happens, the interpreter sends you straight into the Catch block, which is executed and the "error flag" is cleared. Once you went through the Catch block, the function returns normally and the error is forgotten, not propagated, because it is assumed that you used the Catch block to handle it. The Catch block would be more useful in a function which expects its callees to fail sometimes and in that case abort the mission altogether, but without crashing the whole process. And finally, don't forget the Finally block [5]. It can occur after a Catch block in every function and the code in there is executed even after the Catch block in case of error, so immediately before the function returns, *and* it is also executed when no error happens, immediately before the function returns. This is a great way to free temporary memory when you are working with a C library in your function or to otherwise clean up resources your function uses, like database connections, to avoid memory leaks, in case one of your callers does handle the error and your program keeps running. Notice that all I talked about involved the words "caller", "callee" and possibly "call stack". Error handling in Gambas (and probably everywhere else) goes along the dynamic scope. You can catch an error which happens in a function only if you are that function or if you called it (or called a function that called it, and so on). What you can *not* do is propagate an error from one class into another class you inherit from. So, in the context of that other thread you mentioned, if you have two classes GenericPrinter and EpsonPrinter and you call $hEpson.Write() then it will dispatch to the specific Write method of the EpsonPrinter object. If an error happens in there, you can *not* propagate and handle it inside the GenericPrinter.Write method. If you call $hEpson.Open() (for which EpsonPrinter has no special version, so it dispatches to the generic Open method of GenericPrinter), and an error occurs there, then the code in the GenericPrinter will have to handle the error and even though you have an EpsonPrinter object there, the EpsonPrinter class is not in charge of handling the error, as you are executing a method defined in GenericPrinter. Regards, Tobi [1] http://gambaswiki.org/wiki/comp/gb/error [2] http://gambaswiki.org/wiki/lang/error [3] http://gambaswiki.org/wiki/comp/gb/application [4] http://gambaswiki.org/wiki/lang/catch [5] http://gambaswiki.org/wiki/lang/finally -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From jussi.lahtinen at gmail.com Wed Aug 1 22:30:38 2018 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Wed, 1 Aug 2018 23:30:38 +0300 Subject: [Gambas-user] JIT Crash Message-ID: Run the attached project. Jussi -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: GambasTestercmd-0.10.1.tar.gz Type: application/gzip Size: 26236 bytes Desc: not available URL: From mckaygerhard at gmail.com Wed Aug 1 22:32:56 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Wed, 1 Aug 2018 16:32:56 -0400 Subject: [Gambas-user] using try when access devices shadow the errors In-Reply-To: <20180801191000.GH17634@highrise.localdomain> References: <20180801191000.GH17634@highrise.localdomain> Message-ID: 2018-08-01 15:10 GMT-04:00 Tobias Boege : > Now this can be a bit confusing because the error keyword in Gambas means > three things, even at the top level: > * It is the name of a class Error in the gb component, where more > information about the last error that occured is stored, > http://gambaswiki.org/wiki/comp/gb/error > * It is a printing instruction like Print, but instead of standard > output, > it prints to standard error, > * The last meaning is the one that is relevant to the code above: > it is True if and only if the last Try statement detected an error. > http://gambaswiki.org/wiki/lang/error > because the error keyword in Gambas means > three things > ok two thinks here! first in the other mail my point was tha by example> "shadowed by the try.." in the wiki there's no not4es about that, causing very hard waste of time second the wiki must point that important difference about ERROR keyword > interpreter sends you straight into the Catch block, which is executed > and the "error flag" is cleared. Once you went through the Catch block, this it's other important information that does are not in the wiki.. and produce a waste of time when novice like me does not knowed! > Now to your question: if you want to propagate an error, simply don't > catch it, neither with Try nor Catch. Gambas will propagate an error > if i made that, ide stop in that instruction! progams does not continue! > that happens in a function automatically to the calling function, and > if that doesn't handle it, the error is forwarded to the next caller > in the other mail i mention the usage of Error.propagate.. but so why try-catch does not handle it as many other languages? On the other hand, if you arrive at the outmost function on the call stack, > and no function bothers handling the error, the interpreter will look for > the Static Public Sub Application_Error [3] in the startup class of your > project. This is a global "catch all" event handler that you can use to > maybe save important work. > umm it does not are so usefull for me, due my programs must run also in debian wheeze and jessie gambas version , wiki said that are only since 3.5 > Something more advanced: you can catch and rethrow errors in Gambas > using Error.Propagate(): > > Dim iTries As Integer = 5 > > Do > Try SComm.Open() > Dec iTries > While Error and iTries > 0 > If Error Then Error.Propagate() > > This will try to connect five times (without changing any parameter) and > after the fifth failure, it will just take the error produced by the > Open() method and forward it. > like it! but without usage of catch? ? ? > This is a bit of a silly example for a serial port, but the idea is that > you can catch an error using Try, then you attempt to recover from the > error in a way that fits your problem, and if that also doesn't succeed, > you propagate the error to your caller. > > The Try method is good if you have a chance of recovering from the error > inside the function itself. On the other hand, the Catch block [4] does > not let you resume execution of your function: when an error happens, the > interpreter sends you straight into the Catch block, which is executed > and the "error flag" is cleared. Once you went through the Catch block, > this it's other important information that does are not in the wiki > the function returns normally and the error is forgotten, not propagated, > because it is assumed that you used the Catch block to handle it. > The Catch block would be more useful in a function which expects its > callees to fail sometimes and in that case abort the mission altogether, > but without crashing the whole process. > that's what i want! Notice that all I talked about involved the words "caller", "callee" and > possibly "call stack". Error handling in Gambas (and probably everywhere > else) goes along the dynamic scope. You can catch an error which happens > in a function only if you are that function or if you called it (or called > a function that called it, and so on). What you can *not* do is propagate > an error from one class into another class you inherit from. > WHAT? sound logical, but cannot propagate to the instance from? lest see that you explain now: > > So, in the context of that other thread you mentioned, if you have two > classes GenericPrinter and EpsonPrinter and you call > > $hEpson.Write() > > then it will dispatch to the specific Write method of the EpsonPrinter > object. > If an error happens in there, you can *not* propagate and handle it inside > the GenericPrinter.Write method. If you call > > $hEpson.Open() > > (for which EpsonPrinter has no special version, so it dispatches to the > generic Open method of GenericPrinter), and an error occurs there, then > the code in the GenericPrinter will have to handle the error and even > though > you have an EpsonPrinter object there, the EpsonPrinter class is not in > charge of handling the error, as you are executing a method defined in > GenericPrinter. > it's a new problem now, and in not have a property way to manage, but this are more a topic for the context of that other thread so then i limit this thread to the two problems: 1) we must manage using the error keyword usage, but taking care of the differences between clas error and keyword error, in that, taking note as error.text are cleared if a catch block was used! 2) also we also can raised the error using error.propagate but that are not so reflected in the wiki, and in the wiki there's no point about shadowing of errors if a try-catch are used so the only suspected part are: "A TRY instruction has been executed without any error." in the error keyword wiki at http://gambaswiki.org/wiki/lang/error so novice users can be more confused rather well oriented > > Regards, > Tobi > > [1] http://gambaswiki.org/wiki/comp/gb/error > [2] http://gambaswiki.org/wiki/lang/error > [3] http://gambaswiki.org/wiki/comp/gb/application > [4] http://gambaswiki.org/wiki/lang/catch > [5] http://gambaswiki.org/wiki/lang/finally > > -- > "There's an old saying: Don't change anything... ever!" -- Mr. Monk > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From t.lee.davidson at gmail.com Thu Aug 2 16:32:50 2018 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Thu, 2 Aug 2018 10:32:50 -0400 Subject: [Gambas-user] using try when access devices shadow the errors In-Reply-To: References: <20180801191000.GH17634@highrise.localdomain> Message-ID: <44995cae-35ec-c805-111f-fd581b6be12f@gmail.com> On 08/01/2018 04:32 PM, PICCORO McKAY Lenz wrote: > 2) also we also can raised the error using error.propagate but that are not so reflected in the wiki, and in the wiki there's no > point about shadowing of errors if a try-catch are used There is no such thing as a "try-catch" in Gambas. CATCH is *not* used with TRY. Tobi gave a good example: On 08/01/2018 03:10 PM, Tobias Boege wrote: > Something more advanced: you can catch and rethrow errors in Gambas > using Error.Propagate(): > > Dim iTries As Integer = 5 > > Do > Try SComm.Open() > Dec iTries > While Error and iTries > 0 > If Error Then Error.Propagate() > > This will try to connect five times (without changing any parameter) and > after the fifth failure, it will just take the error produced by the > Open() method and forward it. > > This is a bit of a silly example for a serial port, but the idea is that > you can catch an error using Try, then you attempt to recover from the > error in a way that fits your problem, and if that also doesn't succeed, > you propagate the error to your caller. Your response was, "like it! but without usage of catch? ? ?" Yes! CATCH is *not* used with TRY. TRY does not open an exception handling block as with other languages (eg. Python's "try-except"). It is a statement that affects the behavior of only the *line* which it begins. When using TRY, you test for an error condition with the ERROR keyword. If you do not, then the error is not revealed, and the program would continue merrily along under a potentially false assumption. If you want to use CATCH, then do not use TRY. ___ Lee From mckaygerhard at gmail.com Thu Aug 2 16:57:18 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Thu, 2 Aug 2018 10:57:18 -0400 Subject: [Gambas-user] using try when access devices shadow the errors In-Reply-To: <44995cae-35ec-c805-111f-fd581b6be12f@gmail.com> References: <20180801191000.GH17634@highrise.localdomain> <44995cae-35ec-c805-111f-fd581b6be12f@gmail.com> Message-ID: 2018-08-02 10:32 GMT-04:00 T Lee Davidson : > There is no such thing as a "try-catch" in Gambas. CATCH is *not* used > with TRY. > Tobi gave a good example: > i see it and that's why i point "there's no such information on the wiki" > Yes! CATCH is *not* used with TRY. TRY does not open an exception handling > block as with other languages (eg. Python's > "try-except"). It is a statement that affects the behavior of only the > *line* which it begins. > > When using TRY, you test for an error condition with the ERROR keyword. If > you do not, then the error is not revealed, and the > program would continue merrily along under a potentially false assumption. > If you want to use CATCH, then do not use TRY. > well i comming from java and C and its common ofr us use try/cacht as duple anyway! there's not similar info in the wiki that produces a waste of time for novices ! > > > ___ > Lee > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From t.lee.davidson at gmail.com Thu Aug 2 17:13:07 2018 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Thu, 2 Aug 2018 11:13:07 -0400 Subject: [Gambas-user] using try when access devices shadow the errors In-Reply-To: References: <20180801191000.GH17634@highrise.localdomain> <44995cae-35ec-c805-111f-fd581b6be12f@gmail.com> Message-ID: <7124db37-4e04-7836-9fbb-5ddbea7ca6cb@gmail.com> "there's no such information on the wiki" Incorrect. The information IS there. The documentation page for TRY (http://gambaswiki.org/wiki/lang/try) makes no mention whatsoever of any need to use the CATCH instruction. You paired CATCH with TRY without any documented reason to do so. Don't blame the Wiki. The doc page for CATCH (http://gambaswiki.org/wiki/lang/catch) specifically states, in the very first sentence, that, "This instruction indicates the beginning of the error management part of a function or a procedure." Therefore, CATCH, not TRY, opens an exception handling block. The immediate effect of TRY is limited in scope to a single statement or instruction. ___ Lee On 08/02/2018 10:57 AM, PICCORO McKAY Lenz wrote: > 2018-08-02 10:32 GMT-04:00 T Lee Davidson >: > > There is no such thing as a "try-catch" in Gambas. CATCH is *not* used with TRY. > Tobi gave a good example: > > i see it and that's why i point "there's no such information on the wiki" > ? > > Yes! CATCH is *not* used with TRY. TRY does not open an exception handling block as with other languages (eg. Python's > "try-except"). It is a statement that affects the behavior of only the *line* which it begins. > > When using TRY, you test for an error condition with the ERROR keyword. If you do not, then the error is not revealed, and the > program would continue merrily along under a potentially false assumption. If you want to use CATCH, then do not use TRY. > > well i comming from java and C and its common ofr us use try/cacht as duple > > anyway! there's not similar info in the wiki that produces a waste of time for novices ! > ? > > > > ___ > Lee > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > From t.lee.davidson at gmail.com Thu Aug 2 17:25:38 2018 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Thu, 2 Aug 2018 11:25:38 -0400 Subject: [Gambas-user] help with inherits using serial port In-Reply-To: References: <20180801160648.GE17634@highrise.localdomain> <20180801161201.GF17634@highrise.localdomain> Message-ID: On 08/01/2018 01:21 PM, PICCORO McKAY Lenz wrote: > next issue that I can spot is that you declare the event name "SComm" but > don't use it at all to intercept events. No wonder you don't get any. > > *please that parti, i need more clear ideas of them, but the english language are a barrier > * > *a kind of more "example for dummies" can be in that point?* There is a simple example at http://gambaswiki.org/wiki/lang/open: [code] ' Watching a serial port Dim hFile As File hFile = Open "/dev/ttyS0" For Read Write Watch ... Public Sub File_Read() Dim iByte As Byte Read #hFile, iByte Print "Got one byte: "; iByte End [/code] It does not give the hFile object a custom name as you do with: SComm = New SerialPort As "SComm" So, event management uses "File" as its name, and its Read event is handled with the File_Read() subroutine. See also: http://gambaswiki.org/wiki/lang/eventdecl ___ Lee From gael.lehech at gmail.com Thu Aug 2 17:51:55 2018 From: gael.lehech at gmail.com (=?UTF-8?B?R2HDq2wgTGUgSGVjJ0g=?=) Date: Thu, 2 Aug 2018 17:51:55 +0200 Subject: [Gambas-user] Moving from OpenSuse to Mint In-Reply-To: <1512367262.17333.1532879050578@office.mailbox.org> References: <1512367262.17333.1532879050578@office.mailbox.org> Message-ID: hi, Got the same issue with your project on LM19 Mate : [System] Gambas=3.11.90 3f836f0 (master) OperatingSystem=Linux Kernel=4.15.0-29-generic Architecture=x86_64 Distribution=Linux Mint 19 Tara Desktop=MATE Theme=Windows Language=en_US.UTF-8 Memory=7678M [Libraries] Cairo=libcairo.so.2.11510.0 Curl=libcurl.so.4.5.0 DBus=libdbus-1.so.3.19.4 GStreamer=libgstreamer-1.0.so.0.1401.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 COMPIZ_CONFIG_PROFILE=mate DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus DEFAULTS_PATH=/usr/share/gconf/mate.default.path DESKTOP_SESSION=mate DISPLAY=:0 GB_GUI=gb.qt4 GDMSESSION=mate GDM_LANG=en_US GIO_LAUNCHED_DESKTOP_FILE=/Desktop/gambas3.desktop GIO_LAUNCHED_DESKTOP_FILE_PID=4011 GPG_AGENT_INFO=/run/user/1000/gnupg/S.gpg-agent:0:1 GSETTINGS_SCHEMA_DIR=/data GTK_MODULES=gail:atk-bridge GTK_OVERLAY_SCROLLING=0 HOME= LANG=en_US.UTF-8 LANGUAGE=en_US LC_ADDRESS=fr_FR.UTF-8 LC_IDENTIFICATION=fr_FR.UTF-8 LC_MEASUREMENT=fr_FR.UTF-8 LC_MONETARY=fr_FR.UTF-8 LC_NAME=fr_FR.UTF-8 LC_NUMERIC=fr_FR.UTF-8 LC_PAPER=fr_FR.UTF-8 LC_TELEPHONE=fr_FR.UTF-8 LOGNAME= MANDATORY_PATH=/usr/share/gconf/mate.mandatory.path MATE_DESKTOP_SESSION_ID=this-is-deprecated PATH=/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games PWD= QT_ACCESSIBILITY=1 QT_AUTO_SCREEN_SCALE_FACTOR=0 QT_QPA_PLATFORMTHEME=qt5ct QT_SCALE_FACTOR=1 SESSION_MANAGER=local/:@/tmp/.ICE-unix/1015,unix/:/tmp/.ICE-unix/1015 SHELL=/bin/bash SHLVL=0 SSH_AGENT_PID=1344 SSH_AUTH_SOCK=/run/user/1000/keyring/ssh TZ=:/etc/localtime USER= XAUTHORITY=/.Xauthority XDG_CONFIG_DIRS=/etc/xdg/xdg-mate:/etc/xdg XDG_CURRENT_DESKTOP=MATE XDG_DATA_DIRS=/usr/share/mate:/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/local/share:/usr/share XDG_GREETER_DATA_DIR=/var/lib/lightdm-data/ XDG_RUNTIME_DIR=/run/user/1000 XDG_SEAT=seat0 XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0 XDG_SESSION_DESKTOP=mate XDG_SESSION_ID=c1 XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0 XDG_SESSION_TYPE=x11 XDG_VTNR=7 project run fine with GB.GUI set to QT4 or QT5 but not with GTK (2 or 3) gbc3 -ga output OK gbx3 nothing. regards, Le dim. 29 juil. 2018 ? 17:45, a ?crit : > Hi > > I developed an application on my OpenSuse (KDE) machine. Now I decided to > move it to a machine with Linux Mint (Mate desktop) installed. > > I installed Gambas on the Mint machine and copied my project from the > OpenSuse machine to the Mint machine. > > The Gambas developement environment seems to work on my Mint machine, I > can create a new project with a form and run the project to display the > form. > > The problem comes when I want to run (in developement environment) the > project I copied from OpenSuse. It seems to quit right after I press the > Run-button. I cannot trace it and I see no error messages. > > I know this is not much information, but I may find some more if I get an > hint on where to look. I would be glad to have some help on moving my > project to the new machine. > > Best regards, > > Bj?rn > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jussi.lahtinen at gmail.com Thu Aug 2 17:56:55 2018 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Thu, 2 Aug 2018 18:56:55 +0300 Subject: [Gambas-user] using try when access devices shadow the errors In-Reply-To: References: <20180801191000.GH17634@highrise.localdomain> <44995cae-35ec-c805-111f-fd581b6be12f@gmail.com> Message-ID: > well i comming from java and C and its common ofr us use try/cacht as duple > Incorrect. There is no try/catch in C. Jussi -------------- next part -------------- An HTML attachment was scrubbed... URL: From mckaygerhard at gmail.com Thu Aug 2 18:04:37 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Thu, 2 Aug 2018 12:04:37 -0400 Subject: [Gambas-user] using try when access devices shadow the errors In-Reply-To: References: <20180801191000.GH17634@highrise.localdomain> <44995cae-35ec-c805-111f-fd581b6be12f@gmail.com> Message-ID: i cited that wiki does not say that error are shadowed by the catch! its very important information for novices, taking in consideratino the languaje barrier seems we need more vision here! Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2018-08-02 11:56 GMT-04:00 Jussi Lahtinen : > > well i comming from java and C and its common ofr us use try/cacht as duple >> > > Incorrect. There is no try/catch in C. > > > Jussi > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mckaygerhard at gmail.com Thu Aug 2 18:07:16 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Thu, 2 Aug 2018 12:07:16 -0400 Subject: [Gambas-user] help with inherits using serial port In-Reply-To: References: <20180801160648.GE17634@highrise.localdomain> <20180801161201.GF17634@highrise.localdomain> Message-ID: umm if you opend the attached i send in first mail noted that i do as you cited with file example, so then seems i not explained very well, i taking about tobias said : "declare the event name "SComm" but don't use it at all" so if your example citation does not use the event name so what it's the point, i taking about usage of event name! Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2018-08-02 11:25 GMT-04:00 T Lee Davidson : > On 08/01/2018 01:21 PM, PICCORO McKAY Lenz wrote: > > next issue that I can spot is that you declare the event name > "SComm" but > > don't use it at all to intercept events. No wonder you don't get any. > > > > *please that parti, i need more clear ideas of them, but the english > language are a barrier > > * > > *a kind of more "example for dummies" can be in that point?* > > There is a simple example at http://gambaswiki.org/wiki/lang/open: > > [code] > ' Watching a serial port > > Dim hFile As File > > hFile = Open "/dev/ttyS0" For Read Write Watch > > ... > > Public Sub File_Read() > > Dim iByte As Byte > > Read #hFile, iByte > Print "Got one byte: "; iByte > > End > [/code] > > It does not give the hFile object a custom name as you do with: SComm = > New SerialPort As "SComm" > > So, event management uses "File" as its name, and its Read event is > handled with the File_Read() subroutine. > > See also: http://gambaswiki.org/wiki/lang/eventdecl > > > ___ > Lee > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From hans at gambas-buch.de Thu Aug 2 18:21:27 2018 From: hans at gambas-buch.de (Hans Lehmann) Date: Thu, 2 Aug 2018 18:21:27 +0200 Subject: [Gambas-user] help with inherits using serial port In-Reply-To: References: <20180801160648.GE17634@highrise.localdomain> <20180801161201.GF17634@highrise.localdomain> Message-ID: <8da29620-3395-26fa-bcc4-b7bb1289a3c3@gambas-buch.de> An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: lehmann_bp.jpg Type: image/jpeg Size: 17035 bytes Desc: not available URL: From bagonergi at gmail.com Thu Aug 2 19:14:07 2018 From: bagonergi at gmail.com (Gianluigi) Date: Thu, 2 Aug 2018 19:14:07 +0200 Subject: [Gambas-user] using try when access devices shadow the errors In-Reply-To: References: <20180801191000.GH17634@highrise.localdomain> <44995cae-35ec-c805-111f-fd581b6be12f@gmail.com> Message-ID: 2018-08-02 17:56 GMT+02:00 Jussi Lahtinen : > > well i comming from java and C and its common ofr us use try/cacht as duple >> > > Incorrect. There is no try/catch in C. > > > Jussi > > > One language that certainly uses Try and Catch together is Windows .Net ;-D Regards Gianluigi > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bagonergi at gmail.com Thu Aug 2 19:21:33 2018 From: bagonergi at gmail.com (Gianluigi) Date: Thu, 2 Aug 2018 19:21:33 +0200 Subject: [Gambas-user] Moving from OpenSuse to Mint In-Reply-To: References: <1512367262.17333.1532879050578@office.mailbox.org> Message-ID: You might try this: https://lists.gambas-basic.org/pipermail/user/2018-July/065083.html Regards Gianluigi 2018-08-02 17:51 GMT+02:00 Ga?l Le Hec'H : > hi, > > Got the same issue with your project on LM19 Mate : > > [System] > Gambas=3.11.90 3f836f0 (master) > OperatingSystem=Linux > Kernel=4.15.0-29-generic > Architecture=x86_64 > Distribution=Linux Mint 19 Tara > Desktop=MATE > Theme=Windows > Language=en_US.UTF-8 > Memory=7678M > > [Libraries] > Cairo=libcairo.so.2.11510.0 > Curl=libcurl.so.4.5.0 > DBus=libdbus-1.so.3.19.4 > GStreamer=libgstreamer-1.0.so.0.1401.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 > COMPIZ_CONFIG_PROFILE=mate > DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus > DEFAULTS_PATH=/usr/share/gconf/mate.default.path > DESKTOP_SESSION=mate > DISPLAY=:0 > GB_GUI=gb.qt4 > GDMSESSION=mate > GDM_LANG=en_US > GIO_LAUNCHED_DESKTOP_FILE=/Desktop/gambas3.desktop > GIO_LAUNCHED_DESKTOP_FILE_PID=4011 > GPG_AGENT_INFO=/run/user/1000/gnupg/S.gpg-agent:0:1 > GSETTINGS_SCHEMA_DIR=/data > GTK_MODULES=gail:atk-bridge > GTK_OVERLAY_SCROLLING=0 > HOME= > LANG=en_US.UTF-8 > LANGUAGE=en_US > LC_ADDRESS=fr_FR.UTF-8 > LC_IDENTIFICATION=fr_FR.UTF-8 > LC_MEASUREMENT=fr_FR.UTF-8 > LC_MONETARY=fr_FR.UTF-8 > LC_NAME=fr_FR.UTF-8 > LC_NUMERIC=fr_FR.UTF-8 > LC_PAPER=fr_FR.UTF-8 > LC_TELEPHONE=fr_FR.UTF-8 > LOGNAME= > MANDATORY_PATH=/usr/share/gconf/mate.mandatory.path > MATE_DESKTOP_SESSION_ID=this-is-deprecated > PATH=/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin: > /usr/bin:/sbin:/bin:/usr/games:/usr/local/games > PWD= > QT_ACCESSIBILITY=1 > QT_AUTO_SCREEN_SCALE_FACTOR=0 > QT_QPA_PLATFORMTHEME=qt5ct > QT_SCALE_FACTOR=1 > SESSION_MANAGER=local/:@/tmp/.ICE-unix/ > 1015,unix/:/tmp/.ICE-unix/1015 > SHELL=/bin/bash > SHLVL=0 > SSH_AGENT_PID=1344 > SSH_AUTH_SOCK=/run/user/1000/keyring/ssh > TZ=:/etc/localtime > USER= > XAUTHORITY=/.Xauthority > XDG_CONFIG_DIRS=/etc/xdg/xdg-mate:/etc/xdg > XDG_CURRENT_DESKTOP=MATE > XDG_DATA_DIRS=/usr/share/mate:/.local/share/flatpak/ > exports/share:/var/lib/flatpak/exports/share:/usr/local/share:/usr/share > XDG_GREETER_DATA_DIR=/var/lib/lightdm-data/ > XDG_RUNTIME_DIR=/run/user/1000 > XDG_SEAT=seat0 > XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0 > XDG_SESSION_DESKTOP=mate > XDG_SESSION_ID=c1 > XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0 > XDG_SESSION_TYPE=x11 > XDG_VTNR=7 > > project run fine with GB.GUI set to QT4 or QT5 but not with GTK (2 or 3) > gbc3 -ga output OK > gbx3 nothing. > > regards, > > > > Le dim. 29 juil. 2018 ? 17:45, a ?crit : > >> Hi >> >> I developed an application on my OpenSuse (KDE) machine. Now I decided to >> move it to a machine with Linux Mint (Mate desktop) installed. >> >> I installed Gambas on the Mint machine and copied my project from the >> OpenSuse machine to the Mint machine. >> >> The Gambas developement environment seems to work on my Mint machine, I >> can create a new project with a form and run the project to display the >> form. >> >> The problem comes when I want to run (in developement environment) the >> project I copied from OpenSuse. It seems to quit right after I press the >> Run-button. I cannot trace it and I see no error messages. >> >> I know this is not much information, but I may find some more if I get an >> hint on where to look. I would be glad to have some help on moving my >> project to the new machine. >> >> Best regards, >> >> Bj?rn >> >> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >> > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mckaygerhard at gmail.com Thu Aug 2 19:25:56 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Thu, 2 Aug 2018 13:25:56 -0400 Subject: [Gambas-user] help with inherits using serial port In-Reply-To: <8da29620-3395-26fa-bcc4-b7bb1289a3c3@gambas-buch.de> References: <20180801160648.GE17634@highrise.localdomain> <20180801161201.GF17634@highrise.localdomain> <8da29620-3395-26fa-bcc4-b7bb1289a3c3@gambas-buch.de> Message-ID: hi hans, yeah, it's hard to ask something.. well now with tobias recomendation i now have "almost" working the printer manager but now as i posted in the previous mail noted that only got buffer data in some moments not always! please see the following notes about pieces of recomendations of Tobias here https://lists.gambas-basic.org/pipermail/user/2018-August/065134.html Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2018-08-02 12:21 GMT-04:00 Hans Lehmann : > Hello Gerald, > > I follow with interest the answers to your inquiry. Unfortunately, I > didn't quite realize to which concrete questions you expect answers here? > > With kind regards from Germany > > Hans > > > > That is my guiding principle: If you expect a good answer, then you must > ask very well! > > Hola Gerald, > > Sigo con inter?s las respuestas a su pregunta. Desafortunadamente, no me > hab?a dado cuenta de las preguntas concretas a las que espera respuestas > aqu?. > > Saludos cordiales desde Alemania > > Hans > > Ese es mi principio rector: si esperas una buena respuesta, ?debes > preguntar muy bien! > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mckaygerhard at gmail.com Thu Aug 2 19:53:15 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Thu, 2 Aug 2018 13:53:15 -0400 Subject: [Gambas-user] some can take a look to versin file misc: Message-ID: as this picture shows http://gambaswiki.org/bugtracker/get/COM.1338.4/file-1/20180718-230925565-problem-get-from-version.png version file seems are not taking right from IDE, but are taking correctly from runtime! IDE does not detect the version number set in the VERSION file, as the picture show, but the checkbox are selected but at runtime everithing are correct! this its the n-mail that try to explain that! i hope someone take interest in thata problem Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From tmorehen at ajm-software.com Thu Aug 2 19:50:21 2018 From: tmorehen at ajm-software.com (Tony Morehen) Date: Thu, 2 Aug 2018 13:50:21 -0400 Subject: [Gambas-user] using try when access devices shadow the errors In-Reply-To: References: <20180801191000.GH17634@highrise.localdomain> <44995cae-35ec-c805-111f-fd581b6be12f@gmail.com> Message-ID: <61a9fc37-d1cc-71c5-0453-112c1def9c33@ajm-software.com> The wiki/documentation is perfectly clear about Try, Catch, and Finally. Further, Tobias never said Catch shadows the error! Try shadows the error, not Catch. Catch is an error handler. It behaves as an error handler should ie the error is handled, no need to raise an exception. Here's the standard error process: 1) Fill in the Error object 2) Raise an exception This is equivalent to On Error Goto 0 Error process with a Try at the start of statement 1) Fill in Error object 2) Resume at the statement following the Try This is equivalent to: On Error Resume Next statement On Error Goto 0 Error process with a Catch block 1) Fill in the Error object 2) Resume at the statement following the Catch This is equivalent to: On Error Goto Catch statements Return Catch error handling code Return Error Process with Catch and Finally blocks 1) Fill in the Error object 2) Resume at the statement following the Catch 3) Execute the Finally code. Finally code is executed even if there is no error. This is equivalent to: On Error Goto Catch statements Goto Finally Catch error handling code Goto Finally Finally code that is always executed A final word of caution Criticizing the wiki as bluntly as you do, particularly when that criticism is unwarranted, is likely to irritate the people that provide us such an exceptional product. Try framing this sort of criticism as a question, such as "Do we need to add something to the wiki to make this explicit and avoid confusing novices?" On 2018-08-02 12:04 PM, PICCORO McKAY Lenz wrote: > i cited that wiki does not say that error are shadowed by the catch! its > very important information for novices, taking in consideratino the > languaje barrier > > seems we need more vision here! > > > Lenz McKAY Gerardo (PICCORO) > http://qgqlochekone.blogspot.com > > 2018-08-02 11:56 GMT-04:00 Jussi Lahtinen >: > > > well i comming from java and C and its common ofr us use > try/cacht as duple > > > Incorrect. There is no try/catch in C. > > > Jussi > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > From mckaygerhard at gmail.com Thu Aug 2 20:12:57 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Thu, 2 Aug 2018 14:12:57 -0400 Subject: [Gambas-user] using try when access devices shadow the errors In-Reply-To: <61a9fc37-d1cc-71c5-0453-112c1def9c33@ajm-software.com> References: <20180801191000.GH17634@highrise.localdomain> <44995cae-35ec-c805-111f-fd581b6be12f@gmail.com> <61a9fc37-d1cc-71c5-0453-112c1def9c33@ajm-software.com> Message-ID: ah yeah, must be send to list, so then: > an exceptional product so it's a product or a hobby? we need a product i try to make a product from a product, i rmenber that someone said in old mail that does all of this for hobby.. well sorry someone here confusing this excelent peice of software with a product to make products! > Tobias never said Catch shadows the error i was my fault, i means that tobias said that try shadowns the error, seems you make same mistake like me, do not read the complete threath with caution... so i not critizing the wiki, but that are not pointed in wiki, i try to point that experts users will begin being novice users now mails have lot of examples, recomendations, expert people, puff, etc etc but in the begining a great silence was! Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2018-08-02 13:50 GMT-04:00 Tony Morehen : > The wiki/documentation is perfectly clear about Try, Catch, and Finally. > Further, Tobias never said Catch shadows the error! > > Try shadows the error, not Catch. Catch is an error handler. It behaves > as an error handler should ie the error is handled, no need to raise an > exception. > > Here's the standard error process: > > 1) Fill in the Error object > 2) Raise an exception > > This is equivalent to On Error Goto 0 > > Error process with a Try at the start of statement > > 1) Fill in Error object > 2) Resume at the statement following the Try > > This is equivalent to: > On Error Resume Next > statement > On Error Goto 0 > > Error process with a Catch block > > 1) Fill in the Error object > 2) Resume at the statement following the Catch > > This is equivalent to: > On Error Goto Catch > statements > Return > Catch > error handling code > Return > > Error Process with Catch and Finally blocks > > 1) Fill in the Error object > 2) Resume at the statement following the Catch > 3) Execute the Finally code. Finally code is executed even if there is no > error. > > This is equivalent to: > On Error Goto Catch > statements > Goto Finally > Catch > error handling code > Goto Finally > Finally > code that is always executed > > A final word of caution Criticizing the wiki as bluntly as you do, > particularly when that criticism is unwarranted, is likely to irritate the > people that provide us such an exceptional product. Try framing this sort > of criticism as a question, such as "Do we need to add something to the > wiki to make this explicit and avoid confusing novices?" > > > > > > On 2018-08-02 12:04 PM, PICCORO McKAY Lenz wrote: > >> i cited that wiki does not say that error are shadowed by the catch! its >> very important information for novices, taking in consideratino the >> languaje barrier >> >> seems we need more vision here! >> >> >> Lenz McKAY Gerardo (PICCORO) >> http://qgqlochekone.blogspot.com >> >> 2018-08-02 11:56 GMT-04:00 Jussi Lahtinen > >: >> >> >> well i comming from java and C and its common ofr us use >> try/cacht as duple >> >> >> Incorrect. There is no try/catch in C. >> >> >> Jussi >> >> >> >> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net >> ]---- >> >> >> >> >> >> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >> >> > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bkv at mailbox.org Thu Aug 2 20:25:35 2018 From: bkv at mailbox.org (bkv at mailbox.org) Date: Thu, 2 Aug 2018 20:25:35 +0200 (CEST) Subject: [Gambas-user] Moving from OpenSuse to Mint In-Reply-To: References: <1512367262.17333.1532879050578@office.mailbox.org> Message-ID: <908163584.5489.1533234335436@office.mailbox.org> Hi. Seems like I got it to work. In meny Project/Properties/Componets, I unticked gb.gui and ticked gb.qt4 (works also with gb.gui.qt ). Now the program runs in the debugger, and I can make executables that run. -Bj?rn > On August 2, 2018 at 7:21 PM Gianluigi wrote: > > You might try this: > https://lists.gambas-basic.org/pipermail/user/2018-July/065083.html > > Regards > Gianluigi > > > 2018-08-02 17:51 GMT+02:00 Ga?l Le Hec'H : > > > > hi, > > > > Got the same issue with your project on LM19 Mate : > > > > [System] > > Gambas=3.11.90 3f836f0 (master) > > OperatingSystem=Linux > > Kernel=4.15.0-29-generic > > Architecture=x86_64 > > Distribution=Linux Mint 19 Tara > > Desktop=MATE > > Theme=Windows > > Language=en_US.UTF-8 > > Memory=7678M > > > > [Libraries] > > Cairo=libcairo.so.2.11510.0 > > Curl=libcurl.so.4.5.0 > > DBus=libdbus-1.so.3.19.4 > > GStreamer=http://libgstreamer-1.0.so . 0.1401.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 > > COMPIZ_CONFIG_PROFILE=mate > > DBUS_SESSION_BUS_ADDRESS=unix: path=/run/user/1000/bus > > DEFAULTS_PATH=/usr/share/ gconf/mate.default.path > > DESKTOP_SESSION=mate > > DISPLAY=:0 > > GB_GUI=gb.qt4 > > GDMSESSION=mate > > GDM_LANG=en_US > > GIO_LAUNCHED_DESKTOP_FILE=< home>/Desktop/gambas3.desktop > > GIO_LAUNCHED_DESKTOP_FILE_PID= 4011 > > GPG_AGENT_INFO=/run/user/1000/ gnupg/S.gpg-agent:0:1 > > GSETTINGS_SCHEMA_DIR=/ data > > GTK_MODULES=gail:atk-bridge > > GTK_OVERLAY_SCROLLING=0 > > HOME= > > LANG=en_US.UTF-8 > > LANGUAGE=en_US > > LC_ADDRESS=fr_FR.UTF-8 > > LC_IDENTIFICATION=fr_FR.UTF-8 > > LC_MEASUREMENT=fr_FR.UTF-8 > > LC_MONETARY=fr_FR.UTF-8 > > LC_NAME=fr_FR.UTF-8 > > LC_NUMERIC=fr_FR.UTF-8 > > LC_PAPER=fr_FR.UTF-8 > > LC_TELEPHONE=fr_FR.UTF-8 > > LOGNAME= > > MANDATORY_PATH=/usr/share/ gconf/mate.mandatory.path > > MATE_DESKTOP_SESSION_ID=this- is-deprecated > > PATH=/bin:/usr/local/ sbin:/usr/local/bin:/usr/sbin: /usr/bin:/sbin:/bin:/usr/ games:/usr/local/games > > PWD= > > QT_ACCESSIBILITY=1 > > QT_AUTO_SCREEN_SCALE_FACTOR=0 > > QT_QPA_PLATFORMTHEME=qt5ct > > QT_SCALE_FACTOR=1 > > SESSION_MANAGER=local/< hostname>:@/tmp/.ICE-unix/ 1015,unix/:/tmp/. ICE-unix/1015 > > SHELL=/bin/bash > > SHLVL=0 > > SSH_AGENT_PID=1344 > > SSH_AUTH_SOCK=/run/user/1000/ keyring/ssh > > TZ=:/etc/localtime > > USER= > > XAUTHORITY=/.Xauthority > > XDG_CONFIG_DIRS=/etc/xdg/xdg- mate:/etc/xdg > > XDG_CURRENT_DESKTOP=MATE > > XDG_DATA_DIRS=/usr/share/mate: /.local/share/flatpak/ exports/share:/var/lib/ flatpak/exports/share:/usr/ local/share:/usr/share > > XDG_GREETER_DATA_DIR=/var/lib/ lightdm-data/ > > XDG_RUNTIME_DIR=/run/user/1000 > > XDG_SEAT=seat0 > > XDG_SEAT_PATH=/org/ freedesktop/DisplayManager/ Seat0 > > XDG_SESSION_DESKTOP=mate > > XDG_SESSION_ID=c1 > > XDG_SESSION_PATH=/org/ freedesktop/DisplayManager/ Session0 > > XDG_SESSION_TYPE=x11 > > XDG_VTNR=7 > > > > project run fine with GB.GUI set to QT4 or QT5 but not with GTK (2 or 3) > > gbc3 -ga output OK > > gbx3 nothing. > > > > regards, > > > > > > > > Le dim. 29 juil. 2018 ? 17:45, < bkv at mailbox.org mailto:bkv at mailbox.org > a ?crit : > > > > > > > > > > Hi > > > > > > I developed an application on my OpenSuse (KDE) machine. Now I decided to move it to a machine with Linux Mint (Mate desktop) installed. > > > > > > I installed Gambas on the Mint machine and copied my project from the OpenSuse machine to the Mint machine. > > > > > > The Gambas developement environment seems to work on my Mint machine, I can create a new project with a form and run the project to display the form. > > > > > > The problem comes when I want to run (in developement environment) the project I copied from OpenSuse. It seems to quit right after I press the Run-button. I cannot trace it and I see no error messages. > > > > > > I know this is not much information, but I may find some more if I get an hint on where to look. I would be glad to have some help on moving my project to the new machine. > > > > > > Best regards, > > > > > > Bj?rn > > > > > > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > > > > > > > > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > > > > > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jussi.lahtinen at gmail.com Thu Aug 2 20:43:49 2018 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Thu, 2 Aug 2018 21:43:49 +0300 Subject: [Gambas-user] help with inherits using serial port In-Reply-To: References: <20180801160648.GE17634@highrise.localdomain> <20180801161201.GF17634@highrise.localdomain> Message-ID: You did not understand the answer Lee gave to you. It does use the event, it's File_Read. In your case the read event is SComm_Read, because you named so. Very basics of events. Jussi On Thu, Aug 2, 2018 at 7:07 PM, PICCORO McKAY Lenz wrote: > umm if you opend the attached i send in first mail noted that i do as you > cited with file example, so then seems i not explained very well, i taking > about tobias said : "declare the event name "SComm" but don't use it at > all" > > so if your example citation does not use the event name so what it's the > point, i taking about usage of event name! > > Lenz McKAY Gerardo (PICCORO) > http://qgqlochekone.blogspot.com > > 2018-08-02 11:25 GMT-04:00 T Lee Davidson : > >> On 08/01/2018 01:21 PM, PICCORO McKAY Lenz wrote: >> > next issue that I can spot is that you declare the event name >> "SComm" but >> > don't use it at all to intercept events. No wonder you don't get >> any. >> > >> > *please that parti, i need more clear ideas of them, but the english >> language are a barrier >> > * >> > *a kind of more "example for dummies" can be in that point?* >> >> There is a simple example at http://gambaswiki.org/wiki/lang/open: >> >> [code] >> ' Watching a serial port >> >> Dim hFile As File >> >> hFile = Open "/dev/ttyS0" For Read Write Watch >> >> ... >> >> Public Sub File_Read() >> >> Dim iByte As Byte >> >> Read #hFile, iByte >> Print "Got one byte: "; iByte >> >> End >> [/code] >> >> It does not give the hFile object a custom name as you do with: SComm = >> New SerialPort As "SComm" >> >> So, event management uses "File" as its name, and its Read event is >> handled with the File_Read() subroutine. >> >> See also: http://gambaswiki.org/wiki/lang/eventdecl >> >> >> ___ >> Lee >> >> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >> > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mckaygerhard at gmail.com Thu Aug 2 20:55:24 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Thu, 2 Aug 2018 14:55:24 -0400 Subject: [Gambas-user] help with inherits using serial port In-Reply-To: References: <20180801160648.GE17634@highrise.localdomain> <20180801161201.GF17634@highrise.localdomain> Message-ID: ah ok thanks for clarify jussi now i understand an i guess many others Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2018-08-02 14:43 GMT-04:00 Jussi Lahtinen : > You did not understand the answer Lee gave to you. It does use the event, > it's File_Read. In your case the read event is SComm_Read, because you > named so. > Very basics of events. > > > Jussi > > On Thu, Aug 2, 2018 at 7:07 PM, PICCORO McKAY Lenz > wrote: > >> umm if you opend the attached i send in first mail noted that i do as you >> cited with file example, so then seems i not explained very well, i taking >> about tobias said : "declare the event name "SComm" but don't use it at >> all" >> >> so if your example citation does not use the event name so what it's the >> point, i taking about usage of event name! >> >> Lenz McKAY Gerardo (PICCORO) >> http://qgqlochekone.blogspot.com >> >> 2018-08-02 11:25 GMT-04:00 T Lee Davidson : >> >>> On 08/01/2018 01:21 PM, PICCORO McKAY Lenz wrote: >>> > next issue that I can spot is that you declare the event name >>> "SComm" but >>> > don't use it at all to intercept events. No wonder you don't get >>> any. >>> > >>> > *please that parti, i need more clear ideas of them, but the english >>> language are a barrier >>> > * >>> > *a kind of more "example for dummies" can be in that point?* >>> >>> There is a simple example at http://gambaswiki.org/wiki/lang/open: >>> >>> [code] >>> ' Watching a serial port >>> >>> Dim hFile As File >>> >>> hFile = Open "/dev/ttyS0" For Read Write Watch >>> >>> ... >>> >>> Public Sub File_Read() >>> >>> Dim iByte As Byte >>> >>> Read #hFile, iByte >>> Print "Got one byte: "; iByte >>> >>> End >>> [/code] >>> >>> It does not give the hFile object a custom name as you do with: SComm = >>> New SerialPort As "SComm" >>> >>> So, event management uses "File" as its name, and its Read event is >>> handled with the File_Read() subroutine. >>> >>> See also: http://gambaswiki.org/wiki/lang/eventdecl >>> >>> >>> ___ >>> Lee >>> >>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >>> >> >> >> >> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >> >> > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mckaygerhard at gmail.com Thu Aug 2 20:56:40 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Thu, 2 Aug 2018 14:56:40 -0400 Subject: [Gambas-user] help with inherits using serial port In-Reply-To: References: <20180801160648.GE17634@highrise.localdomain> <20180801161201.GF17634@highrise.localdomain> Message-ID: a ok thanks for clarify jussi now i understand an i guess many others, but i also taking about that now with tobias recommendation i have a almost working printer manager Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2018-08-02 14:43 GMT-04:00 Jussi Lahtinen : > You did not understand the answer Lee gave to you. It does use the event, > it's File_Read. In your case the read event is SComm_Read, because you > named so. > Very basics of events. > > > Jussi > > On Thu, Aug 2, 2018 at 7:07 PM, PICCORO McKAY Lenz > wrote: > >> umm if you opend the attached i send in first mail noted that i do as you >> cited with file example, so then seems i not explained very well, i taking >> about tobias said : "declare the event name "SComm" but don't use it at >> all" >> >> so if your example citation does not use the event name so what it's the >> point, i taking about usage of event name! >> >> Lenz McKAY Gerardo (PICCORO) >> http://qgqlochekone.blogspot.com >> >> 2018-08-02 11:25 GMT-04:00 T Lee Davidson : >> >>> On 08/01/2018 01:21 PM, PICCORO McKAY Lenz wrote: >>> > next issue that I can spot is that you declare the event name >>> "SComm" but >>> > don't use it at all to intercept events. No wonder you don't get >>> any. >>> > >>> > *please that parti, i need more clear ideas of them, but the english >>> language are a barrier >>> > * >>> > *a kind of more "example for dummies" can be in that point?* >>> >>> There is a simple example at http://gambaswiki.org/wiki/lang/open: >>> >>> [code] >>> ' Watching a serial port >>> >>> Dim hFile As File >>> >>> hFile = Open "/dev/ttyS0" For Read Write Watch >>> >>> ... >>> >>> Public Sub File_Read() >>> >>> Dim iByte As Byte >>> >>> Read #hFile, iByte >>> Print "Got one byte: "; iByte >>> >>> End >>> [/code] >>> >>> It does not give the hFile object a custom name as you do with: SComm = >>> New SerialPort As "SComm" >>> >>> So, event management uses "File" as its name, and its Read event is >>> handled with the File_Read() subroutine. >>> >>> See also: http://gambaswiki.org/wiki/lang/eventdecl >>> >>> >>> ___ >>> Lee >>> >>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >>> >> >> >> >> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >> >> > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jussi.lahtinen at gmail.com Thu Aug 2 20:57:49 2018 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Thu, 2 Aug 2018 21:57:49 +0300 Subject: [Gambas-user] using try when access devices shadow the errors In-Reply-To: References: <20180801191000.GH17634@highrise.localdomain> <44995cae-35ec-c805-111f-fd581b6be12f@gmail.com> <61a9fc37-d1cc-71c5-0453-112c1def9c33@ajm-software.com> Message-ID: "The great silence" may just be due your completely unwarranted arrogance towards others. Jussi On Thu, Aug 2, 2018 at 9:12 PM, PICCORO McKAY Lenz wrote: > ah yeah, must be send to list, so then: > > > an exceptional product > > so it's a product or a hobby? we need a product i try to make a product > from a product, i rmenber that someone said in old mail that does all of > this for hobby.. well sorry someone here confusing this excelent peice of > software with a product to make products! > > > Tobias never said Catch shadows the error > > i was my fault, i means that tobias said that try shadowns the error, > seems you make same mistake like me, do not read the complete threath with > caution... > > so i not critizing the wiki, but that are not pointed in wiki, i try to > point that experts users will begin being novice users > > now mails have lot of examples, recomendations, expert people, puff, etc > etc but in the begining a great silence was! > > > > Lenz McKAY Gerardo (PICCORO) > http://qgqlochekone.blogspot.com > > 2018-08-02 13:50 GMT-04:00 Tony Morehen : > >> The wiki/documentation is perfectly clear about Try, Catch, and Finally. >> Further, Tobias never said Catch shadows the error! >> >> Try shadows the error, not Catch. Catch is an error handler. It behaves >> as an error handler should ie the error is handled, no need to raise an >> exception. >> >> Here's the standard error process: >> >> 1) Fill in the Error object >> 2) Raise an exception >> >> This is equivalent to On Error Goto 0 >> >> Error process with a Try at the start of statement >> >> 1) Fill in Error object >> 2) Resume at the statement following the Try >> >> This is equivalent to: >> On Error Resume Next >> statement >> On Error Goto 0 >> >> Error process with a Catch block >> >> 1) Fill in the Error object >> 2) Resume at the statement following the Catch >> >> This is equivalent to: >> On Error Goto Catch >> statements >> Return >> Catch >> error handling code >> Return >> >> Error Process with Catch and Finally blocks >> >> 1) Fill in the Error object >> 2) Resume at the statement following the Catch >> 3) Execute the Finally code. Finally code is executed even if there is >> no error. >> >> This is equivalent to: >> On Error Goto Catch >> statements >> Goto Finally >> Catch >> error handling code >> Goto Finally >> Finally >> code that is always executed >> >> A final word of caution Criticizing the wiki as bluntly as you do, >> particularly when that criticism is unwarranted, is likely to irritate the >> people that provide us such an exceptional product. Try framing this sort >> of criticism as a question, such as "Do we need to add something to the >> wiki to make this explicit and avoid confusing novices?" >> >> >> >> >> >> On 2018-08-02 12:04 PM, PICCORO McKAY Lenz wrote: >> >>> i cited that wiki does not say that error are shadowed by the catch! its >>> very important information for novices, taking in consideratino the >>> languaje barrier >>> >>> seems we need more vision here! >>> >>> >>> Lenz McKAY Gerardo (PICCORO) >>> http://qgqlochekone.blogspot.com >>> >>> 2018-08-02 11:56 GMT-04:00 Jussi Lahtinen >> >: >>> >>> >>> well i comming from java and C and its common ofr us use >>> try/cacht as duple >>> >>> >>> Incorrect. There is no try/catch in C. >>> >>> >>> Jussi >>> >>> >>> >>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net >>> ]---- >>> >>> >>> >>> >>> >>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >>> >>> >> >> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >> > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mckaygerhard at gmail.com Thu Aug 2 21:13:44 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Thu, 2 Aug 2018 15:13:44 -0400 Subject: [Gambas-user] using try when access devices shadow the errors In-Reply-To: References: <20180801191000.GH17634@highrise.localdomain> <44995cae-35ec-c805-111f-fd581b6be12f@gmail.com> <61a9fc37-d1cc-71c5-0453-112c1def9c33@ajm-software.com> Message-ID: i'm glad tobias answer me! also noted after that, many others do it! but as noted without the second "unwarranted arrogance" mail.. maybe never will happened! Was it really necessary to send a second email with a warm tone so that they could answer me? We must all improve, not only I believe! AND i read carefully that second mail, it's not so "arrogance" as you pointed! be easy! men! Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2018-08-02 14:57 GMT-04:00 Jussi Lahtinen : > "The great silence" may just be due your completely unwarranted arrogance > towards others. > > > Jussi > > On Thu, Aug 2, 2018 at 9:12 PM, PICCORO McKAY Lenz > wrote: > >> ah yeah, must be send to list, so then: >> >> > an exceptional product >> >> so it's a product or a hobby? we need a product i try to make a product >> from a product, i rmenber that someone said in old mail that does all of >> this for hobby.. well sorry someone here confusing this excelent peice of >> software with a product to make products! >> >> > Tobias never said Catch shadows the error >> >> i was my fault, i means that tobias said that try shadowns the error, >> seems you make same mistake like me, do not read the complete threath with >> caution... >> >> so i not critizing the wiki, but that are not pointed in wiki, i try to >> point that experts users will begin being novice users >> >> now mails have lot of examples, recomendations, expert people, puff, etc >> etc but in the begining a great silence was! >> >> >> >> Lenz McKAY Gerardo (PICCORO) >> http://qgqlochekone.blogspot.com >> >> 2018-08-02 13:50 GMT-04:00 Tony Morehen : >> >>> The wiki/documentation is perfectly clear about Try, Catch, and >>> Finally. Further, Tobias never said Catch shadows the error! >>> >>> Try shadows the error, not Catch. Catch is an error handler. It >>> behaves as an error handler should ie the error is handled, no need to >>> raise an exception. >>> >>> Here's the standard error process: >>> >>> 1) Fill in the Error object >>> 2) Raise an exception >>> >>> This is equivalent to On Error Goto 0 >>> >>> Error process with a Try at the start of statement >>> >>> 1) Fill in Error object >>> 2) Resume at the statement following the Try >>> >>> This is equivalent to: >>> On Error Resume Next >>> statement >>> On Error Goto 0 >>> >>> Error process with a Catch block >>> >>> 1) Fill in the Error object >>> 2) Resume at the statement following the Catch >>> >>> This is equivalent to: >>> On Error Goto Catch >>> statements >>> Return >>> Catch >>> error handling code >>> Return >>> >>> Error Process with Catch and Finally blocks >>> >>> 1) Fill in the Error object >>> 2) Resume at the statement following the Catch >>> 3) Execute the Finally code. Finally code is executed even if there is >>> no error. >>> >>> This is equivalent to: >>> On Error Goto Catch >>> statements >>> Goto Finally >>> Catch >>> error handling code >>> Goto Finally >>> Finally >>> code that is always executed >>> >>> A final word of caution Criticizing the wiki as bluntly as you do, >>> particularly when that criticism is unwarranted, is likely to irritate the >>> people that provide us such an exceptional product. Try framing this sort >>> of criticism as a question, such as "Do we need to add something to the >>> wiki to make this explicit and avoid confusing novices?" >>> >>> >>> >>> >>> >>> On 2018-08-02 12:04 PM, PICCORO McKAY Lenz wrote: >>> >>>> i cited that wiki does not say that error are shadowed by the catch! >>>> its very important information for novices, taking in consideratino the >>>> languaje barrier >>>> >>>> seems we need more vision here! >>>> >>>> >>>> Lenz McKAY Gerardo (PICCORO) >>>> http://qgqlochekone.blogspot.com >>>> >>>> 2018-08-02 11:56 GMT-04:00 Jussi Lahtinen >>> >: >>>> >>>> >>>> well i comming from java and C and its common ofr us use >>>> try/cacht as duple >>>> >>>> >>>> Incorrect. There is no try/catch in C. >>>> >>>> >>>> Jussi >>>> >>>> >>>> >>>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net >>>> ]---- >>>> >>>> >>>> >>>> >>>> >>>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net >>>> ]---- >>>> >>>> >>> >>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >>> >> >> >> >> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >> >> > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From tmorehen at ajm-software.com Thu Aug 2 21:24:28 2018 From: tmorehen at ajm-software.com (Tony Morehen) Date: Thu, 2 Aug 2018 15:24:28 -0400 Subject: [Gambas-user] some can take a look to versin file misc: In-Reply-To: References: Message-ID: <2579af8c-48ec-ae47-b8ef-782abd97458f@ajm-software.com> If runtime is correct, this obviously can be treated as a low priority.? Why not dive into the Gambas code yourself, find the bug and suggest a fix?? You have a better understanding of the problem than the rest of us. On 2018-08-02 01:53 PM, PICCORO McKAY Lenz wrote: > as this picture shows > http://gambaswiki.org/bugtracker/get/COM.1338.4/file-1/20180718-230925565-problem-get-from-version.png > > version file seems are not taking right from IDE, but are taking > correctly from runtime! > > IDE does not detect the version number set in the VERSION file, as the > picture show, but the checkbox are selected > > but at runtime everithing are correct! > > this its the n-mail that try to explain that! i hope someone take > interest in thata problem > > > Lenz McKAY Gerardo (PICCORO) > http://qgqlochekone.blogspot.com > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- -------------- next part -------------- An HTML attachment was scrubbed... URL: From mckaygerhard at gmail.com Thu Aug 2 21:31:07 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Thu, 2 Aug 2018 15:31:07 -0400 Subject: [Gambas-user] some can take a look to versin file misc: In-Reply-To: <2579af8c-48ec-ae47-b8ef-782abd97458f@ajm-software.com> References: <2579af8c-48ec-ae47-b8ef-782abd97458f@ajm-software.com> Message-ID: i try it! noted that in gambas 3.1 and 3.3 does work and since 3.5 (i guess 3.5 or 3.7) doess not work anymore due the problem it's in the IDE code so it's more difficult so i must load the complete iide within the ide and when i runt have lot of new symbols and thinks (3.11.99) and i could'n use 3.11 due odbc does not work so i'm unable to fixed.. due my current work! Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2018-08-02 15:24 GMT-04:00 Tony Morehen : > If runtime is correct, this obviously can be treated as a low priority. > Why not dive into the Gambas code yourself, find the bug and suggest a > fix? You have a better understanding of the problem than the rest of us. > > On 2018-08-02 01:53 PM, PICCORO McKAY Lenz wrote: > > as this picture shows http://gambaswiki.org/bugtracker/get/COM.1338.4/ > file-1/20180718-230925565-problem-get-from-version.png > > version file seems are not taking right from IDE, but are taking correctly > from runtime! > > IDE does not detect the version number set in the VERSION file, as the > picture show, but the checkbox are selected > > but at runtime everithing are correct! > > this its the n-mail that try to explain that! i hope someone take interest > in thata problem > > > Lenz McKAY Gerardo (PICCORO) > http://qgqlochekone.blogspot.com > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From gambas.fr at gmail.com Fri Aug 3 07:31:42 2018 From: gambas.fr at gmail.com (Fabien Bodard) Date: Fri, 3 Aug 2018 07:31:42 +0200 Subject: [Gambas-user] using try when access devices shadow the errors In-Reply-To: References: <20180801191000.GH17634@highrise.localdomain> <44995cae-35ec-c805-111f-fd581b6be12f@gmail.com> <61a9fc37-d1cc-71c5-0453-112c1def9c33@ajm-software.com> Message-ID: Nevertheless ... great thread about error management ? Thank you Tobias and others. Maybe a copy in a nota bene part of some explanation can be an help... Le jeu. 2 ao?t 2018 21:14, PICCORO McKAY Lenz a ?crit : > i'm glad tobias answer me! > > also noted after that, many others do it! > > but as noted without the second "unwarranted arrogance" mail.. maybe never > will happened! > > Was it really necessary to send a second email with a warm tone so that > they could answer me? > > We must all improve, not only I believe! AND i read carefully that second > mail, it's not so "arrogance" as you pointed! > > be easy! men! > > Lenz McKAY Gerardo (PICCORO) > http://qgqlochekone.blogspot.com > > 2018-08-02 14:57 GMT-04:00 Jussi Lahtinen : > >> "The great silence" may just be due your completely unwarranted arrogance >> towards others. >> >> >> Jussi >> >> On Thu, Aug 2, 2018 at 9:12 PM, PICCORO McKAY Lenz < >> mckaygerhard at gmail.com> wrote: >> >>> ah yeah, must be send to list, so then: >>> >>> > an exceptional product >>> >>> so it's a product or a hobby? we need a product i try to make a product >>> from a product, i rmenber that someone said in old mail that does all >>> of this for hobby.. well sorry someone here confusing this excelent peice >>> of software with a product to make products! >>> >>> > Tobias never said Catch shadows the error >>> >>> i was my fault, i means that tobias said that try shadowns the error, >>> seems you make same mistake like me, do not read the complete threath with >>> caution... >>> >>> so i not critizing the wiki, but that are not pointed in wiki, i try to >>> point that experts users will begin being novice users >>> >>> now mails have lot of examples, recomendations, expert people, puff, etc >>> etc but in the begining a great silence was! >>> >>> >>> >>> Lenz McKAY Gerardo (PICCORO) >>> http://qgqlochekone.blogspot.com >>> >>> 2018-08-02 13:50 GMT-04:00 Tony Morehen : >>> >>>> The wiki/documentation is perfectly clear about Try, Catch, and >>>> Finally. Further, Tobias never said Catch shadows the error! >>>> >>>> Try shadows the error, not Catch. Catch is an error handler. It >>>> behaves as an error handler should ie the error is handled, no need to >>>> raise an exception. >>>> >>>> Here's the standard error process: >>>> >>>> 1) Fill in the Error object >>>> 2) Raise an exception >>>> >>>> This is equivalent to On Error Goto 0 >>>> >>>> Error process with a Try at the start of statement >>>> >>>> 1) Fill in Error object >>>> 2) Resume at the statement following the Try >>>> >>>> This is equivalent to: >>>> On Error Resume Next >>>> statement >>>> On Error Goto 0 >>>> >>>> Error process with a Catch block >>>> >>>> 1) Fill in the Error object >>>> 2) Resume at the statement following the Catch >>>> >>>> This is equivalent to: >>>> On Error Goto Catch >>>> statements >>>> Return >>>> Catch >>>> error handling code >>>> Return >>>> >>>> Error Process with Catch and Finally blocks >>>> >>>> 1) Fill in the Error object >>>> 2) Resume at the statement following the Catch >>>> 3) Execute the Finally code. Finally code is executed even if there is >>>> no error. >>>> >>>> This is equivalent to: >>>> On Error Goto Catch >>>> statements >>>> Goto Finally >>>> Catch >>>> error handling code >>>> Goto Finally >>>> Finally >>>> code that is always executed >>>> >>>> A final word of caution Criticizing the wiki as bluntly as you do, >>>> particularly when that criticism is unwarranted, is likely to irritate the >>>> people that provide us such an exceptional product. Try framing this sort >>>> of criticism as a question, such as "Do we need to add something to the >>>> wiki to make this explicit and avoid confusing novices?" >>>> >>>> >>>> >>>> >>>> >>>> On 2018-08-02 12:04 PM, PICCORO McKAY Lenz wrote: >>>> >>>>> i cited that wiki does not say that error are shadowed by the catch! >>>>> its very important information for novices, taking in consideratino the >>>>> languaje barrier >>>>> >>>>> seems we need more vision here! >>>>> >>>>> >>>>> Lenz McKAY Gerardo (PICCORO) >>>>> http://qgqlochekone.blogspot.com >>>>> >>>>> 2018-08-02 11:56 GMT-04:00 Jussi Lahtinen >>>> >: >>>>> >>>>> >>>>> well i comming from java and C and its common ofr us use >>>>> try/cacht as duple >>>>> >>>>> >>>>> Incorrect. There is no try/catch in C. >>>>> >>>>> >>>>> Jussi >>>>> >>>>> >>>>> >>>>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net >>>>> ]---- >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net >>>>> ]---- >>>>> >>>>> >>>> >>>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net >>>> ]---- >>>> >>> >>> >>> >>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >>> >>> >> >> >> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >> >> > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bagonergi at gmail.com Fri Aug 3 09:45:57 2018 From: bagonergi at gmail.com (Gianluigi) Date: Fri, 3 Aug 2018 09:45:57 +0200 Subject: [Gambas-user] using try when access devices shadow the errors In-Reply-To: References: <20180801191000.GH17634@highrise.localdomain> <44995cae-35ec-c805-111f-fd581b6be12f@gmail.com> <61a9fc37-d1cc-71c5-0453-112c1def9c33@ajm-software.com> Message-ID: +1 ? Maybe add here [0] a link to this thread [1]? Regards Gianluigi [0] http://gambaswiki.org/wiki/cat/error [1] https://lists.gambas-basic.org/pipermail/user/2018-August/065135.html 2018-08-03 7:31 GMT+02:00 Fabien Bodard : > Nevertheless ... great thread about error management ? > > Thank you Tobias and others. > > Maybe a copy in a nota bene part of some explanation can be an help... > > Le jeu. 2 ao?t 2018 21:14, PICCORO McKAY Lenz a > ?crit : > >> i'm glad tobias answer me! >> >> also noted after that, many others do it! >> >> but as noted without the second "unwarranted arrogance" mail.. maybe >> never will happened! >> >> Was it really necessary to send a second email with a warm tone so that >> they could answer me? >> >> We must all improve, not only I believe! AND i read carefully that second >> mail, it's not so "arrogance" as you pointed! >> >> be easy! men! >> >> Lenz McKAY Gerardo (PICCORO) >> http://qgqlochekone.blogspot.com >> >> 2018-08-02 14:57 GMT-04:00 Jussi Lahtinen : >> >>> "The great silence" may just be due your completely unwarranted >>> arrogance towards others. >>> >>> >>> Jussi >>> >>> On Thu, Aug 2, 2018 at 9:12 PM, PICCORO McKAY Lenz < >>> mckaygerhard at gmail.com> wrote: >>> >>>> ah yeah, must be send to list, so then: >>>> >>>> > an exceptional product >>>> >>>> so it's a product or a hobby? we need a product i try to make a product >>>> from a product, i rmenber that someone said in old mail that does all >>>> of this for hobby.. well sorry someone here confusing this excelent peice >>>> of software with a product to make products! >>>> >>>> > Tobias never said Catch shadows the error >>>> >>>> i was my fault, i means that tobias said that try shadowns the error, >>>> seems you make same mistake like me, do not read the complete threath with >>>> caution... >>>> >>>> so i not critizing the wiki, but that are not pointed in wiki, i try to >>>> point that experts users will begin being novice users >>>> >>>> now mails have lot of examples, recomendations, expert people, puff, >>>> etc etc but in the begining a great silence was! >>>> >>>> >>>> >>>> Lenz McKAY Gerardo (PICCORO) >>>> http://qgqlochekone.blogspot.com >>>> >>>> 2018-08-02 13:50 GMT-04:00 Tony Morehen : >>>> >>>>> The wiki/documentation is perfectly clear about Try, Catch, and >>>>> Finally. Further, Tobias never said Catch shadows the error! >>>>> >>>>> Try shadows the error, not Catch. Catch is an error handler. It >>>>> behaves as an error handler should ie the error is handled, no need to >>>>> raise an exception. >>>>> >>>>> Here's the standard error process: >>>>> >>>>> 1) Fill in the Error object >>>>> 2) Raise an exception >>>>> >>>>> This is equivalent to On Error Goto 0 >>>>> >>>>> Error process with a Try at the start of statement >>>>> >>>>> 1) Fill in Error object >>>>> 2) Resume at the statement following the Try >>>>> >>>>> This is equivalent to: >>>>> On Error Resume Next >>>>> statement >>>>> On Error Goto 0 >>>>> >>>>> Error process with a Catch block >>>>> >>>>> 1) Fill in the Error object >>>>> 2) Resume at the statement following the Catch >>>>> >>>>> This is equivalent to: >>>>> On Error Goto Catch >>>>> statements >>>>> Return >>>>> Catch >>>>> error handling code >>>>> Return >>>>> >>>>> Error Process with Catch and Finally blocks >>>>> >>>>> 1) Fill in the Error object >>>>> 2) Resume at the statement following the Catch >>>>> 3) Execute the Finally code. Finally code is executed even if there >>>>> is no error. >>>>> >>>>> This is equivalent to: >>>>> On Error Goto Catch >>>>> statements >>>>> Goto Finally >>>>> Catch >>>>> error handling code >>>>> Goto Finally >>>>> Finally >>>>> code that is always executed >>>>> >>>>> A final word of caution Criticizing the wiki as bluntly as you do, >>>>> particularly when that criticism is unwarranted, is likely to irritate the >>>>> people that provide us such an exceptional product. Try framing this sort >>>>> of criticism as a question, such as "Do we need to add something to the >>>>> wiki to make this explicit and avoid confusing novices?" >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> On 2018-08-02 12:04 PM, PICCORO McKAY Lenz wrote: >>>>> >>>>>> i cited that wiki does not say that error are shadowed by the catch! >>>>>> its very important information for novices, taking in consideratino the >>>>>> languaje barrier >>>>>> >>>>>> seems we need more vision here! >>>>>> >>>>>> >>>>>> Lenz McKAY Gerardo (PICCORO) >>>>>> http://qgqlochekone.blogspot.com >>>>>> >>>>>> 2018-08-02 11:56 GMT-04:00 Jussi Lahtinen >>>>> >: >>>>>> >>>>>> >>>>>> well i comming from java and C and its common ofr us use >>>>>> try/cacht as duple >>>>>> >>>>>> >>>>>> Incorrect. There is no try/catch in C. >>>>>> >>>>>> >>>>>> Jussi >>>>>> >>>>>> >>>>>> >>>>>> ----[ Gambas mailing-list is hosted by >>>>>> https://www.hostsharing.net ]---- >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net >>>>>> ]---- >>>>>> >>>>>> >>>>> >>>>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net >>>>> ]---- >>>>> >>>> >>>> >>>> >>>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net >>>> ]---- >>>> >>>> >>> >>> >>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >>> >>> >> >> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >> > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From gambas.fr at gmail.com Fri Aug 3 09:51:42 2018 From: gambas.fr at gmail.com (Fabien Bodard) Date: Fri, 3 Aug 2018 09:51:42 +0200 Subject: [Gambas-user] using try when access devices shadow the errors In-Reply-To: References: <20180801191000.GH17634@highrise.localdomain> <44995cae-35ec-c805-111f-fd581b6be12f@gmail.com> <61a9fc37-d1cc-71c5-0453-112c1def9c33@ajm-software.com> Message-ID: Or maybe Beno?t can add note part or discuss on wiki... Le ven. 3 ao?t 2018 09:46, Gianluigi a ?crit : > +1 ? > Maybe add here [0] a link to this thread [1]? > Regards > Gianluigi > [0] http://gambaswiki.org/wiki/cat/error > [1] https://lists.gambas-basic.org/pipermail/user/2018-August/065135.html > > 2018-08-03 7:31 GMT+02:00 Fabien Bodard : > >> Nevertheless ... great thread about error management ? >> >> Thank you Tobias and others. >> >> Maybe a copy in a nota bene part of some explanation can be an help... >> >> Le jeu. 2 ao?t 2018 21:14, PICCORO McKAY Lenz a >> ?crit : >> >>> i'm glad tobias answer me! >>> >>> also noted after that, many others do it! >>> >>> but as noted without the second "unwarranted arrogance" mail.. maybe >>> never will happened! >>> >>> Was it really necessary to send a second email with a warm tone so that >>> they could answer me? >>> >>> We must all improve, not only I believe! AND i read carefully that >>> second mail, it's not so "arrogance" as you pointed! >>> >>> be easy! men! >>> >>> Lenz McKAY Gerardo (PICCORO) >>> http://qgqlochekone.blogspot.com >>> >>> 2018-08-02 14:57 GMT-04:00 Jussi Lahtinen : >>> >>>> "The great silence" may just be due your completely unwarranted >>>> arrogance towards others. >>>> >>>> >>>> Jussi >>>> >>>> On Thu, Aug 2, 2018 at 9:12 PM, PICCORO McKAY Lenz < >>>> mckaygerhard at gmail.com> wrote: >>>> >>>>> ah yeah, must be send to list, so then: >>>>> >>>>> > an exceptional product >>>>> >>>>> so it's a product or a hobby? we need a product i try to make a >>>>> product from a product, i rmenber that someone said in old mail that >>>>> does all of this for hobby.. well sorry someone here confusing this >>>>> excelent peice of software with a product to make products! >>>>> >>>>> > Tobias never said Catch shadows the error >>>>> >>>>> i was my fault, i means that tobias said that try shadowns the error, >>>>> seems you make same mistake like me, do not read the complete threath with >>>>> caution... >>>>> >>>>> so i not critizing the wiki, but that are not pointed in wiki, i try >>>>> to point that experts users will begin being novice users >>>>> >>>>> now mails have lot of examples, recomendations, expert people, puff, >>>>> etc etc but in the begining a great silence was! >>>>> >>>>> >>>>> >>>>> Lenz McKAY Gerardo (PICCORO) >>>>> http://qgqlochekone.blogspot.com >>>>> >>>>> 2018-08-02 13:50 GMT-04:00 Tony Morehen : >>>>> >>>>>> The wiki/documentation is perfectly clear about Try, Catch, and >>>>>> Finally. Further, Tobias never said Catch shadows the error! >>>>>> >>>>>> Try shadows the error, not Catch. Catch is an error handler. It >>>>>> behaves as an error handler should ie the error is handled, no need to >>>>>> raise an exception. >>>>>> >>>>>> Here's the standard error process: >>>>>> >>>>>> 1) Fill in the Error object >>>>>> 2) Raise an exception >>>>>> >>>>>> This is equivalent to On Error Goto 0 >>>>>> >>>>>> Error process with a Try at the start of statement >>>>>> >>>>>> 1) Fill in Error object >>>>>> 2) Resume at the statement following the Try >>>>>> >>>>>> This is equivalent to: >>>>>> On Error Resume Next >>>>>> statement >>>>>> On Error Goto 0 >>>>>> >>>>>> Error process with a Catch block >>>>>> >>>>>> 1) Fill in the Error object >>>>>> 2) Resume at the statement following the Catch >>>>>> >>>>>> This is equivalent to: >>>>>> On Error Goto Catch >>>>>> statements >>>>>> Return >>>>>> Catch >>>>>> error handling code >>>>>> Return >>>>>> >>>>>> Error Process with Catch and Finally blocks >>>>>> >>>>>> 1) Fill in the Error object >>>>>> 2) Resume at the statement following the Catch >>>>>> 3) Execute the Finally code. Finally code is executed even if there >>>>>> is no error. >>>>>> >>>>>> This is equivalent to: >>>>>> On Error Goto Catch >>>>>> statements >>>>>> Goto Finally >>>>>> Catch >>>>>> error handling code >>>>>> Goto Finally >>>>>> Finally >>>>>> code that is always executed >>>>>> >>>>>> A final word of caution Criticizing the wiki as bluntly as you do, >>>>>> particularly when that criticism is unwarranted, is likely to irritate the >>>>>> people that provide us such an exceptional product. Try framing this sort >>>>>> of criticism as a question, such as "Do we need to add something to the >>>>>> wiki to make this explicit and avoid confusing novices?" >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> On 2018-08-02 12:04 PM, PICCORO McKAY Lenz wrote: >>>>>> >>>>>>> i cited that wiki does not say that error are shadowed by the catch! >>>>>>> its very important information for novices, taking in consideratino the >>>>>>> languaje barrier >>>>>>> >>>>>>> seems we need more vision here! >>>>>>> >>>>>>> >>>>>>> Lenz McKAY Gerardo (PICCORO) >>>>>>> http://qgqlochekone.blogspot.com >>>>>>> >>>>>>> 2018-08-02 11:56 GMT-04:00 Jussi Lahtinen >>>>>> >: >>>>>>> >>>>>>> >>>>>>> well i comming from java and C and its common ofr us use >>>>>>> try/cacht as duple >>>>>>> >>>>>>> >>>>>>> Incorrect. There is no try/catch in C. >>>>>>> >>>>>>> >>>>>>> Jussi >>>>>>> >>>>>>> >>>>>>> >>>>>>> ----[ Gambas mailing-list is hosted by >>>>>>> https://www.hostsharing.net ]---- >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net >>>>>>> ]---- >>>>>>> >>>>>>> >>>>>> >>>>>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net >>>>>> ]---- >>>>>> >>>>> >>>>> >>>>> >>>>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net >>>>> ]---- >>>>> >>>>> >>>> >>>> >>>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net >>>> ]---- >>>> >>>> >>> >>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >>> >> >> >> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >> >> > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From adamnt42 at gmail.com Fri Aug 3 11:15:11 2018 From: adamnt42 at gmail.com (Adam Ant) Date: Fri, 3 Aug 2018 18:45:11 +0930 Subject: [Gambas-user] using try when access devices shadow the errors In-Reply-To: References: <20180801191000.GH17634@highrise.localdomain> <44995cae-35ec-c805-111f-fd581b6be12f@gmail.com> <61a9fc37-d1cc-71c5-0453-112c1def9c33@ajm-software.com> Message-ID: Isn't this stuff in the IDE startup hints? That's where a lot of important info is hidden On Fri, Aug 3, 2018, 5:22 PM Fabien Bodard wrote: > Or maybe Beno?t can add note part or discuss on wiki... > > Le ven. 3 ao?t 2018 09:46, Gianluigi a ?crit : > >> +1 ? >> Maybe add here [0] a link to this thread [1]? >> Regards >> Gianluigi >> [0] http://gambaswiki.org/wiki/cat/error >> [1] https://lists.gambas-basic.org/pipermail/user/2018-August/065135.html >> >> 2018-08-03 7:31 GMT+02:00 Fabien Bodard : >> >>> Nevertheless ... great thread about error management ? >>> >>> Thank you Tobias and others. >>> >>> Maybe a copy in a nota bene part of some explanation can be an help... >>> >>> Le jeu. 2 ao?t 2018 21:14, PICCORO McKAY Lenz >>> a ?crit : >>> >>>> i'm glad tobias answer me! >>>> >>>> also noted after that, many others do it! >>>> >>>> but as noted without the second "unwarranted arrogance" mail.. maybe >>>> never will happened! >>>> >>>> Was it really necessary to send a second email with a warm tone so that >>>> they could answer me? >>>> >>>> We must all improve, not only I believe! AND i read carefully that >>>> second mail, it's not so "arrogance" as you pointed! >>>> >>>> be easy! men! >>>> >>>> Lenz McKAY Gerardo (PICCORO) >>>> http://qgqlochekone.blogspot.com >>>> >>>> 2018-08-02 14:57 GMT-04:00 Jussi Lahtinen : >>>> >>>>> "The great silence" may just be due your completely unwarranted >>>>> arrogance towards others. >>>>> >>>>> >>>>> Jussi >>>>> >>>>> On Thu, Aug 2, 2018 at 9:12 PM, PICCORO McKAY Lenz < >>>>> mckaygerhard at gmail.com> wrote: >>>>> >>>>>> ah yeah, must be send to list, so then: >>>>>> >>>>>> > an exceptional product >>>>>> >>>>>> so it's a product or a hobby? we need a product i try to make a >>>>>> product from a product, i rmenber that someone said in old mail that >>>>>> does all of this for hobby.. well sorry someone here confusing this >>>>>> excelent peice of software with a product to make products! >>>>>> >>>>>> > Tobias never said Catch shadows the error >>>>>> >>>>>> i was my fault, i means that tobias said that try shadowns the error, >>>>>> seems you make same mistake like me, do not read the complete threath with >>>>>> caution... >>>>>> >>>>>> so i not critizing the wiki, but that are not pointed in wiki, i try >>>>>> to point that experts users will begin being novice users >>>>>> >>>>>> now mails have lot of examples, recomendations, expert people, puff, >>>>>> etc etc but in the begining a great silence was! >>>>>> >>>>>> >>>>>> >>>>>> Lenz McKAY Gerardo (PICCORO) >>>>>> http://qgqlochekone.blogspot.com >>>>>> >>>>>> 2018-08-02 13:50 GMT-04:00 Tony Morehen : >>>>>> >>>>>>> The wiki/documentation is perfectly clear about Try, Catch, and >>>>>>> Finally. Further, Tobias never said Catch shadows the error! >>>>>>> >>>>>>> Try shadows the error, not Catch. Catch is an error handler. It >>>>>>> behaves as an error handler should ie the error is handled, no need to >>>>>>> raise an exception. >>>>>>> >>>>>>> Here's the standard error process: >>>>>>> >>>>>>> 1) Fill in the Error object >>>>>>> 2) Raise an exception >>>>>>> >>>>>>> This is equivalent to On Error Goto 0 >>>>>>> >>>>>>> Error process with a Try at the start of statement >>>>>>> >>>>>>> 1) Fill in Error object >>>>>>> 2) Resume at the statement following the Try >>>>>>> >>>>>>> This is equivalent to: >>>>>>> On Error Resume Next >>>>>>> statement >>>>>>> On Error Goto 0 >>>>>>> >>>>>>> Error process with a Catch block >>>>>>> >>>>>>> 1) Fill in the Error object >>>>>>> 2) Resume at the statement following the Catch >>>>>>> >>>>>>> This is equivalent to: >>>>>>> On Error Goto Catch >>>>>>> statements >>>>>>> Return >>>>>>> Catch >>>>>>> error handling code >>>>>>> Return >>>>>>> >>>>>>> Error Process with Catch and Finally blocks >>>>>>> >>>>>>> 1) Fill in the Error object >>>>>>> 2) Resume at the statement following the Catch >>>>>>> 3) Execute the Finally code. Finally code is executed even if there >>>>>>> is no error. >>>>>>> >>>>>>> This is equivalent to: >>>>>>> On Error Goto Catch >>>>>>> statements >>>>>>> Goto Finally >>>>>>> Catch >>>>>>> error handling code >>>>>>> Goto Finally >>>>>>> Finally >>>>>>> code that is always executed >>>>>>> >>>>>>> A final word of caution Criticizing the wiki as bluntly as you do, >>>>>>> particularly when that criticism is unwarranted, is likely to irritate the >>>>>>> people that provide us such an exceptional product. Try framing this sort >>>>>>> of criticism as a question, such as "Do we need to add something to the >>>>>>> wiki to make this explicit and avoid confusing novices?" >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> On 2018-08-02 12:04 PM, PICCORO McKAY Lenz wrote: >>>>>>> >>>>>>>> i cited that wiki does not say that error are shadowed by the >>>>>>>> catch! its very important information for novices, taking in consideratino >>>>>>>> the languaje barrier >>>>>>>> >>>>>>>> seems we need more vision here! >>>>>>>> >>>>>>>> >>>>>>>> Lenz McKAY Gerardo (PICCORO) >>>>>>>> http://qgqlochekone.blogspot.com >>>>>>>> >>>>>>>> 2018-08-02 11:56 GMT-04:00 Jussi Lahtinen >>>>>>> >: >>>>>>>> >>>>>>>> >>>>>>>> well i comming from java and C and its common ofr us use >>>>>>>> try/cacht as duple >>>>>>>> >>>>>>>> >>>>>>>> Incorrect. There is no try/catch in C. >>>>>>>> >>>>>>>> >>>>>>>> Jussi >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> ----[ Gambas mailing-list is hosted by >>>>>>>> https://www.hostsharing.net ]---- >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net >>>>>>>> ]---- >>>>>>>> >>>>>>>> >>>>>>> >>>>>>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net >>>>>>> ]---- >>>>>>> >>>>>> >>>>>> >>>>>> >>>>>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net >>>>>> ]---- >>>>>> >>>>>> >>>>> >>>>> >>>>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net >>>>> ]---- >>>>> >>>>> >>>> >>>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net >>>> ]---- >>>> >>> >>> >>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >>> >>> >> >> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >> > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From t.lee.davidson at gmail.com Fri Aug 3 18:50:33 2018 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Fri, 3 Aug 2018 12:50:33 -0400 Subject: [Gambas-user] using try when access devices shadow the errors In-Reply-To: References: <20180801191000.GH17634@highrise.localdomain> <44995cae-35ec-c805-111f-fd581b6be12f@gmail.com> <61a9fc37-d1cc-71c5-0453-112c1def9c33@ajm-software.com> Message-ID: On 08/03/2018 05:15 AM, Adam Ant wrote: > Isn't this stuff in the IDE startup hints?? That's where a lot of important info is hidden Where are the IDE startup hints? > > > On Fri, Aug 3, 2018, 5:22 PM Fabien Bodard > wrote: > > Or maybe Beno?t can add note part or discuss on wiki... > > Le ven. 3 ao?t 2018 09:46, Gianluigi > a ?crit?: > > +1 ? > Maybe add here [0] a link to this thread [1]? > Regards > Gianluigi > [0] http://gambaswiki.org/wiki/cat/error > [1] https://lists.gambas-basic.org/pipermail/user/2018-August/065135.html > > 2018-08-03 7:31 GMT+02:00 Fabien Bodard >: > > Nevertheless ... great thread about error management ? > > Thank you Tobias and others.? > > Maybe a copy in a nota bene part of some explanation can be an help... > ___ Lee P.S. > Le jeu. 2 ao?t 2018 21:14, PICCORO McKAY Lenz > a ?crit?: > > i'm glad tobias answer me! > > also noted after that, many others do it! > > but as noted without the second "unwarranted arrogance" mail.. maybe never will happened! > > Was it really necessary to send a second email with a warm tone so that they could answer me? > > We must all improve, not only I believe! AND i read carefully that second mail, it's not so "arrogance" as you > pointed! > > be easy! men! > > Lenz McKAY Gerardo (PICCORO) > http://qgqlochekone.blogspot.com > I suspect, PICCORO, that Jussi was not referring to the second message you sent which asked, again, for help which is not a problem. Logically, one would be referring to the message to which one was responding. And, I have to agree with the sentiment that Jussi expressed. I personally am grateful for the work and generosity of Beno?t and others. From mckaygerhard at gmail.com Fri Aug 3 19:18:54 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Fri, 3 Aug 2018 13:18:54 -0400 Subject: [Gambas-user] using try when access devices shadow the errors In-Reply-To: References: <20180801191000.GH17634@highrise.localdomain> <44995cae-35ec-c805-111f-fd581b6be12f@gmail.com> <61a9fc37-d1cc-71c5-0453-112c1def9c33@ajm-software.com> Message-ID: 2018-08-03 12:50 GMT-04:00 T Lee Davidson : > On 08/03/2018 05:15 AM, Adam Ant wrote: > > Isn't this stuff in the IDE startup hints? That's where a lot of > important info is hidden > > Where are the IDE startup hints? > it's on the sources at the app directory, there's two project here and inside more, one of them are the ide but the name it's not "ide" the exact path are app/src/gambas3/tips in the gambas sources > > > > > > > > On Fri, Aug 3, 2018, 5:22 PM Fabien Bodard gambas.fr at gmail.com>> wrote: > > > > Or maybe Beno?t can add note part or discuss on wiki... > > > > Le ven. 3 ao?t 2018 09:46, Gianluigi bagonergi at gmail.com>> a ?crit : > > > > +1 ? > > Maybe add here [0] a link to this thread [1]? > > Regards > > Gianluigi > > [0] http://gambaswiki.org/wiki/cat/error > > [1] https://lists.gambas-basic.org/pipermail/user/2018- > August/065135.html > > > > 2018-08-03 7:31 GMT+02:00 Fabien Bodard >: > > > > Nevertheless ... great thread about error management ? > > > > Thank you Tobias and others. > > > > Maybe a copy in a nota bene part of some explanation can be > an help... > > > > > ___ > Lee > > P.S. > > > Le jeu. 2 ao?t 2018 21:14, PICCORO McKAY Lenz < > mckaygerhard at gmail.com > a ?crit : > > > > i'm glad tobias answer me! > > > > also noted after that, many others do it! > > > > but as noted without the second "unwarranted arrogance" > mail.. maybe never will happened! > > > > Was it really necessary to send a second email with a > warm tone so that they could answer me? > > > > We must all improve, not only I believe! AND i read > carefully that second mail, it's not so "arrogance" as you > > pointed! > > > > be easy! men! > > > > Lenz McKAY Gerardo (PICCORO) > > http://qgqlochekone.blogspot.com > > > > I suspect, PICCORO, that Jussi was not referring to the second message you > sent which asked, again, for help which is not a > problem. Logically, one would be referring to the message to which one was > responding. And, I have to agree with the sentiment > that Jussi expressed. I personally am grateful for the work and generosity > of Beno?t and others. > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From kicking177 at gmail.com Fri Aug 3 19:25:53 2018 From: kicking177 at gmail.com (KKing) Date: Fri, 3 Aug 2018 18:25:53 +0100 Subject: [Gambas-user] Function Parameter Out ? Message-ID: <8a7d5947-a69a-57c6-0ba0-f8153852e555@gmail.com> Can a Function update the content of the parameter values before returning and or have the concept of the "OUT" parameter? K. From d4t4full at gmail.com Fri Aug 3 19:38:49 2018 From: d4t4full at gmail.com (ML) Date: Fri, 3 Aug 2018 14:38:49 -0300 Subject: [Gambas-user] Function Parameter Out ? In-Reply-To: <8a7d5947-a69a-57c6-0ba0-f8153852e555@gmail.com> References: <8a7d5947-a69a-57c6-0ba0-f8153852e555@gmail.com> Message-ID: <9c2171dd-d692-c174-e74f-f8bce4a7d48a@gmail.com> *On 03/08/18 14:25, KKing wrote:* > Can a Function update the content of the parameter values before > returning and or have the concept of the "OUT" parameter? > K. Yes, altough you suuuure know it's "not a good programming practice", right? (ahem) To achieve it you should use the ByRef parameter access modifier, but the tweak is that you should use in both, the call AND the sub/function declaration: ??? ' Gambas class file ??? ??? Public Sub Form_Open() ??? ??? ??? Dim i As Integer = 10 ??? ??? ??? ChangeInputParameter(ByRef i)??? ??? ??? ??? ??? ??? ??? ??? ??? ??? ??? ?? 'Note the BYREF modifier ??? ??? ??? Message.Info("I = " & CStr(i)) ??? ??? End ??? ??? Private Sub ChangeInputParameter(ByRef myVar As Integer)??? 'Note the BYREF modifier ??? ??? ??? myVar = myVar + 10 ??? ??? End Also: Try removing any one of the two ByRef keywords. You can, of course, also use ByRef in Functions, not only in Subs. This was just a Q&D (quick & dirty) example. Don't know if it can be used in Properties, though... zxMarce. -------------- next part -------------- An HTML attachment was scrubbed... URL: From jussi.lahtinen at gmail.com Fri Aug 3 22:02:12 2018 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Fri, 3 Aug 2018 23:02:12 +0300 Subject: [Gambas-user] using try when access devices shadow the errors In-Reply-To: References: <20180801191000.GH17634@highrise.localdomain> <44995cae-35ec-c805-111f-fd581b6be12f@gmail.com> <61a9fc37-d1cc-71c5-0453-112c1def9c33@ajm-software.com> Message-ID: You can enable them from IDE, select menu item "?" --> "Tips of the day". Jussi On Fri, Aug 3, 2018 at 8:18 PM, PICCORO McKAY Lenz wrote: > 2018-08-03 12:50 GMT-04:00 T Lee Davidson : > >> On 08/03/2018 05:15 AM, Adam Ant wrote: >> > Isn't this stuff in the IDE startup hints? That's where a lot of >> important info is hidden >> >> Where are the IDE startup hints? >> > it's on the sources at the app directory, there's two project here and > inside more, one of them are the ide but the name it's not "ide" > > the exact path are app/src/gambas3/tips in the gambas sources > > > >> >> >> > >> > >> > On Fri, Aug 3, 2018, 5:22 PM Fabien Bodard > > wrote: >> > >> > Or maybe Beno?t can add note part or discuss on wiki... >> > >> > Le ven. 3 ao?t 2018 09:46, Gianluigi > bagonergi at gmail.com>> a ?crit : >> > >> > +1 ? >> > Maybe add here [0] a link to this thread [1]? >> > Regards >> > Gianluigi >> > [0] http://gambaswiki.org/wiki/cat/error >> > [1] https://lists.gambas-basic.org/pipermail/user/2018-August/ >> 065135.html >> > >> > 2018-08-03 7:31 GMT+02:00 Fabien Bodard > >: >> > >> > Nevertheless ... great thread about error management ? >> > >> > Thank you Tobias and others. >> > >> > Maybe a copy in a nota bene part of some explanation can be >> an help... >> > >> >> >> ___ >> Lee >> >> P.S. >> >> > Le jeu. 2 ao?t 2018 21:14, PICCORO McKAY Lenz < >> mckaygerhard at gmail.com > a ?crit : >> > >> > i'm glad tobias answer me! >> > >> > also noted after that, many others do it! >> > >> > but as noted without the second "unwarranted arrogance" >> mail.. maybe never will happened! >> > >> > Was it really necessary to send a second email with a >> warm tone so that they could answer me? >> > >> > We must all improve, not only I believe! AND i read >> carefully that second mail, it's not so "arrogance" as you >> > pointed! >> > >> > be easy! men! >> > >> > Lenz McKAY Gerardo (PICCORO) >> > http://qgqlochekone.blogspot.com >> > >> >> I suspect, PICCORO, that Jussi was not referring to the second message >> you sent which asked, again, for help which is not a >> problem. Logically, one would be referring to the message to which one >> was responding. And, I have to agree with the sentiment >> that Jussi expressed. I personally am grateful for the work and >> generosity of Beno?t and others. >> >> >> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >> > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From gambas.fr at gmail.com Sat Aug 4 08:12:49 2018 From: gambas.fr at gmail.com (Fabien Bodard) Date: Sat, 4 Aug 2018 08:12:49 +0200 Subject: [Gambas-user] Function Parameter Out ? In-Reply-To: <9c2171dd-d692-c174-e74f-f8bce4a7d48a@gmail.com> References: <8a7d5947-a69a-57c6-0ba0-f8153852e555@gmail.com> <9c2171dd-d692-c174-e74f-f8bce4a7d48a@gmail.com> Message-ID: Well there is also the tricks of passing an array If you modify a value in an object... you modify the object not the ref... so it's an indirect byref argument Le ven. 3 ao?t 2018 19:40, ML a ?crit : > *On 03/08/18 14:25, KKing wrote:* > > Can a Function update the content of the parameter values before returning > and or have the concept of the "OUT" parameter? > K. > > > Yes, altough you suuuure know it's "not a good programming practice", > right? (ahem) > To achieve it you should use the ByRef parameter access modifier, but the > tweak is that you should use in both, the call AND the sub/function > declaration: > > ' Gambas class file > > Public Sub Form_Open() > > Dim i As Integer = 10 > > ChangeInputParameter(ByRef i) > 'Note the BYREF modifier > > Message.Info("I = " & CStr(i)) > > End > > Private Sub ChangeInputParameter(ByRef myVar As Integer) 'Note the > BYREF modifier > > myVar = myVar + 10 > > End > > Also: Try removing any one of the two ByRef keywords. > > You can, of course, also use ByRef in Functions, not only in Subs. This > was just a Q&D (quick & dirty) example. > Don't know if it can be used in Properties, though... > > zxMarce. > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From kicking177 at gmail.com Sat Aug 4 10:41:09 2018 From: kicking177 at gmail.com (KKing) Date: Sat, 4 Aug 2018 09:41:09 +0100 Subject: [Gambas-user] Function Parameter Out ? Message-ID: <64199b30-8498-b5e0-14fa-65631ad084b3@gmail.com> << To achieve it you should use the ByRef parameter access modifier >> many thanks << "good programming practice" >> My opinion that is used way too much for just opinions and sometimes egotistical ones. In this case creating a bespoke class to encapsulate various contents to pass in and have the function return it back that class that then needs to be interrogated is just another way to achieve the same result. My definition is if the coding is simple, straight forward and makes it clear what is happening by code and comments. The latter especially if less clear choices are made for performance or security reasons. K. From d4t4full at gmail.com Sat Aug 4 17:19:41 2018 From: d4t4full at gmail.com (d4t4full at gmail.com) Date: Sat, 04 Aug 2018 12:19:41 -0300 Subject: [Gambas-user] Function Parameter Out ? In-Reply-To: <64199b30-8498-b5e0-14fa-65631ad084b3@gmail.com> References: <64199b30-8498-b5e0-14fa-65631ad084b3@gmail.com> Message-ID: My intention was just a light comic irony, hence the quotes and excess "u" in "sure"... Glad it helped. On Aug 4, 2018, 05:42, at 05:42, KKing wrote: ><< >To achieve it you should use the ByRef parameter access modifier > >> >many thanks > ><< >"good programming practice" > >> >My opinion that is used way too much for just opinions and sometimes >egotistical ones. > >In this case creating a bespoke class to encapsulate various contents >to >pass in and have the function return it back that class that then needs > >to be interrogated is just another way to achieve the same result. > >My definition is if the coding is simple, straight forward and makes it > >clear what is happening by code and comments. The latter especially if >less clear choices are made for performance or security reasons. > >K. > > >----[ Gambas mailing-list is hosted by https://www.hostsharing.net >]---- -------------- next part -------------- An HTML attachment was scrubbed... URL: From taboege at gmail.com Sun Aug 5 14:19:51 2018 From: taboege at gmail.com (Tobias Boege) Date: Sun, 5 Aug 2018 14:19:51 +0200 Subject: [Gambas-user] [Off Topic] using try when access devices shadow the errors In-Reply-To: References: <61a9fc37-d1cc-71c5-0453-112c1def9c33@ajm-software.com> Message-ID: <20180805121950.GC1109@highrise.localdomain> On Fri, 03 Aug 2018, Adam Ant wrote: > Isn't this stuff in the IDE startup hints? That's where a lot of important > info is hidden > It probably is! I haven't seen the startup hints in so many years that I forgot they existed [ but I remember Adam Ant and his alter ego, even though it has been some time, too :-) ]. But when I started learning Gambas, some of them were incredibly helpful. They are like training wheels for what I advise as often as I can: read the actual Gambas source code of a class that interests you. It's not that hard and chances are high that you catch a class that was written by a master and correctly uses the full palette of Gambas features, each where applicable. But I know the response to that. Ain't no shrimp got time fo' that. Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From a1jr5t81 at protonmail.com Sun Aug 5 22:10:54 2018 From: a1jr5t81 at protonmail.com (pmb) Date: Sun, 05 Aug 2018 20:10:54 +0000 Subject: [Gambas-user] Unsubscribed - Still Getting Messages Message-ID: Sent from ProtonMail, Swiss-based encrypted email. Sunday, 5 August 2018 Good Day Gambas Mailing List . . . I have notified the list a few times to be removed but I am still getting 'some' messages. Two things maybe, (1) I am not removed. In which case please remove my address. Thank You. (2) Someone is using an old list and my address is still on it. Please look into it. Thank You Two recent messages are included. From: Tobias Boege August 5, 2018 8:19 AM To Gambas Mailing List This email has failed its domain's authentication requirements. It may be spoofed or improperly forwarded! Learn more. This message is from a mailing list. Learn more On Fri, 03 Aug 2018, Adam Ant wrote: > Isn't this stuff in the IDE startup hints? That's where a lot of important > info is hidden > It probably is! I haven't seen the startup hints in so many years that I forgot they existed [ but I remember Adam Ant and his alter ego, even though it has been some time, too :-) ]. But when I started learning Gambas, some of them were incredibly helpful. They are like training wheels for what I advise as often as I can: read the actual Gambas source code of a class that interests you. It's not that hard and chances are high that you catch a class that was written by a master and correctly uses the full palette of Gambas features, each where applicable. But I know the response to that. Ain't no shrimp got time fo' that. Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- another message From: KKing 08/03/2018 (2 days ago) To: user at lists.gambas-basic.org This email has failed its domain's authentication requirements. It may be spoofed or improperly forwarded! Learn more. This message is from a mailing list. Learn more Can a Function update the content of the parameter values before returning and or have the concept of the "OUT" parameter? K. ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- From: ML 08/03/2018 (2 days ago) From: Fabien Bodard 08/04/2018 (2 days ago) From: KKing 08/04/2018 (a day ago) From: d4t4full at gmail.com 08/04/2018 (a day ago) From jussi.lahtinen at gmail.com Sun Aug 5 23:03:15 2018 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Mon, 6 Aug 2018 00:03:15 +0300 Subject: [Gambas-user] JIT Crash In-Reply-To: References: Message-ID: I forgot to add this: see the sub named Ploo() it causes the crash indirectly. Jussi On Wed, Aug 1, 2018 at 11:30 PM, Jussi Lahtinen wrote: > Run the attached project. > > > Jussi > -------------- next part -------------- An HTML attachment was scrubbed... URL: From chrisml at deganius.de Mon Aug 6 07:57:10 2018 From: chrisml at deganius.de (Christof Thalhofer) Date: Mon, 6 Aug 2018 07:57:10 +0200 Subject: [Gambas-user] Unsubscribed - Still Getting Messages In-Reply-To: References: Message-ID: <727a74ce-85f1-e60e-ef23-dfbc4193a603@deganius.de> Hello, Am 05.08.2018 um 22:10 schrieb pmb via User: > Good Day Gambas Mailing List . . . > > I have notified the list a few times to be removed but I am still getting 'some' messages. > > Two things maybe, > > (1) I am not removed. In which case please remove my address. Thank You. Yes, that was the case. I unsubscribed the address. Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: OpenPGP digital signature URL: From g4mba5 at gmail.com Mon Aug 6 13:34:04 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Mon, 6 Aug 2018 13:34:04 +0200 Subject: [Gambas-user] [CRASH REPORT] COMMANDE SHELL In-Reply-To: References: Message-ID: Le 01/08/2018 ? 21:15, Pierre Henri a ?crit?: > Hello, > > Damned, my program crashed Gambas that way : > > Probl?me r?sultat apr?s execution *Shell* "commande" > > > Ne produit pas le m?me r?sultat si j' > ?xecute la commande > ? > ?partir de la console > Linux et sous Gambas ? partir de la commande Shell. > > Pierre Henri GIRAUD > > > *_EXECUTION A PARTIR DE LA CONSOLE LINUX_* > > *mkdir -p Professeurs/{P1/P11,P2/P21,P3/{p31,p32/P320,p33}} > Eleves/{el1,el2,el3}* > > > Le resultat est conforme > > > PS: LinuxMint/Ubuntu 17.10 > > > > *_EXECUTION SOUS GAMBAS3 A PARTIR DE L'APPEL AU SHELL_* > (Copi?-Coll? de la commande depuis la console ) > > *Shell "mkdir -p Professeurs/{P1/P11,P2/P21,P3/{p31,p32/P320,p33}} > Eleves/{el1,el2,el3}"* > * > * > Le r?sultat n'est pas identique sinon un peu farfelu ! > > Ou est probl?me ? > Please write in english. The problem is that SHELL uses "/bin/sh", by default, and that "{...}" is a bash syntax. To fix that, tell Gambas which shell you want to use with the System.Shell property: System.Shell = "/bin/bash" Regards, -- Beno?t Minisini From mckaygerhard at gmail.com Mon Aug 6 14:08:04 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Mon, 6 Aug 2018 08:08:04 -0400 Subject: [Gambas-user] [Off Topic] using try when access devices shadow the errors In-Reply-To: <20180805121950.GC1109@highrise.localdomain> References: <61a9fc37-d1cc-71c5-0453-112c1def9c33@ajm-software.com> <20180805121950.GC1109@highrise.localdomain> Message-ID: the exact path are app/src/gambas3/tips in the gambas sources Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com El dom., 5 de ago. de 2018 a la(s) 08:20, Tobias Boege (taboege at gmail.com) escribi?: > On Fri, 03 Aug 2018, Adam Ant wrote: > > Isn't this stuff in the IDE startup hints? That's where a lot of > important > > info is hidden > > > > It probably is! I haven't seen the startup hints in so many years that > I forgot they existed [ but I remember Adam Ant and his alter ego, > even though it has been some time, too :-) ]. But when I started learning > Gambas, some of them were incredibly helpful. They are like training wheels > for what I advise as often as I can: read the actual Gambas source code > of a class that interests you. It's not that hard and chances are high > that you catch a class that was written by a master and correctly uses > the full palette of Gambas features, each where applicable. But I know > the response to that. Ain't no shrimp got time fo' that. > > Regards, > Tobi > > -- > "There's an old saying: Don't change anything... ever!" -- Mr. Monk > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mckaygerhard at gmail.com Mon Aug 6 15:43:31 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Mon, 6 Aug 2018 09:13:31 -0430 Subject: [Gambas-user] using events of serial ports for reading how_? Message-ID: i'm again, with "strange" BUT INTERESTING questions following the recommendations of tobias, i try to use events on my class and i made: public sub SCom_DSRChange(current Boolean) if Scomm.status = net.active then if scomm.dsr then try readmyport() endif endif end but nevert enter/raises/triggered!!! my intencion is, "after a write to the port, as soon as possible made a reading to the stream" why or how can i made that? thanks in advance Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From mckaygerhard at gmail.com Mon Aug 6 15:59:24 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Mon, 6 Aug 2018 09:59:24 -0400 Subject: [Gambas-user] using events of serial ports for reading how_? In-Reply-To: <1cbba6dd-8103-48a3-e3ae-ca7a45334409@gambas-buch.de> References: <1cbba6dd-8103-48a3-e3ae-ca7a45334409@gambas-buch.de> Message-ID: El lun., 6 de ago. de 2018 a la(s) 09:52, Hans Lehmann (hans at gambas-buch.de) escribi?: > have a look at the chapters and the projects... under > https://www.gambas-buch.de/doku.php?id=k24:k24.1:k24.1.5:start! > THANKS HANS! now reading... isend this mail to the list.. maybe you send too quickly and forgett to do! -------------- next part -------------- An HTML attachment was scrubbed... URL: From mckaygerhard at gmail.com Mon Aug 6 18:05:51 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Mon, 6 Aug 2018 12:05:51 -0400 Subject: [Gambas-user] using events of serial ports for reading how_? In-Reply-To: References: <1cbba6dd-8103-48a3-e3ae-ca7a45334409@gambas-buch.de> Message-ID: OK hans, and tobias, yes the code in my first mail last week was bad, now i understant some problems when i read agains the printert but i need and i want a manual read funtion "also": so i have now: the read event for the port, as documents suggest "is triggered" when data "can be read" so if there's some data to read or available the event will be executed by itselft, but i want also a manual "rp" method that read also the port manually, at this point i dont know if will be sync or async, i have a "sale" class that will be polled into a form, but as Tobias said i used the Scom_Read but still need a manual read funtion due the inherits so i have : 1) the read event: ' this event will be triggered in read operations by the stream when data its available Public Sub SComm_Read() dim buffers as string = '' Read #SComm, buffers, Lof(SComm) dataread &= buffers End 2) here, how can i code a read manual operation do not conflict if there's already an operation triggered by teh read event? i used some code proposed by Tobias but: '' generic read port buffer data Public Sub rp() dim start as date = Now dim buffers as string = '' Do Wait 0.1 Read #SComm, buffers, Lof(SComm) dataread &= buffers Loop Until DateDiff(start, Now, gb.Millisecond) > 500 End now i have the problem of locking, as Tobias said I not even sure how Read behaves when Lof is zero or if the read are just triggered at same time the rp was invoqued! so then reading would block. i dont know how to use the SComm.Blocking = False to make manual polling, Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com El lun., 6 de ago. de 2018 a la(s) 09:59, PICCORO McKAY Lenz ( mckaygerhard at gmail.com) escribi?: > El lun., 6 de ago. de 2018 a la(s) 09:52, Hans Lehmann ( > hans at gambas-buch.de) escribi?: > >> have a look at the chapters and the projects... under >> https://www.gambas-buch.de/doku.php?id=k24:k24.1:k24.1.5:start! >> > THANKS HANS! now reading... > isend this mail to the list.. maybe you send too quickly and forgett to > do! > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From t.lee.davidson at gmail.com Mon Aug 6 19:40:42 2018 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Mon, 6 Aug 2018 13:40:42 -0400 Subject: [Gambas-user] using events of serial ports for reading how_? In-Reply-To: References: <1cbba6dd-8103-48a3-e3ae-ca7a45334409@gambas-buch.de> Message-ID: You will have problems if you try to utilize both an event triggered serial port read and a manual read. The SerialPort.Read event is triggered when there is data available to be read. If you read that data in the event handler, the port is cleared and there will be no data available to a manual read. If you want to manually read the port, then you should not read the data from it in the SerialPort.Read event handler. Perhaps you do not even need to implement that event handler. I could be incorrect since I haven't verified this. But, it seems logical to me that Stream.Blocking would be False by default otherwise an attempt to read the port would hang the application until data is available and that should not be a default behavior. I can think of two ways to implement manual reading. 1. Do not implement a SerialPort.Read event handler, ensure that Stream.Blocking = False, and simply read the port manually understanding that there may be no data available. In this case READ would appear to do nothing, but the application would not hang. 2. Use the SerialPort.Read event handler to set a flag indicating that data is available and read that flag in your Sub rp() function. For example: Private PortDataAvailable As Boolean Public Sub SComm_Read() PortDataAvailable = True End Public Sub rp() If myDataAvailableBoolean then ' Do the port reading stuff ' Read port blah blah blah ' All data has been read PortDataAvailable = False Else Print "No data available" Return Endif End ___ Lee On 08/06/2018 12:05 PM, PICCORO McKAY Lenz wrote: > OK hans, and tobias, yes the code in my first mail last week was bad, > now i understant some problems when i read agains the printert > but i need and i want a manual read funtion "also": so i have now: > > the read event for the port, as documents suggest "is triggered" > when data "can be read" so if there's some data to read or available > the event will be executed by itselft, but i want also a manual "rp" method > that read also the port manually, at this point i dont know > if will be sync or async, i have a "sale" class that will be polled into a form, > but as Tobias said i used the Scom_Read > but still need a manual read funtion due the inherits so i have : > > 1) the read event: > > ' this event will be triggered in read operations by the stream when data its available > Public Sub SComm_Read() > ?? dim buffers as string = '' > ? Read #SComm, buffers, Lof(SComm) > ?? dataread &= buffers > End > > 2) here, how can i code a read manual operation do not conflict if there's already an operation triggered by teh read event? > > i used some code proposed by Tobias but: > > '' generic read port buffer data > Public Sub rp() > ?? dim? start as date = Now > ?? dim buffers as string = '' > ? Do > ? ? Wait 0.1 > ? ? Read #SComm, buffers, Lof(SComm) > ? ? dataread &= buffers > ? Loop Until DateDiff(start, Now, gb.Millisecond) > 500 > End > > now i have the problem of locking, as Tobias said I not even sure how Read > behaves when Lof is zero or if the read are just triggered at same time the rp was invoqued! > so then reading would block. > > i dont know how to use the SComm.Blocking = False to make manual polling, > > > Lenz McKAY Gerardo (PICCORO) > http://qgqlochekone.blogspot.com > > > El lun., 6 de ago. de 2018 a la(s) 09:59, PICCORO McKAY Lenz (mckaygerhard at gmail.com ) escribi?: > > El lun., 6 de ago. de 2018 a la(s) 09:52, Hans Lehmann (hans at gambas-buch.de ) escribi?: > > have a look at the chapters and the projects... under https://www.gambas-buch.de/doku.php?id=k24:k24.1:k24.1.5:start! > > THANKS HANS! now reading... > ?isend this mail to the list.. maybe you send too quickly and forgett to do! > > > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > From mckaygerhard at gmail.com Mon Aug 6 23:10:12 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Mon, 6 Aug 2018 17:10:12 -0400 Subject: [Gambas-user] using events of serial ports for reading how_? In-Reply-To: References: <1cbba6dd-8103-48a3-e3ae-ca7a45334409@gambas-buch.de> Message-ID: um ok make sense that if there's already a event handler why use the manual reading.. the problem its that sometimes i made manual reading an get extra data that are not in the event handler (yep sound quite strange) due i'm managing a fiscal kit printer device i'll try to use your semaphore, but there's another way maybe using the* CTSChange * *DCDChange * *DSRChange * *DTRChange * *RNGChange * *RTSChange * ?? Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com El lun., 6 de ago. de 2018 a la(s) 13:41, T Lee Davidson ( t.lee.davidson at gmail.com) escribi?: > You will have problems if you try to utilize both an event triggered > serial port read and a manual read. > > The SerialPort.Read event is triggered when there is data available to be > read. If you read that data in the event handler, the > port is cleared and there will be no data available to a manual read. > > If you want to manually read the port, then you should not read the data > from it in the SerialPort.Read event handler. Perhaps > you do not even need to implement that event handler. > > I could be incorrect since I haven't verified this. But, it seems logical > to me that Stream.Blocking would be False by default > otherwise an attempt to read the port would hang the application until > data is available and that should not be a default behavior. > > I can think of two ways to implement manual reading. > > 1. Do not implement a SerialPort.Read event handler, ensure that > Stream.Blocking = False, and simply read the port manually > understanding that there may be no data available. In this case READ would > appear to do nothing, but the application would not hang. > > 2. Use the SerialPort.Read event handler to set a flag indicating that > data is available and read that flag in your Sub rp() > function. For example: > > Private PortDataAvailable As Boolean > > Public Sub SComm_Read() > PortDataAvailable = True > End > > Public Sub rp() > If myDataAvailableBoolean then > ' Do the port reading stuff > ' Read port blah blah blah > ' All data has been read > PortDataAvailable = False > Else > Print "No data available" > Return > Endif > End > > > ___ > Lee > > > On 08/06/2018 12:05 PM, PICCORO McKAY Lenz wrote: > > OK hans, and tobias, yes the code in my first mail last week was bad, > > now i understant some problems when i read agains the printert > > but i need and i want a manual read funtion "also": so i have now: > > > > the read event for the port, as documents suggest "is triggered" > > when data "can be read" so if there's some data to read or available > > the event will be executed by itselft, but i want also a manual "rp" > method > > that read also the port manually, at this point i dont know > > if will be sync or async, i have a "sale" class that will be polled into > a form, > > but as Tobias said i used the Scom_Read > > but still need a manual read funtion due the inherits so i have : > > > > 1) the read event: > > > > ' this event will be triggered in read operations by the stream when > data its available > > Public Sub SComm_Read() > > dim buffers as string = '' > > Read #SComm, buffers, Lof(SComm) > > dataread &= buffers > > End > > > > 2) here, how can i code a read manual operation do not conflict if > there's already an operation triggered by teh read event? > > > > i used some code proposed by Tobias but: > > > > '' generic read port buffer data > > Public Sub rp() > > dim start as date = Now > > dim buffers as string = '' > > Do > > Wait 0.1 > > Read #SComm, buffers, Lof(SComm) > > dataread &= buffers > > Loop Until DateDiff(start, Now, gb.Millisecond) > 500 > > End > > > > now i have the problem of locking, as Tobias said I not even sure how > Read > > behaves when Lof is zero or if the read are just triggered at same time > the rp was invoqued! > > so then reading would block. > > > > i dont know how to use the SComm.Blocking = False to make manual polling, > > > > > > Lenz McKAY Gerardo (PICCORO) > > http://qgqlochekone.blogspot.com > > > > > > El lun., 6 de ago. de 2018 a la(s) 09:59, PICCORO McKAY Lenz ( > mckaygerhard at gmail.com ) escribi?: > > > > El lun., 6 de ago. de 2018 a la(s) 09:52, Hans Lehmann ( > hans at gambas-buch.de ) escribi?: > > > > have a look at the chapters and the projects... under > https://www.gambas-buch.de/doku.php?id=k24:k24.1:k24.1.5:start! > > > > THANKS HANS! now reading... > > isend this mail to the list.. maybe you send too quickly and > forgett to do! > > > > > > > > > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From tmorehen at ajm-software.com Tue Aug 7 05:34:55 2018 From: tmorehen at ajm-software.com (Tony Morehen) Date: Mon, 6 Aug 2018 23:34:55 -0400 Subject: [Gambas-user] using events of serial ports for reading how_? In-Reply-To: <92cf35e1-c696-023f-3c93-a3a7c3cf35b1@ajmconsulting.ca> References: <92cf35e1-c696-023f-3c93-a3a7c3cf35b1@ajmconsulting.ca> Message-ID: <60ab6b42-c889-7acf-5a46-1577c499975a@ajm-software.com> -------- Forwarded Message -------- Subject: Re: [Gambas-user] using events of serial ports for reading how_? Date: Mon, 6 Aug 2018 20:12:50 -0400 From: Tony Morehen To: PICCORO McKAY Lenz In modern serial communications, there is almost no use for CTS, DCD, DSR, DTR,RNG, RTS, all of it at the driver level.? The driver handles all handshaking and flow control.? Further, your serial port reads and writes are not made directly to the serial port but to buffers in the driver. You must remember that serial port communications are slow. That's the reason you have missing or leftover data. The sequence is something like: 1) Printer starts to send a line of data 2) Driver receives a byte, raises a read event 3) Your programs responds, likely before the end of the line, reading what's currently in the driver's buffer. 4) Printer finishes sending the rest of the line, triggering more read events. Serial communications tend to be packet-based so your low level read routine should read an entire packet before raising a dataavailable event: If each received byte is independent, say a instrument reading, raise a dataavailable event for every byte. If a packet is fixed-length, raise the event every packet-length bytes.? Fixed-length packets frequently have sync bytes between packets.? These should be ignored.? Decide how to handle partial packets. Variable length packets have to be handled according to their structure.? Some will be packet followed by an end of packet marker.? Raise the dataavailable event when your program encounters the marker. Other variable-length packets will inclu On 2018-08-06 05:10 PM, PICCORO McKAY Lenz wrote: > um ok make sense that if there's already a event handler why use the > manual reading.. > > the problem its that sometimes i made manual reading an get extra data > that are not in the event handler (yep sound quite strange) due i'm > managing a fiscal kit printer device > > i'll try to use your semaphore, but there's another way maybe using > the_CTSChange > _ > _DCDChange > _ > _DSRChange > _ > _DTRChange > _ > _RNGChange > _ > _RTSChange > _ > ?? > > Lenz McKAY Gerardo (PICCORO) > http://qgqlochekone.blogspot.com > > > El lun., 6 de ago. de 2018 a la(s) 13:41, T Lee Davidson > (t.lee.davidson at gmail.com ) escribi?: > > You will have problems if you try to utilize both an event > triggered serial port read and a manual read. > > The SerialPort.Read event is triggered when there is data > available to be read. If you read that data in the event handler, the > port is cleared and there will be no data available to a manual read. > > If you want to manually read the port, then you should not read > the data from it in the SerialPort.Read event handler. Perhaps > you do not even need to implement that event handler. > > I could be incorrect since I haven't verified this. But, it seems > logical to me that Stream.Blocking would be False by default > otherwise an attempt to read the port would hang the application > until data is available and that should not be a default behavior. > > I can think of two ways to implement manual reading. > > 1. Do not implement a SerialPort.Read event handler, ensure that > Stream.Blocking = False, and simply read the port manually > understanding that there may be no data available. In this case > READ would appear to do nothing, but the application would not hang. > > 2. Use the SerialPort.Read event handler to set a flag indicating > that data is available and read that flag in your Sub rp() > function. For example: > > Private PortDataAvailable As Boolean > > Public Sub SComm_Read() > ? ? ? ? PortDataAvailable = True > End > > Public Sub rp() > ? ? ? ? If myDataAvailableBoolean then > ? ? ? ? ? ? ? ? ' Do the port reading stuff > ? ? ? ? ? ? ? ? ' Read port blah blah blah > ? ? ? ? ? ? ? ? ' All data has been read > ? ? ? ? ? ? ? ? PortDataAvailable = False > ? ? ? ? Else > ? ? ? ? ? ? ? ? Print "No data available" > ? ? ? ? ? ? ? ? Return > ? ? ? ? Endif > End > > > ___ > Lee > > > On 08/06/2018 12:05 PM, PICCORO McKAY Lenz wrote: > > OK hans, and tobias, yes the code in my first mail last week was > bad, > > now i understant some problems when i read agains the printert > > but i need and i want a manual read funtion "also": so i have now: > > > > the read event for the port, as documents suggest "is triggered" > > when data "can be read" so if there's some data to read or available > > the event will be executed by itselft, but i want also a manual > "rp" method > > that read also the port manually, at this point i dont know > > if will be sync or async, i have a "sale" class that will be > polled into a form, > > but as Tobias said i used the Scom_Read > > but still need a manual read funtion due the inherits so i have : > > > > 1) the read event: > > > > ' this event will be triggered in read operations by the stream > when data its available > > Public Sub SComm_Read() > > ?? dim buffers as string = '' > > ? Read #SComm, buffers, Lof(SComm) > > ?? dataread &= buffers > > End > > > > 2) here, how can i code a read manual operation do not conflict > if there's already an operation triggered by teh read event? > > > > i used some code proposed by Tobias but: > > > > '' generic read port buffer data > > Public Sub rp() > > ?? dim? start as date = Now > > ?? dim buffers as string = '' > > ? Do > > ? ? Wait 0.1 > > ? ? Read #SComm, buffers, Lof(SComm) > > ? ? dataread &= buffers > > ? Loop Until DateDiff(start, Now, gb.Millisecond) > 500 > > End > > > > now i have the problem of locking, as Tobias said I not even > sure how Read > > behaves when Lof is zero or if the read are just triggered at > same time the rp was invoqued! > > so then reading would block. > > > > i dont know how to use the SComm.Blocking = False to make manual > polling, > > > > > > Lenz McKAY Gerardo (PICCORO) > > http://qgqlochekone.blogspot.com > > > > > > El lun., 6 de ago. de 2018 a la(s) 09:59, PICCORO McKAY Lenz > (mckaygerhard at gmail.com > >) > escribi?: > > > >? ? ?El lun., 6 de ago. de 2018 a la(s) 09:52, Hans Lehmann > (hans at gambas-buch.de > >) escribi?: > > > >? ? ? ? ?have a look at the chapters and the projects... under > https://www.gambas-buch.de/doku.php?id=k24:k24.1:k24.1.5:start! > > > >? ? ?THANKS HANS! now reading... > >? ? ??isend this mail to the list.. maybe you send too quickly > and forgett to do! > > > > > > > > > > > > ----[ Gambas mailing-list is hosted by > https://www.hostsharing.net ]---- > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net > ]---- > > > > ----[ Gambas mailing-list is hosted byhttps://www.hostsharing.net ]---- From mike.crean at y7mail.com Tue Aug 7 07:53:31 2018 From: mike.crean at y7mail.com (Mike Crean) Date: Tue, 7 Aug 2018 05:53:31 +0000 (UTC) Subject: [Gambas-user] using events of serial ports for reading how_? In-Reply-To: <60ab6b42-c889-7acf-5a46-1577c499975a@ajm-software.com> References: <92cf35e1-c696-023f-3c93-a3a7c3cf35b1@ajmconsulting.ca> <60ab6b42-c889-7acf-5a46-1577c499975a@ajm-software.com> Message-ID: <790274409.3110289.1533621211448@mail.yahoo.com> I disagree that theRS232, RS485 controls are no longer relevant. Industrial automationuses these controls quite extensively when talking to PLC?s RTU?sand specialised control hardware that is controlled by the Modbus,DMP3 and many other industrial communications protocols. The speedover a network is generally not an issue as most industrial processare slow when compared to RS232, RS485 data speeds of around 9600 orthe now common 19200 BAUD rates. I have had extensive experience withthis type of communication over many years controlling and remotecontrol of small Power Stations of 1 to 10 megawatt using 1 megawattmodules. Each module uses at least 1 PLC per generator and up to anadditional 5 or 6 for general utility control and at least 1 RTU.These are generally all serviced over a RS485 network at 9600 BAUD. Ihave not seen any bottle necks with this number of devices as long asnetwork usage is prioritised correctly. Regards Mike On Tuesday, 7 August 2018, 11:36:07 am AWST, Tony Morehen wrote: -------- Forwarded Message -------- Subject: ??? Re: [Gambas-user] using events of serial ports for reading how_? Date: ??? Mon, 6 Aug 2018 20:12:50 -0400 From: ??? Tony Morehen To: ??? PICCORO McKAY Lenz In modern serial communications, there is almost no use for CTS, DCD, DSR, DTR,RNG, RTS, all of it at the driver level.? The driver handles all handshaking and flow control.? Further, your serial port reads and writes are not made directly to the serial port but to buffers in the driver. You must remember that serial port communications are slow. That's the reason you have missing or leftover data. The sequence is something like: 1) Printer starts to send a line of data 2) Driver receives a byte, raises a read event 3) Your programs responds, likely before the end of the line, reading what's currently in the driver's buffer. 4) Printer finishes sending the rest of the line, triggering more read events. Serial communications tend to be packet-based so your low level read routine should read an entire packet before raising a dataavailable event: If each received byte is independent, say a instrument reading, raise a dataavailable event for every byte. If a packet is fixed-length, raise the event every packet-length bytes.? Fixed-length packets frequently have sync bytes between packets.? These should be ignored.? Decide how to handle partial packets. Variable length packets have to be handled according to their structure.? Some will be packet followed by an end of packet marker.? Raise the dataavailable event when your program encounters the marker. Other variable-length packets will inclu On 2018-08-06 05:10 PM, PICCORO McKAY Lenz wrote: > um ok make sense that if there's already a event handler why use the > manual reading.. > > the problem its that sometimes i made manual reading an get extra data > that are not in the event handler (yep sound quite strange) due i'm > managing a fiscal kit printer device > > i'll try to use your semaphore, but there's another way maybe using > the_CTSChange > _ > _DCDChange > _ > _DSRChange > _ > _DTRChange > _ > _RNGChange > _ > _RTSChange > _ > ?? > > Lenz McKAY Gerardo (PICCORO) > http://qgqlochekone.blogspot.com > > > El lun., 6 de ago. de 2018 a la(s) 13:41, T Lee Davidson > (t.lee.davidson at gmail.com ) escribi?: > >? ? You will have problems if you try to utilize both an event >? ? triggered serial port read and a manual read. > >? ? The SerialPort.Read event is triggered when there is data >? ? available to be read. If you read that data in the event handler, the >? ? port is cleared and there will be no data available to a manual read. > >? ? If you want to manually read the port, then you should not read >? ? the data from it in the SerialPort.Read event handler. Perhaps >? ? you do not even need to implement that event handler. > >? ? I could be incorrect since I haven't verified this. But, it seems >? ? logical to me that Stream.Blocking would be False by default >? ? otherwise an attempt to read the port would hang the application >? ? until data is available and that should not be a default behavior. > >? ? I can think of two ways to implement manual reading. > >? ? 1. Do not implement a SerialPort.Read event handler, ensure that >? ? Stream.Blocking = False, and simply read the port manually >? ? understanding that there may be no data available. In this case >? ? READ would appear to do nothing, but the application would not hang. > >? ? 2. Use the SerialPort.Read event handler to set a flag indicating >? ? that data is available and read that flag in your Sub rp() >? ? function. For example: > >? ? Private PortDataAvailable As Boolean > >? ? Public Sub SComm_Read() >? ? ? ? ? ? PortDataAvailable = True >? ? End > >? ? Public Sub rp() >? ? ? ? ? ? If myDataAvailableBoolean then >? ? ? ? ? ? ? ? ? ? ' Do the port reading stuff >? ? ? ? ? ? ? ? ? ? ' Read port blah blah blah >? ? ? ? ? ? ? ? ? ? ' All data has been read >? ? ? ? ? ? ? ? ? ? PortDataAvailable = False >? ? ? ? ? ? Else >? ? ? ? ? ? ? ? ? ? Print "No data available" >? ? ? ? ? ? ? ? ? ? Return >? ? ? ? ? ? Endif >? ? End > > >? ? ___ >? ? Lee > > >? ? On 08/06/2018 12:05 PM, PICCORO McKAY Lenz wrote: >? ? > OK hans, and tobias, yes the code in my first mail last week was >? ? bad, >? ? > now i understant some problems when i read agains the printert >? ? > but i need and i want a manual read funtion "also": so i have now: >? ? > >? ? > the read event for the port, as documents suggest "is triggered" >? ? > when data "can be read" so if there's some data to read or available >? ? > the event will be executed by itselft, but i want also a manual >? ? "rp" method >? ? > that read also the port manually, at this point i dont know >? ? > if will be sync or async, i have a "sale" class that will be >? ? polled into a form, >? ? > but as Tobias said i used the Scom_Read >? ? > but still need a manual read funtion due the inherits so i have : >? ? > >? ? > 1) the read event: >? ? > >? ? > ' this event will be triggered in read operations by the stream >? ? when data its available >? ? > Public Sub SComm_Read() >? ? > ?? dim buffers as string = '' >? ? > ? Read #SComm, buffers, Lof(SComm) >? ? > ?? dataread &= buffers >? ? > End >? ? > >? ? > 2) here, how can i code a read manual operation do not conflict >? ? if there's already an operation triggered by teh read event? >? ? > >? ? > i used some code proposed by Tobias but: >? ? > >? ? > '' generic read port buffer data >? ? > Public Sub rp() >? ? > ?? dim? start as date = Now >? ? > ?? dim buffers as string = '' >? ? > ? Do >? ? > ? ? Wait 0.1 >? ? > ? ? Read #SComm, buffers, Lof(SComm) >? ? > ? ? dataread &= buffers >? ? > ? Loop Until DateDiff(start, Now, gb.Millisecond) > 500 >? ? > End >? ? > >? ? > now i have the problem of locking, as Tobias said I not even >? ? sure how Read >? ? > behaves when Lof is zero or if the read are just triggered at >? ? same time the rp was invoqued! >? ? > so then reading would block. >? ? > >? ? > i dont know how to use the SComm.Blocking = False to make manual >? ? polling, >? ? > >? ? > >? ? > Lenz McKAY Gerardo (PICCORO) >? ? > http://qgqlochekone.blogspot.com >? ? > >? ? > >? ? > El lun., 6 de ago. de 2018 a la(s) 09:59, PICCORO McKAY Lenz >? ? (mckaygerhard at gmail.com >? ? >) >? ? escribi?: >? ? > >? ? >? ? ?El lun., 6 de ago. de 2018 a la(s) 09:52, Hans Lehmann >? ? (hans at gambas-buch.de >? ? >) escribi?: >? ? > >? ? >? ? ? ? ?have a look at the chapters and the projects... under >? ? https://www.gambas-buch.de/doku.php?id=k24:k24.1:k24.1.5:start! >? ? > >? ? >? ? ?THANKS HANS! now reading... >? ? >? ? ??isend this mail to the list.. maybe you send too quickly >? ? and forgett to do! >? ? > >? ? > >? ? > >? ? > >? ? > >? ? > ----[ Gambas mailing-list is hosted by >? ? https://www.hostsharing.net ]---- >? ? > > >? ? ----[ Gambas mailing-list is hosted by https://www.hostsharing.net >? ? ]---- > > > > ----[ Gambas mailing-list is hosted byhttps://www.hostsharing.net? ]---- ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- -------------- next part -------------- An HTML attachment was scrubbed... URL: From tmorehen at ajm-software.com Tue Aug 7 15:40:00 2018 From: tmorehen at ajm-software.com (Tony Morehen) Date: Tue, 7 Aug 2018 09:40:00 -0400 Subject: [Gambas-user] using events of serial ports for reading how_? In-Reply-To: <790274409.3110289.1533621211448@mail.yahoo.com> References: <92cf35e1-c696-023f-3c93-a3a7c3cf35b1@ajmconsulting.ca> <60ab6b42-c889-7acf-5a46-1577c499975a@ajm-software.com> <790274409.3110289.1533621211448@mail.yahoo.com> Message-ID: I wasn't clear enough.? I agree that serial communications remain important.? However, user space programs no longer need to deal with the low level details of handshaking and flow control.? That is now handled by the kernel space driver.? In virtually all cases, user space programs can ignore CTS, DCD, DSR, DTR, RNG, RTS, and just read and write to the serial port as a stream. One issue that may arise, the linux kernel only uses CTS/RTS for flow control; it ignores DSR/DTS. On 2018-08-07 01:53 AM, Mike Crean via User wrote: > > I disagree that the RS232, RS485 controls are no longer relevant. > Industrial automation uses these controls quite extensively when > talking to PLC?s RTU?s and specialised control hardware that is > controlled by the Modbus, DMP3 and many other industrial > communications protocols. The speed over a network is generally not an > issue as most industrial process are slow when compared to RS232, > RS485 data speeds of around 9600 or the now common 19200 BAUD rates. I > have had extensive experience with this type of communication over > many years controlling and remote control of small Power Stations of 1 > to 10 megawatt using 1 megawatt modules. Each module uses at least 1 > PLC per generator and up to an additional 5 or 6 for general utility > control and at least 1 RTU. These are generally all serviced over a > RS485 network at 9600 BAUD. I have not seen any bottle necks with this > number of devices as long as network usage is prioritised correctly. > > > Regards > > Mike > > > > > > > > On Tuesday, 7 August 2018, 11:36:07 am AWST, Tony Morehen > wrote: > > > > > > -------- Forwarded Message -------- > Subject: ??? Re: [Gambas-user] using events of serial ports for > reading how_? > Date: ??? Mon, 6 Aug 2018 20:12:50 -0400 > From: ??? Tony Morehen > > To: ??? PICCORO McKAY Lenz > > > > > In modern serial communications, there is almost no use for CTS, DCD, > DSR, DTR,RNG, RTS, all of it at the driver level.? The driver handles > all handshaking and flow control.? Further, your serial port reads and > writes are not made directly to the serial port but to buffers in the > driver. > > You must remember that serial port communications are slow. That's the > reason you have missing or leftover data. The sequence is something like: > > 1) Printer starts to send a line of data > 2) Driver receives a byte, raises a read event > 3) Your programs responds, likely before the end of the line, reading > what's currently in the driver's buffer. > 4) Printer finishes sending the rest of the line, triggering more read > events. > > Serial communications tend to be packet-based so your low level read > routine should read an entire packet before raising a dataavailable event: > > If each received byte is independent, say a instrument reading, raise a > dataavailable event for every byte. > > If a packet is fixed-length, raise the event every packet-length bytes. > Fixed-length packets frequently have sync bytes between packets.? These > should be ignored.? Decide how to handle partial packets. > > Variable length packets have to be handled according to their > structure.? Some will be packet followed by an end of packet marker. > Raise the dataavailable event when your program encounters the marker. > > Other variable-length packets will inclu > > > On 2018-08-06 05:10 PM, PICCORO McKAY Lenz wrote: > > um ok make sense that if there's already a event handler why use the > > manual reading.. > > > > the problem its that sometimes i made manual reading an get extra data > > that are not in the event handler (yep sound quite strange) due i'm > > managing a fiscal kit printer device > > > > i'll try to use your semaphore, but there's another way maybe using > > the_CTSChange > > _ > > _DCDChange > > _ > > _DSRChange > > _ > > _DTRChange > > _ > > _RNGChange > > _ > > _RTSChange > > _ > > ?? > > > > Lenz McKAY Gerardo (PICCORO) > > http://qgqlochekone.blogspot.com > > > > > > El lun., 6 de ago. de 2018 a la(s) 13:41, T Lee Davidson > > (t.lee.davidson at gmail.com > >) > escribi?: > > > >? ? You will have problems if you try to utilize both an event > >? ? triggered serial port read and a manual read. > > > >? ? The SerialPort.Read event is triggered when there is data > >? ? available to be read. If you read that data in the event handler, the > >? ? port is cleared and there will be no data available to a manual read. > > > >? ? If you want to manually read the port, then you should not read > >? ? the data from it in the SerialPort.Read event handler. Perhaps > >? ? you do not even need to implement that event handler. > > > >? ? I could be incorrect since I haven't verified this. But, it seems > >? ? logical to me that Stream.Blocking would be False by default > >? ? otherwise an attempt to read the port would hang the application > >? ? until data is available and that should not be a default behavior. > > > >? ? I can think of two ways to implement manual reading. > > > >? ? 1. Do not implement a SerialPort.Read event handler, ensure that > >? ? Stream.Blocking = False, and simply read the port manually > >? ? understanding that there may be no data available. In this case > >? ? READ would appear to do nothing, but the application would not hang. > > > >? ? 2. Use the SerialPort.Read event handler to set a flag indicating > >? ? that data is available and read that flag in your Sub rp() > >? ? function. For example: > > > >? ? Private PortDataAvailable As Boolean > > > >? ? Public Sub SComm_Read() > >? ? ? ? ? ? PortDataAvailable = True > >? ? End > > > >? ? Public Sub rp() > >? ? ? ? ? ? If myDataAvailableBoolean then > >? ? ? ? ? ? ? ? ? ? ' Do the port reading stuff > >? ? ? ? ? ? ? ? ? ? ' Read port blah blah blah > >? ? ? ? ? ? ? ? ? ? ' All data has been read > >? ? ? ? ? ? ? ? ? ? PortDataAvailable = False > >? ? ? ? ? ? Else > >? ? ? ? ? ? ? ? ? ? Print "No data available" > >? ? ? ? ? ? ? ? ? ? Return > >? ? ? ? ? ? Endif > >? ? End > > > > > >? ? ___ > >? ? Lee > > > > > >? ? On 08/06/2018 12:05 PM, PICCORO McKAY Lenz wrote: > >? ? > OK hans, and tobias, yes the code in my first mail last week was > >? ? bad, > >? ? > now i understant some problems when i read agains the printert > >? ? > but i need and i want a manual read funtion "also": so i have now: > >? ? > > >? ? > the read event for the port, as documents suggest "is triggered" > >? ? > when data "can be read" so if there's some data to read or > available > >? ? > the event will be executed by itselft, but i want also a manual > >? ? "rp" method > >? ? > that read also the port manually, at this point i dont know > >? ? > if will be sync or async, i have a "sale" class that will be > >? ? polled into a form, > >? ? > but as Tobias said i used the Scom_Read > >? ? > but still need a manual read funtion due the inherits so i have : > >? ? > > >? ? > 1) the read event: > >? ? > > >? ? > ' this event will be triggered in read operations by the stream > >? ? when data its available > >? ? > Public Sub SComm_Read() > >? ? > ?? dim buffers as string = '' > >? ? > ? Read #SComm, buffers, Lof(SComm) > >? ? > ?? dataread &= buffers > >? ? > End > >? ? > > >? ? > 2) here, how can i code a read manual operation do not conflict > >? ? if there's already an operation triggered by teh read event? > >? ? > > >? ? > i used some code proposed by Tobias but: > >? ? > > >? ? > '' generic read port buffer data > >? ? > Public Sub rp() > >? ? > ?? dim? start as date = Now > >? ? > ?? dim buffers as string = '' > >? ? > ? Do > >? ? > ? ? Wait 0.1 > >? ? > ? ? Read #SComm, buffers, Lof(SComm) > >? ? > ? ? dataread &= buffers > >? ? > ? Loop Until DateDiff(start, Now, gb.Millisecond) > 500 > >? ? > End > >? ? > > >? ? > now i have the problem of locking, as Tobias said I not even > >? ? sure how Read > >? ? > behaves when Lof is zero or if the read are just triggered at > >? ? same time the rp was invoqued! > >? ? > so then reading would block. > >? ? > > >? ? > i dont know how to use the SComm.Blocking = False to make manual > >? ? polling, > >? ? > > >? ? > > >? ? > Lenz McKAY Gerardo (PICCORO) > >? ? > http://qgqlochekone.blogspot.com > >? ? > > >? ? > > >? ? > El lun., 6 de ago. de 2018 a la(s) 09:59, PICCORO McKAY Lenz > >? ? (mckaygerhard at gmail.com > > > >? ? > >>) > >? ? escribi?: > >? ? > > >? ? >? ? ?El lun., 6 de ago. de 2018 a la(s) 09:52, Hans Lehmann > >? ? (hans at gambas-buch.de > > > >? ? > >>) escribi?: > >? ? > > >? ? >? ? ? ? ?have a look at the chapters and the projects... under > > https://www.gambas-buch.de/doku.php?id=k24:k24.1:k24.1.5:start! > >? ? > > >? ? >? ? ?THANKS HANS! now reading... > >? ? >? ? ??isend this mail to the list.. maybe you send too quickly > >? ? and forgett to do! > >? ? > > >? ? > > >? ? > > >? ? > > >? ? > > >? ? > ----[ Gambas mailing-list is hosted by > > https://www.hostsharing.net ]---- > >? ? > > > > >? ? ----[ Gambas mailing-list is hosted by https://www.hostsharing.net > >? ? ]---- > > > > > > > > ----[ Gambas mailing-list is hosted byhttps://www.hostsharing.net? ]---- > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net > ]---- > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- -------------- next part -------------- An HTML attachment was scrubbed... URL: From bagonergi at gmail.com Tue Aug 7 16:05:16 2018 From: bagonergi at gmail.com (Gianluigi) Date: Tue, 7 Aug 2018 16:05:16 +0200 Subject: [Gambas-user] Format$ for numbers Message-ID: I confirm the bugs, for the separator of thousands, already reported on Format$ (in French a space in German, Spanish and Italian an underscore stroke), so I have the excuse to ask what form is correct: This --> Print Format$(n, "#,###.#0") Or this --> Print Format$(n, "#,#.#0") Or... Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Tue Aug 7 16:08:23 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Tue, 7 Aug 2018 16:08:23 +0200 Subject: [Gambas-user] Format$ for numbers In-Reply-To: References: Message-ID: Le 07/08/2018 ? 16:05, Gianluigi a ?crit?: > I confirm the bugs, for the separator of thousands, already reported on > Format$ (in French a space in German, Spanish and Italian an underscore > stroke), so I have the excuse to ask what form is correct: > This --> Print Format$(n, "#,###.#0") > Or this --> Print Format$(n, "#,#.#0") > Or... > Regards > Gianluigi > > > Thousand separators are used as soon as there is a comma in the formatting string before the point, and at least one digit. Regards, -- Beno?t Minisini From bagonergi at gmail.com Tue Aug 7 16:22:10 2018 From: bagonergi at gmail.com (Gianluigi) Date: Tue, 7 Aug 2018 16:22:10 +0200 Subject: [Gambas-user] Format$ for numbers In-Reply-To: References: Message-ID: 2018-08-07 16:08 GMT+02:00 Beno?t Minisini : > Le 07/08/2018 ? 16:05, Gianluigi a ?crit : > >> I confirm the bugs, for the separator of thousands, already reported on >> Format$ (in French a space in German, Spanish and Italian an underscore >> stroke), so I have the excuse to ask what form is correct: >> This --> Print Format$(n, "#,###.#0") >> Or this --> Print Format$(n, "#,#.#0") >> Or... >> Regards >> Gianluigi >> >> >> >> > Thousand separators are used as soon as there is a comma in the formatting > string before the point, and at least one digit. > > Regards, > > -- > Beno?t Minisini > > Sorry my ignorance, but I did not understand the answer :-( Attach example Regards Gianluigi > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: FormatTest-0.0.1.tar.gz Type: application/gzip Size: 11199 bytes Desc: not available URL: From g4mba5 at gmail.com Tue Aug 7 16:39:43 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Tue, 7 Aug 2018 16:39:43 +0200 Subject: [Gambas-user] Format$ for numbers In-Reply-To: References: Message-ID: <46b3f47b-75b0-403e-a4b4-1cc0f0c5059a@gmail.com> Le 07/08/2018 ? 16:22, Gianluigi a ?crit?: > > Thousand separators are used as soon as there is a comma in the > formatting string before the point, and at least one digit. > > Regards, > > -- > Beno?t Minisini > > > Sorry my ignorance, but I did not understand the answer :-( > Attach example > > Regards > Gianluigi > I mean that you can just write: Format(N, ",#") To get thousand separators. You don't have to write three "#" in the format string. Regards, -- Beno?t Minisini From bagonergi at gmail.com Tue Aug 7 16:49:32 2018 From: bagonergi at gmail.com (Gianluigi) Date: Tue, 7 Aug 2018 16:49:32 +0200 Subject: [Gambas-user] Format$ for numbers In-Reply-To: <46b3f47b-75b0-403e-a4b4-1cc0f0c5059a@gmail.com> References: <46b3f47b-75b0-403e-a4b4-1cc0f0c5059a@gmail.com> Message-ID: 2018-08-07 16:39 GMT+02:00 Beno?t Minisini : > Le 07/08/2018 ? 16:22, Gianluigi a ?crit : > >> >> Thousand separators are used as soon as there is a comma in the >> formatting string before the point, and at least one digit. >> >> Regards, >> >> -- Beno?t Minisini >> >> >> Sorry my ignorance, but I did not understand the answer :-( >> Attach example >> >> Regards >> Gianluigi >> >> > I mean that you can just write: > > Format(N, ",#") > > To get thousand separators. > > You don't have to write three "#" in the format string. > > Regards, > > -- > Beno?t Minisini > > So if I also need two decimals the correct form is: Print Format$(N, ",#.#0") Thank you very much Regards Gianluigi > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From t.lee.davidson at gmail.com Tue Aug 7 18:05:52 2018 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Tue, 7 Aug 2018 12:05:52 -0400 Subject: [Gambas-user] using events of serial ports for reading how_? In-Reply-To: References: <1cbba6dd-8103-48a3-e3ae-ca7a45334409@gambas-buch.de> Message-ID: <6792f341-6b4d-d508-507d-6678d13406bf@gmail.com> Maybe using those events is another way to do what exactly? Even if any of them signal that data is available, the _Read event already does that for you. I must have missed what you are trying to accomplish by doing a manual read. Perhaps your goal could be accomplished by implementing a SerialPort.Read event handler that adds the incoming data to a global accumulator, and then manually reading the accumulator and clearing it once it's read. However, that may run into collisions and data integrity issues if you try to manually read from, or clear, the accumulator while the event handler is writing to it. I am unfamiliar with how event handlers are managed within the event loop, so I am unsure whether or not using a semaphore could prevent such collisions. Or, maybe using a Queue would meet your need: http://gambaswiki.org/wiki/comp/gb.data/queue . (It's unfortunate that there's not much documentation on that.) ___ Lee On 08/06/2018 05:10 PM, PICCORO McKAY Lenz wrote: > i'll try to use your semaphore, but there's another way maybe using the CTSChange > DCDChange DSRChange DTRChange RNGChange RTSChange > ?? From mckaygerhard at gmail.com Tue Aug 7 18:52:18 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Tue, 7 Aug 2018 12:52:18 -0400 Subject: [Gambas-user] using events of serial ports for reading how_? In-Reply-To: References: <92cf35e1-c696-023f-3c93-a3a7c3cf35b1@ajmconsulting.ca> <60ab6b42-c889-7acf-5a46-1577c499975a@ajm-software.com> <790274409.3110289.1533621211448@mail.yahoo.com> Message-ID: El mar., 7 de ago. de 2018 a la(s) 09:42, Tony Morehen > ...user space programs no longer need to deal with the low level details > of handshaking and flow control..... and just read and write to the serial > port as a stream. > ok as i write, so gambas handle all the manage of the information to read and write using stream and Eof, (wow so great! right? ) in any case was a great information about the data workflow,, thanks anyway tony > One issue that may arise, the linux kernel only uses CTS/RTS for flow > control; it ignores DSR/DTS. > important information many thanks for that, This must be in the gambas wiki page of the seria port too i'll mark this mail and make a tutorial with better information El mar., 7 de ago. de 2018 a la(s) 12:06, T Lee Davidson > Even if any of them signal that data is available, the _Read event already does that for you. yeah i already know, it's hard to explain for me ... > Perhaps your goal could be accomplished by implementing a SerialPort.Read event handler NO, no more handlers or events, a normal procedimental methond > that adds the incoming data to a global accumulator, > and then manually reading the accumulator and clearing it once it's read. i want that in any moment can read the acumulator, and pas a command to modifi taht data again hard to explain and there's too much information to hide by the company > However, that may run into collisions and data integrity issues > if you try to manually read from, or clear, the accumulator > while the event handler is writing to it. yeah only if the data are not knowed but i really know parto of them of course we need implement a semaphore > Or, maybe using a Queue would meet your need: http://gambaswiki.org/wiki/comp/gb.data/queue . > (It's unfortunate that there's not much documentation on that.) a concurrent problem on the wiki, it's suppost to be first source of information and seems it's maillist i disagree that mailist be a source of information, a documentaiton it's the main tower of any project! -------------- next part -------------- An HTML attachment was scrubbed... URL: From bagonergi at gmail.com Wed Aug 8 14:04:36 2018 From: bagonergi at gmail.com (Gianluigi) Date: Wed, 8 Aug 2018 14:04:36 +0200 Subject: [Gambas-user] Format$ for BigInt Message-ID: Hi Benoit, a friend of ours of the Italian forum asks if it's possible to have "Format$" also for BigInt Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From hans at gambas-buch.de Wed Aug 8 14:04:59 2018 From: hans at gambas-buch.de (Hans Lehmann) Date: Wed, 8 Aug 2018 14:04:59 +0200 Subject: [Gambas-user] Inserting an image into the gambas documentation Message-ID: An HTML attachment was scrubbed... URL: From t.lee.davidson at gmail.com Wed Aug 8 19:34:32 2018 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Wed, 8 Aug 2018 13:34:32 -0400 Subject: [Gambas-user] Format$ for BigInt In-Reply-To: References: Message-ID: <32e7edda-d2df-3c0f-3d02-6e6dbcf824c4@gmail.com> I'm confused. What would a BigInt be? Do you mean Integer as opposed to Short? ___ Lee On 08/08/2018 08:04 AM, Gianluigi wrote: > Hi Benoit, > a friend of ours of the Italian forum asks if it's possible to have "Format$" also for BigInt > > Regards > Gianluigi > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > From taboege at gmail.com Wed Aug 8 19:43:01 2018 From: taboege at gmail.com (Tobias Boege) Date: Wed, 8 Aug 2018 19:43:01 +0200 Subject: [Gambas-user] Format$ for BigInt In-Reply-To: <32e7edda-d2df-3c0f-3d02-6e6dbcf824c4@gmail.com> References: <32e7edda-d2df-3c0f-3d02-6e6dbcf824c4@gmail.com> Message-ID: <20180808174301.GB29367@highrise.localdomain> On Wed, 08 Aug 2018, T Lee Davidson wrote: > I'm confused. What would a BigInt be? Do you mean Integer as opposed to Short? > It's a class in gb.gmp. And the fact that it comes from a non-core component makes it a hairy decision if Format$() should support it. I won't say that it's impossible to do, but adding a Format *method* to the BigInt class that behaves like the Format$() builtin would certainly be the cleaner way. Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From bagonergi at gmail.com Wed Aug 8 19:48:41 2018 From: bagonergi at gmail.com (Gianluigi) Date: Wed, 8 Aug 2018 19:48:41 +0200 Subject: [Gambas-user] Format$ for BigInt In-Reply-To: <20180808174301.GB29367@highrise.localdomain> References: <32e7edda-d2df-3c0f-3d02-6e6dbcf824c4@gmail.com> <20180808174301.GB29367@highrise.localdomain> Message-ID: 2018-08-08 19:43 GMT+02:00 Tobias Boege : > On Wed, 08 Aug 2018, T Lee Davidson wrote: > > I'm confused. What would a BigInt be? Do you mean Integer as opposed to > Short? > > > > It's a class in gb.gmp. And the fact that it comes from a non-core > component > makes it a hairy decision if Format$() should support it. I won't say that > it's impossible to do, but adding a Format *method* to the BigInt class > that > behaves like the Format$() builtin would certainly be the cleaner way. > > Regards, > Tobi > > -- > "There's an old saying: Don't change anything... ever!" -- Mr. Monk > > Yes Tobias, I think our friend meant what you suggest. Regards Gianluigi > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mckaygerhard at gmail.com Wed Aug 8 21:26:45 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Wed, 8 Aug 2018 15:26:45 -0400 Subject: [Gambas-user] Inserting an image into the gambas documentation In-Reply-To: References: Message-ID: the Images are also wiki pages whose URL ends with ".png" or ".jpg". In fact all the wiki elements are wiki pages representation of them Once login and then access the page will get then a button to upload the image. Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2018-08-08 8:04 GMT-04:00 Hans Lehmann : > Hello, > > I want to change the documentation for a specific property of a class. > Question: > Is there a proven way to insert an image into the text of the > documentation? > > With kind regards > > Hans > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mckaygerhard at gmail.com Wed Aug 8 23:57:16 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Wed, 8 Aug 2018 17:57:16 -0400 Subject: [Gambas-user] using events of serial ports for reading how_? In-Reply-To: References: <92cf35e1-c696-023f-3c93-a3a7c3cf35b1@ajmconsulting.ca> <60ab6b42-c889-7acf-5a46-1577c499975a@ajm-software.com> <790274409.3110289.1533621211448@mail.yahoo.com> Message-ID: hi, me again! i modify a little now the class, with a auto null semaphore as everybody said, if there's data in the port a read event will raise, but there's not happened i must manually send a read operation with my manual method to work.. why? attached the project and also something when all the main.module lines executed, programs does not end... another question, i have a property (printermananger) that access to a property in the printerclass that behaviour are too complex or inneficient or improperty? Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2018-08-07 12:52 GMT-04:00 PICCORO McKAY Lenz : > El mar., 7 de ago. de 2018 a la(s) 09:42, Tony Morehen > >> ...user space programs no longer need to deal with the low level details >> of handshaking and flow control..... and just read and write to the serial >> port as a stream. >> > ok as i write, so gambas handle all the manage of the information > to read and write using stream and Eof, (wow so great! right? ) > in any case was a great information about the data workflow,, thanks > anyway tony > >> One issue that may arise, the linux kernel only uses CTS/RTS for flow >> control; it ignores DSR/DTS. >> > important information many thanks for that, This must be in the gambas > wiki page of the seria port too > i'll mark this mail and make a tutorial with better information > > > El mar., 7 de ago. de 2018 a la(s) 12:06, T Lee Davidson > > Even if any of them signal that data is available, the _Read event > already does that for you. > yeah i already know, it's hard to explain for me ... > > > Perhaps your goal could be accomplished by implementing a > SerialPort.Read event handler > NO, no more handlers or events, a normal procedimental methond > > > that adds the incoming data to a global accumulator, > > and then manually reading the accumulator and clearing it once it's read. > i want that in any moment can read the acumulator, and pas a command to > modifi taht data > again hard to explain and there's too much information to hide by the > company > > > However, that may run into collisions and data integrity issues > > if you try to manually read from, or clear, the accumulator > > while the event handler is writing to it. > yeah only if the data are not knowed but i really know parto of them > of course we need implement a semaphore > > > Or, maybe using a Queue would meet your need: > http://gambaswiki.org/wiki/comp/gb.data/queue . > > (It's unfortunate that there's not much documentation on that.) > a concurrent problem on the wiki, it's suppost to be first source of > information and seems it's maillist > i disagree that mailist be a source of information, a documentaiton it's > the main tower of any project! > > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: prueba-printer-manager-0.0.3.tar.gz Type: application/gzip Size: 13982 bytes Desc: not available URL: From g4mba5 at gmail.com Thu Aug 9 01:51:27 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Thu, 9 Aug 2018 01:51:27 +0200 Subject: [Gambas-user] Format$ for BigInt In-Reply-To: References: Message-ID: <76ac0cc2-e93d-9c6a-ff66-5fc6b5462b7a@gmail.com> Le 08/08/2018 ? 14:04, Gianluigi a ?crit?: > Hi Benoit, > a friend of ours of the Italian forum asks if it's possible to have > "Format$" also for BigInt > > Regards > Gianluigi > What for? What does he need to do exactly? -- Beno?t Minisini From bagonergi at gmail.com Thu Aug 9 09:35:41 2018 From: bagonergi at gmail.com (Gianluigi) Date: Thu, 9 Aug 2018 09:35:41 +0200 Subject: [Gambas-user] Format$ for BigInt In-Reply-To: <76ac0cc2-e93d-9c6a-ff66-5fc6b5462b7a@gmail.com> References: <76ac0cc2-e93d-9c6a-ff66-5fc6b5462b7a@gmail.com> Message-ID: 2018-08-09 1:51 GMT+02:00 Beno?t Minisini : > Le 08/08/2018 ? 14:04, Gianluigi a ?crit : > >> Hi Benoit, >> a friend of ours of the Italian forum asks if it's possible to have >> "Format$" also for BigInt >> >> Regards >> Gianluigi >> >> > What for? What does he need to do exactly? > > -- > Beno?t Minisini > I think he wants the division of the thousands. I will ask for confirmation. Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Thu Aug 9 11:08:48 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Thu, 9 Aug 2018 11:08:48 +0200 Subject: [Gambas-user] JIT Crash In-Reply-To: References: Message-ID: <3839b447-ac88-cd4b-ba33-f4c167228e10@gmail.com> Le 07/08/2018 ? 01:47, Jussi Lahtinen a ?crit?: > No, or maybe I added something else to the current tester version.... > see the attachment. > It's fixed in commit https://gitlab.com/gambas/gambas/commit/acf401ba2dc55cd4551a7db2e1733472dbfb1674. Please always answer the posts on the mailing-list! Regards, -- Beno?t Minisini From t.lee.davidson at gmail.com Thu Aug 9 16:43:31 2018 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Thu, 9 Aug 2018 10:43:31 -0400 Subject: [Gambas-user] using events of serial ports for reading how_? In-Reply-To: References: <92cf35e1-c696-023f-3c93-a3a7c3cf35b1@ajmconsulting.ca> <60ab6b42-c889-7acf-5a46-1577c499975a@ajm-software.com> <790274409.3110289.1533621211448@mail.yahoo.com> Message-ID: <1a6bf27c-28f8-cbee-9b70-cd5cda081611@gmail.com> On 08/08/2018 05:57 PM, PICCORO McKAY Lenz wrote: > hi, me again! i modify a little now the class, with a auto null semaphore > > as everybody said, if there's data in the port a read event will raise, but there's not happened How do you know the event isn't being triggered? I don't see your code anywhere giving the printer time to respond. > attached the project and also something when all the main.module lines executed, programs does not end... Could that be because you never close the port? And just out of curiosity, why do you use the gb.vb component when creating a purely Gambas application? > 2018-08-07 12:52 GMT-04:00 PICCORO McKAY Lenz >: > > El mar., 7 de ago. de 2018 a la(s) 09:42, Tony Morehen > > ...user space programs no longer need to deal with the low level details of handshaking and flow control..... and just > read and write to the serial port as a stream. > > ok as i write, so gambas handle all the manage of the information > to read and write using stream and Eof, (wow so great! right? ) > in any case was a great information about the data workflow,, thanks anyway tony > > One issue that may arise, the linux kernel only uses CTS/RTS for flow control; it ignores DSR/DTS. > > important information many thanks for that, This must be in the gambas wiki page of the seria port too > i'll mark this mail and make a tutorial with better information > > > El mar., 7 de ago. de 2018 a la(s) 12:06, T Lee Davidson > > Even if any of them signal that data is available, the _Read event already does that for you. > yeah i already know, it's hard to explain for me ... > > > Perhaps your goal could be accomplished by implementing a SerialPort.Read event handler > NO, no more handlers or events, a normal procedimental methond > > > that adds the incoming data to a global accumulator, > > and then manually reading the accumulator and clearing it once it's read. > i want that in any moment can read the acumulator, and pas a command to modifi taht data > again hard to explain and there's too much information to hide by the company > > > However, that may run into collisions and data integrity issues > > if you try to manually read from, or clear, the accumulator > > while the event handler is writing to it. > yeah only if the data are not knowed but i really know parto of them > of course we need implement a semaphore > > > Or, maybe using a Queue would meet your need: http://gambaswiki.org/wiki/comp/gb.data/queue . > > (It's unfortunate that there's not much documentation on that.) > a concurrent problem on the wiki, it's suppost to be first source of information and seems it's maillist > i disagree that mailist be a source of information, a documentaiton it's the main tower of any project! > > > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > From mckaygerhard at gmail.com Thu Aug 9 17:10:42 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Thu, 9 Aug 2018 11:10:42 -0400 Subject: [Gambas-user] using events of serial ports for reading how_? In-Reply-To: <1a6bf27c-28f8-cbee-9b70-cd5cda081611@gmail.com> References: <92cf35e1-c696-023f-3c93-a3a7c3cf35b1@ajmconsulting.ca> <60ab6b42-c889-7acf-5a46-1577c499975a@ajm-software.com> <790274409.3110289.1533621211448@mail.yahoo.com> <1a6bf27c-28f8-cbee-9b70-cd5cda081611@gmail.com> Message-ID: 2018-08-09 10:43 GMT-04:00 T Lee Davidson : > On 08/08/2018 05:57 PM, PICCORO McKAY Lenz wrote: > > as everybody said, if there's data in the port a read event will raise, > but there's not happened > > How do you know the event isn't being triggered? I don't see your code > anywhere giving the printer time to respond. > it's suppost that the event raised automatically if there some data! right? as documentation! > > attached the project and also something when all the main.module lines > executed, programs does not end... > Could that be because you never close the port? > why? that's nothing related to! rules of the programs ends! so port are openened dont care! i just put the close port urle and still happened! somethings programs ends something not! get hang on "some where" here! i put pause and code does not pause! > And just out of curiosity, why do you use the gb.vb component when > creating a purely Gambas application? > umm i do not noted hejejej that was a base project empty that i just added code! > > > > > 2018-08-07 12:52 GMT-04:00 PICCORO McKAY Lenz >: > > > > El mar., 7 de ago. de 2018 a la(s) 09:42, Tony Morehen > > > > ...user space programs no longer need to deal with the low level > details of handshaking and flow control..... and just > > read and write to the serial port as a stream. > > > > ok as i write, so gambas handle all the manage of the information > > to read and write using stream and Eof, (wow so great! right? ) > > in any case was a great information about the data workflow,, thanks > anyway tony > > > > One issue that may arise, the linux kernel only uses CTS/RTS for > flow control; it ignores DSR/DTS. > > > > important information many thanks for that, This must be in the > gambas wiki page of the seria port too > > i'll mark this mail and make a tutorial with better information > > > > > > El mar., 7 de ago. de 2018 a la(s) 12:06, T Lee Davidson > > > Even if any of them signal that data is available, the _Read event > already does that for you. > > yeah i already know, it's hard to explain for me ... > > > > > Perhaps your goal could be accomplished by implementing a > SerialPort.Read event handler > > NO, no more handlers or events, a normal procedimental methond > > > > > that adds the incoming data to a global accumulator, > > > and then manually reading the accumulator and clearing it once > it's read. > > i want that in any moment can read the acumulator, and pas a command > to modifi taht data > > again hard to explain and there's too much information to hide by > the company > > > > > However, that may run into collisions and data integrity issues > > > if you try to manually read from, or clear, the accumulator > > > while the event handler is writing to it. > > yeah only if the data are not knowed but i really know parto of them > > of course we need implement a semaphore > > > > > Or, maybe using a Queue would meet your need: > http://gambaswiki.org/wiki/comp/gb.data/queue comp/gb.data/queue> . > > > (It's unfortunate that there's not much documentation on that.) > > a concurrent problem on the wiki, it's suppost to be first source of > information and seems it's maillist > > i disagree that mailist be a source of information, a documentaiton > it's the main tower of any project! > > > > > > > > > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jussi.lahtinen at gmail.com Fri Aug 10 00:40:21 2018 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Fri, 10 Aug 2018 01:40:21 +0300 Subject: [Gambas-user] JIT Crash In-Reply-To: <3839b447-ac88-cd4b-ba33-f4c167228e10@gmail.com> References: <3839b447-ac88-cd4b-ba33-f4c167228e10@gmail.com> Message-ID: I think there is still something wrong. When I try to run my big project I get this: ** OOPS! INTERNAL ERROR ** Unable to compile JIT source file ** ClassStat.GotoNextSection.14: #39: End of file ClassStat.GotoNextSection.14 ClassStat.Stat.86 Jit._Compile.165 ** Program aborting. Sorry! :-( ** Please send a bug report at g4mba5 at gmail.com This doesn't make sense, since the failure comes from call which is done with Try keyword. I'm trying to isolate the offending code, but right now I'm out of ideas. Jussi On Thu, Aug 9, 2018 at 12:08 PM, Beno?t Minisini wrote: > Le 07/08/2018 ? 01:47, Jussi Lahtinen a ?crit : > >> No, or maybe I added something else to the current tester version.... see >> the attachment. >> >> > It's fixed in commit https://gitlab.com/gambas/gamb > as/commit/acf401ba2dc55cd4551a7db2e1733472dbfb1674. > > Please always answer the posts on the mailing-list! > > Regards, > > -- > Beno?t Minisini > -------------- next part -------------- An HTML attachment was scrubbed... URL: From t.lee.davidson at gmail.com Fri Aug 10 05:12:25 2018 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Thu, 9 Aug 2018 23:12:25 -0400 Subject: [Gambas-user] using events of serial ports for reading how_? In-Reply-To: References: <92cf35e1-c696-023f-3c93-a3a7c3cf35b1@ajmconsulting.ca> <60ab6b42-c889-7acf-5a46-1577c499975a@ajm-software.com> <790274409.3110289.1533621211448@mail.yahoo.com> <1a6bf27c-28f8-cbee-9b70-cd5cda081611@gmail.com> Message-ID: <8f9061fc-7cdc-6b86-9926-5411e6f1f88b@gmail.com> On 08/09/2018 11:10 AM, PICCORO McKAY Lenz wrote: > > 2018-08-09 10:43 GMT-04:00 T Lee Davidson >: > > On 08/08/2018 05:57 PM, PICCORO McKAY Lenz wrote: > > as everybody said, if there's data in the port a read event will raise, but there's not happened > > How do you know the event isn't being triggered? I don't see your code anywhere giving the printer time to respond. > > it's suppost that the event raised automatically if there some data! right? as documentation! Yes, exactly, IF there is some data. How do you know there is data available that should trigger the _Read event? And, if there is indeed data available, how do you know for sure that the event isn't being triggered? > > attached the project and also something when all the main.module lines executed, programs does not end... > Could that be because you never close the port? > > why? that's nothing related to! rules of the programs ends! so port are openened dont care! > > i just put the close port urle and still happened! > > somethings programs ends something not! get hang on "some where" here! i put pause and code does not pause! Well Gambas has no "Pause" statement, so I don't know what you mean. ___ Lee From mckaygerhard at gmail.com Fri Aug 10 14:04:55 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Fri, 10 Aug 2018 08:04:55 -0400 Subject: [Gambas-user] using events of serial ports for reading how_? In-Reply-To: <8f9061fc-7cdc-6b86-9926-5411e6f1f88b@gmail.com> References: <92cf35e1-c696-023f-3c93-a3a7c3cf35b1@ajmconsulting.ca> <60ab6b42-c889-7acf-5a46-1577c499975a@ajm-software.com> <790274409.3110289.1533621211448@mail.yahoo.com> <1a6bf27c-28f8-cbee-9b70-cd5cda081611@gmail.com> <8f9061fc-7cdc-6b86-9926-5411e6f1f88b@gmail.com> Message-ID: 2018-08-09 23:12 GMT-04:00 T Lee Davidson : > > it's suppost that the event raised automatically if there some data! > right? as documentation! > > Yes, exactly, IF there is some data. How do you know there is data > available that should trigger the _Read event? always after a write , will be a response, inclusivelly a garbage response if any! so "always be data to read" And, if there > is indeed data available, how do you know for sure that the event isn't > being triggered? > due if i do not use the "rp" function, never raise the event! > somethings programs ends something not! get hang on "some where" here! i > put pause and code does not pause! > Well Gambas has no "Pause" statement, so I don't know what you mean. > i mean the "play", "pause", "stop" from the ide in the tool bar or whatever named > > > ___ > Lee > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bagonergi at gmail.com Fri Aug 10 18:11:03 2018 From: bagonergi at gmail.com (Gianluigi) Date: Fri, 10 Aug 2018 18:11:03 +0200 Subject: [Gambas-user] Format$ for BigInt In-Reply-To: References: <76ac0cc2-e93d-9c6a-ff66-5fc6b5462b7a@gmail.com> Message-ID: 2018-08-09 9:35 GMT+02:00 Gianluigi : > > > 2018-08-09 1:51 GMT+02:00 Beno?t Minisini : > >> Le 08/08/2018 ? 14:04, Gianluigi a ?crit : >> >>> Hi Benoit, >>> a friend of ours of the Italian forum asks if it's possible to have >>> "Format$" also for BigInt >>> >>> Regards >>> Gianluigi >>> >>> >> What for? What does he need to do exactly? >> >> -- >> Beno?t Minisini >> > > I think he wants the division of the thousands. > I will ask for confirmation. > > Regards > Gianluigi > Our friend has not specified what he wants anymore. The request lapses. Sorry for the noise. Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From jussi.lahtinen at gmail.com Fri Aug 10 20:42:04 2018 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Fri, 10 Aug 2018 21:42:04 +0300 Subject: [Gambas-user] Git Message-ID: Occasionally I get this message when trying to update the sources ("git pull" and no, I haven't edited the sources): "Please, commit your changes or stash them before you can merge. Aborting" And the solution has been "git reset --hard". How to avoid this? Any clue why this happens? Jussi -------------- next part -------------- An HTML attachment was scrubbed... URL: From taboege at gmail.com Fri Aug 10 20:55:31 2018 From: taboege at gmail.com (Tobias Boege) Date: Fri, 10 Aug 2018 20:55:31 +0200 Subject: [Gambas-user] Git In-Reply-To: References: Message-ID: <20180810185531.GF29367@highrise.localdomain> On Fri, 10 Aug 2018, Jussi Lahtinen wrote: > Occasionally I get this message when trying to update the sources ("git > pull" and no, I haven't edited the sources): > > "Please, commit your changes or stash them before you can merge. > Aborting" > > And the solution has been "git reset --hard". How to avoid this? Any clue > why this happens? > In that case, git should also give you a list of files it thinks you altered. My guess: they are files that are automatically generated and updated by the compiler or IDE, like .settings and .startup. If you compile Gambas components from source, for instance, or open them in the IDE, those files will be changed and git thinks you made some precious changes that you don't want to accidentally overwrite. That these autogenerated files are under version control is the actual error here. That's actually easy to fix and I'll do it if this is indeed your problem. Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From mckaygerhard at gmail.com Fri Aug 10 21:46:42 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Fri, 10 Aug 2018 15:46:42 -0400 Subject: [Gambas-user] Git In-Reply-To: References: Message-ID: some files not in git ignored are generated, can do two things: 1) "git status" ahd will show what files what changed, if wants to see changes use "git diff", 2) "git reset --hard" and all the spurius changes will be discarting to last commit upstream TAKE IN CONSIDERATION that as exampel icon file something change of permissions from 644 to 755 and this are a change from the point of view of git Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2018-08-10 14:42 GMT-04:00 Jussi Lahtinen : > Occasionally I get this message when trying to update the sources ("git > pull" and no, I haven't edited the sources): > > "Please, commit your changes or stash them before you can merge. > Aborting" > > And the solution has been "git reset --hard". How to avoid this? Any clue > why this happens? > > > Jussi > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From chrisml at deganius.de Fri Aug 10 22:19:53 2018 From: chrisml at deganius.de (Christof Thalhofer) Date: Fri, 10 Aug 2018 22:19:53 +0200 Subject: [Gambas-user] Git In-Reply-To: References: Message-ID: <434a0c03-6614-7932-2f86-40122c685378@deganius.de> Am 10.08.2018 um 20:42 schrieb Jussi Lahtinen: > Occasionally I get this message when trying to update the sources ("git > pull" and no, I haven't edited the sources): > > "Please, commit your changes or stash them before you can merge. > Aborting" You have changed any files in the working dir that would be overwritten by the pull but you have not committed them in the local repository. See what has been changed by typing: git status Git refuses to fetch and merge the changes from the remote repo because of conflicts. > And the solution has been "git reset --hard". How to avoid this? Any > clue why this happens? You can do: git stash This will reset your working dir to the last state which is the same like the remote. But also it will save your changes to stash (a buffer you can use for such things: Temporarily move the local changes of the working dir out of the way). git status will show that there are no changes in the working dir any more. They were moved to stash. Then you can do git pull which will update your local repo by fetching and applying the changes of the remote repo. And afterwards you can do git stash apply which will apply your last changes again to the working dir. git status will then show the (uncommitted) changes again. Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: OpenPGP digital signature URL: From chrisml at deganius.de Fri Aug 10 22:24:35 2018 From: chrisml at deganius.de (Christof Thalhofer) Date: Fri, 10 Aug 2018 22:24:35 +0200 Subject: [Gambas-user] Git In-Reply-To: References: Message-ID: Am 10.08.2018 um 21:46 schrieb PICCORO McKAY Lenz: > some files not in git ignored are generated, can do two things: > > 1) "git status" ahd will show what files what changed, if wants to see > changes use "git diff", > 2) "git reset --hard" and all the spurius changes will be discarting to > last commit upstream This is bad because it will throw away all changes in the working dir. Therefor Git recommends to execute: git stash Which will move the local changes to the stash (buffer). https://git-scm.com/book/en/v1/Git-Tools-Stashing Then you can do git pull and eventually git stash apply Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: OpenPGP digital signature URL: From jussi.lahtinen at gmail.com Sat Aug 11 00:25:23 2018 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Sat, 11 Aug 2018 01:25:23 +0300 Subject: [Gambas-user] Git In-Reply-To: <20180810185531.GF29367@highrise.localdomain> References: <20180810185531.GF29367@highrise.localdomain> Message-ID: It's more like annoyance and I wanted to know what is going on. Thanks! Jussi On Fri, Aug 10, 2018 at 9:55 PM, Tobias Boege wrote: > On Fri, 10 Aug 2018, Jussi Lahtinen wrote: > > Occasionally I get this message when trying to update the sources ("git > > pull" and no, I haven't edited the sources): > > > > "Please, commit your changes or stash them before you can merge. > > Aborting" > > > > And the solution has been "git reset --hard". How to avoid this? Any clue > > why this happens? > > > > In that case, git should also give you a list of files it thinks you > altered. > > My guess: they are files that are automatically generated and updated by > the compiler or IDE, like .settings and .startup. If you compile Gambas > components from source, for instance, or open them in the IDE, those files > will be changed and git thinks you made some precious changes that you > don't want to accidentally overwrite. > > That these autogenerated files are under version control is the actual > error here. That's actually easy to fix and I'll do it if this is indeed > your problem. > > Regards, > Tobi > > -- > "There's an old saying: Don't change anything... ever!" -- Mr. Monk > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From hans at gambas-buch.de Sat Aug 11 13:44:46 2018 From: hans at gambas-buch.de (Hans Lehmann) Date: Sat, 11 Aug 2018 13:44:46 +0200 Subject: [Gambas-user] Dir Message-ID: <73116dcd-e388-5fa7-fc08-99e25eddc2ad@gambas-buch.de> An HTML attachment was scrubbed... URL: From chrisml at deganius.de Sat Aug 11 14:01:01 2018 From: chrisml at deganius.de (Christof Thalhofer) Date: Sat, 11 Aug 2018 14:01:01 +0200 Subject: [Gambas-user] Git In-Reply-To: References: <20180810185531.GF29367@highrise.localdomain> Message-ID: <30c33a31-188a-aa3e-9536-9aed67b5536d@deganius.de> Am 11.08.2018 um 00:25 schrieb Jussi Lahtinen: > It's more like annoyance and I wanted to know what is going on. > Thanks! Did you receive my answer? Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: OpenPGP digital signature URL: From jussi.lahtinen at gmail.com Sat Aug 11 16:16:32 2018 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Sat, 11 Aug 2018 17:16:32 +0300 Subject: [Gambas-user] Git In-Reply-To: <30c33a31-188a-aa3e-9536-9aed67b5536d@deganius.de> References: <20180810185531.GF29367@highrise.localdomain> <30c33a31-188a-aa3e-9536-9aed67b5536d@deganius.de> Message-ID: Yes, thanks! However it wasn't applicable to my situation. Jussi On Sat, Aug 11, 2018 at 3:01 PM, Christof Thalhofer wrote: > Am 11.08.2018 um 00:25 schrieb Jussi Lahtinen: > > It's more like annoyance and I wanted to know what is going on. > > Thanks! > > > Did you receive my answer? > > > Alles Gute > > Christof Thalhofer > > -- > Dies ist keine Signatur > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From chrisml at deganius.de Sat Aug 11 21:54:41 2018 From: chrisml at deganius.de (Christof Thalhofer) Date: Sat, 11 Aug 2018 21:54:41 +0200 Subject: [Gambas-user] Git In-Reply-To: References: <20180810185531.GF29367@highrise.localdomain> <30c33a31-188a-aa3e-9536-9aed67b5536d@deganius.de> Message-ID: <7b8e7e6d-91e1-7712-90a5-0ead55faa6be@deganius.de> Am 11.08.2018 um 16:16 schrieb Jussi Lahtinen: > Yes, thanks! However it wasn't applicable to my situation. Yes. Because you did a git reset --hard and threw away the changes. What I described, was exactly your situation. If it happens next time please use the commandos as I wrote: git status git stash git pull git stash apply git status Never use git reset --hard without investigating what was the reason that git refused to merge the remote changes. Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: OpenPGP digital signature URL: From jussi.lahtinen at gmail.com Sat Aug 11 23:51:46 2018 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Sun, 12 Aug 2018 00:51:46 +0300 Subject: [Gambas-user] Git In-Reply-To: <7b8e7e6d-91e1-7712-90a5-0ead55faa6be@deganius.de> References: <20180810185531.GF29367@highrise.localdomain> <30c33a31-188a-aa3e-9536-9aed67b5536d@deganius.de> <7b8e7e6d-91e1-7712-90a5-0ead55faa6be@deganius.de> Message-ID: No, as I explained in the first post, there was no changes made by me. Jussi On Sat, Aug 11, 2018 at 10:54 PM, Christof Thalhofer wrote: > Am 11.08.2018 um 16:16 schrieb Jussi Lahtinen: > > > Yes, thanks! However it wasn't applicable to my situation. > > Yes. Because you did a git reset --hard and threw away the changes. > > What I described, was exactly your situation. If it happens next time > please use the commandos as I wrote: > > git status > git stash > git pull > git stash apply > git status > > Never use git reset --hard without investigating what was the reason > that git refused to merge the remote changes. > > Alles Gute > > Christof Thalhofer > > -- > Dies ist keine Signatur > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jussi.lahtinen at gmail.com Sat Aug 11 23:54:03 2018 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Sun, 12 Aug 2018 00:54:03 +0300 Subject: [Gambas-user] JIT crash Message-ID: OK, I managed to isolate the problem to small enough piece of code. See the attachment. Jussi -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: NewJITtest-3.0.2.tar.gz Type: application/gzip Size: 11480 bytes Desc: not available URL: From chrisml at deganius.de Sun Aug 12 00:14:15 2018 From: chrisml at deganius.de (Christof Thalhofer) Date: Sun, 12 Aug 2018 00:14:15 +0200 Subject: [Gambas-user] Git In-Reply-To: References: <20180810185531.GF29367@highrise.localdomain> <30c33a31-188a-aa3e-9536-9aed67b5536d@deganius.de> <7b8e7e6d-91e1-7712-90a5-0ead55faa6be@deganius.de> Message-ID: <6bae557e-e4c8-57a4-86ab-4d8bc33d727e@deganius.de> Am 11.08.2018 um 23:51 schrieb Jussi Lahtinen: > No, as I explained in the first post, there was no changes made by me. If git complained like you said, there were some. Next time use git status which tells you what has been changed. Usually just a ctrl-alt-x compile in the IDE changes the version number in .project which will prevent git from updating if also the version number in origin has been changed. Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: OpenPGP digital signature URL: From g4mba5 at gmail.com Sun Aug 12 00:18:14 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sun, 12 Aug 2018 00:18:14 +0200 Subject: [Gambas-user] Release of Gambas 3.11.4 Message-ID: Hi, I have released a 3.11.4 version of Gambas that includes the backports of many fixes done in the development version. The list of changes is at http://gambaswiki.org/wiki/doc/release/3.11.4 The source archive is at https://gitlab.com/gambas/gambas/-/archive/3.11.4/gambas-3.11.4.tar.bz2 Please report any problem you may have with the sources if you compile from them. Enjoy it. -- Beno?t Minisini From g4mba5 at gmail.com Sun Aug 12 00:24:44 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sun, 12 Aug 2018 00:24:44 +0200 Subject: [Gambas-user] JIT crash In-Reply-To: References: Message-ID: <6ec407d2-09bc-ce7d-a604-491f6d179131@gmail.com> Le 11/08/2018 ? 23:54, Jussi Lahtinen a ?crit?: > OK, I managed to isolate the problem to small enough piece of code. > See the attachment. > > > Jussi > Fixed in commit https://gitlab.com/gambas/gambas/commit/a2123c7f27d9e7f6c8483c7981e2c8d716bf746a. Regards, -- Beno?t Minisini From jussi.lahtinen at gmail.com Sun Aug 12 01:55:49 2018 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Sun, 12 Aug 2018 02:55:49 +0300 Subject: [Gambas-user] JIT crash In-Reply-To: <6ec407d2-09bc-ce7d-a604-491f6d179131@gmail.com> References: <6ec407d2-09bc-ce7d-a604-491f6d179131@gmail.com> Message-ID: It's fixed, but I have another bug with exactly the same symptoms. I just added some random mess and I think this is related bug. See the attachment. Jussi On Sun, Aug 12, 2018 at 1:24 AM, Beno?t Minisini wrote: > Le 11/08/2018 ? 23:54, Jussi Lahtinen a ?crit : > >> OK, I managed to isolate the problem to small enough piece of code. >> See the attachment. >> >> >> Jussi >> >> > Fixed in commit https://gitlab.com/gambas/gamb > as/commit/a2123c7f27d9e7f6c8483c7981e2c8d716bf746a. > > Regards, > > > -- > Beno?t Minisini > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: NewJITtest-4.0.2.tar.gz Type: application/gzip Size: 11745 bytes Desc: not available URL: From t.lee.davidson at gmail.com Sun Aug 12 02:47:40 2018 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Sat, 11 Aug 2018 20:47:40 -0400 Subject: [Gambas-user] using events of serial ports for reading how_? In-Reply-To: References: <92cf35e1-c696-023f-3c93-a3a7c3cf35b1@ajmconsulting.ca> <60ab6b42-c889-7acf-5a46-1577c499975a@ajm-software.com> <790274409.3110289.1533621211448@mail.yahoo.com> <1a6bf27c-28f8-cbee-9b70-cd5cda081611@gmail.com> <8f9061fc-7cdc-6b86-9926-5411e6f1f88b@gmail.com> Message-ID: No, there should not "always be data to read". If the printer responds there should be data to read *after a certain amount of time*. You have to give the printer/driver time to respond. Your program does not. And, you cannot rightly say that the event is never raised if you do not allow time for that to happen, which, again, your program does not. I queried a LAN connected printer with a PCL Echo command. It took over three seconds to receive the response. Finally, if a Stream is being WATCHed, the program can (will?) hang if the Stream is not closed prior to application exit. ___ Lee On 08/10/2018 08:04 AM, PICCORO McKAY Lenz wrote: > 2018-08-09 23:12 GMT-04:00 T Lee Davidson >: > > > it's suppost that the event raised automatically if there some data! right? as documentation! > > Yes, exactly, IF there is some data. How do you know there is data available that should trigger the _Read event? > > always after a write , will be a response, inclusivelly a garbage response if any! so "always be data to read" > > And, if there > is indeed data available, how do you know for sure that the event isn't being triggered? > > due if i do not use the? "rp"? function, never raise the event! > > > somethings programs ends something not! get hang on "some where" here! i put pause and code does not pause! > Well Gambas has no "Pause" statement, so I don't know what you mean. > > i mean the "play", "pause", "stop" from the ide in the tool bar or whatever named > ? > > > > ___ > Lee > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > From g4mba5 at gmail.com Sun Aug 12 09:44:58 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sun, 12 Aug 2018 09:44:58 +0200 Subject: [Gambas-user] JIT crash In-Reply-To: References: <6ec407d2-09bc-ce7d-a604-491f6d179131@gmail.com> Message-ID: <3cd224a7-f50c-fe13-faac-7eb22451b830@gmail.com> Le 12/08/2018 ? 01:55, Jussi Lahtinen a ?crit?: > It's fixed, but I have another bug with exactly the same symptoms. > I just added some random mess and I think this is related bug. See the > attachment. > > > Jussi > Fixed in commit https://gitlab.com/gambas/gambas/commit/9c1fa46558cfdfbd8b2248013cce4bd8362fa5bc. Note that the symptoms are not the same at all: the first bug crashed during compilation of the source code, while that one crashed during the execution. Regards, -- Beno?t Minisini From jussi.lahtinen at gmail.com Sun Aug 12 19:43:31 2018 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Sun, 12 Aug 2018 20:43:31 +0300 Subject: [Gambas-user] JIT crash In-Reply-To: <3cd224a7-f50c-fe13-faac-7eb22451b830@gmail.com> References: <6ec407d2-09bc-ce7d-a604-491f6d179131@gmail.com> <3cd224a7-f50c-fe13-faac-7eb22451b830@gmail.com> Message-ID: Weird, you are right. Did I really see that wrong or what did I mess... Jussi On Sun, Aug 12, 2018 at 10:44 AM, Beno?t Minisini wrote: > Le 12/08/2018 ? 01:55, Jussi Lahtinen a ?crit : > >> It's fixed, but I have another bug with exactly the same symptoms. >> I just added some random mess and I think this is related bug. See the >> attachment. >> >> >> Jussi >> >> > Fixed in commit https://gitlab.com/gambas/gamb > as/commit/9c1fa46558cfdfbd8b2248013cce4bd8362fa5bc. > > Note that the symptoms are not the same at all: the first bug crashed > during compilation of the source code, while that one crashed during the > execution. > > Regards, > > -- > Beno?t Minisini > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bagonergi at gmail.com Sun Aug 12 22:38:22 2018 From: bagonergi at gmail.com (Gianluigi) Date: Sun, 12 Aug 2018 22:38:22 +0200 Subject: [Gambas-user] Format$ for BigInt In-Reply-To: References: <76ac0cc2-e93d-9c6a-ff66-5fc6b5462b7a@gmail.com> Message-ID: 2018-08-09 9:35 GMT+02:00 Gianluigi : > > > 2018-08-09 1:51 GMT+02:00 Beno?t Minisini : > >> Le 08/08/2018 ? 14:04, Gianluigi a ?crit : >> >>> Hi Benoit, >>> a friend of ours of the Italian forum asks if it's possible to have >>> "Format$" also for BigInt >>> >>> Regards >>> Gianluigi >>> >>> >> What for? What does he need to do exactly? >> >> -- >> Beno?t Minisini >> > > Hi Benoit, If you're still willing to do so, our friend would be content with the division of the thousands. Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From jussi.lahtinen at gmail.com Mon Aug 13 00:09:54 2018 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Mon, 13 Aug 2018 01:09:54 +0300 Subject: [Gambas-user] JIT crash In-Reply-To: References: <6ec407d2-09bc-ce7d-a604-491f6d179131@gmail.com> <3cd224a7-f50c-fe13-faac-7eb22451b830@gmail.com> Message-ID: Is it better to keep these in the same thread or do you prefer new one for new bug? Anyway... I'm not able to isolate the problem, but if I add "fast" keyword to another project, I trigger probably the same bug. See the attachment. Jussi On Sun, Aug 12, 2018 at 8:43 PM, Jussi Lahtinen wrote: > Weird, you are right. Did I really see that wrong or what did I mess... > > > Jussi > > On Sun, Aug 12, 2018 at 10:44 AM, Beno?t Minisini > wrote: > >> Le 12/08/2018 ? 01:55, Jussi Lahtinen a ?crit : >> >>> It's fixed, but I have another bug with exactly the same symptoms. >>> I just added some random mess and I think this is related bug. See the >>> attachment. >>> >>> >>> Jussi >>> >>> >> Fixed in commit https://gitlab.com/gambas/gamb >> as/commit/9c1fa46558cfdfbd8b2248013cce4bd8362fa5bc. >> >> Note that the symptoms are not the same at all: the first bug crashed >> during compilation of the source code, while that one crashed during the >> execution. >> >> Regards, >> >> -- >> Beno?t Minisini >> > > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: PTC-Calculator-0.9.4.tar.gz Type: application/gzip Size: 19860 bytes Desc: not available URL: From mckaygerhard at gmail.com Mon Aug 13 14:29:38 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Mon, 13 Aug 2018 08:29:38 -0400 Subject: [Gambas-user] JIT crash In-Reply-To: References: <6ec407d2-09bc-ce7d-a604-491f6d179131@gmail.com> <3cd224a7-f50c-fe13-faac-7eb22451b830@gmail.com> Message-ID: I noted that the only one close to the JIT work are Jussi, thanks for that, i unnable to help on testing but we need to help to test more, so can prevent a release with too many bugs.. Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2018-08-12 18:09 GMT-04:00 Jussi Lahtinen : > Is it better to keep these in the same thread or do you prefer new one for > new bug? > Anyway... I'm not able to isolate the problem, but if I add "fast" keyword > to another project, I trigger probably the same bug. See the attachment. > > > Jussi > > > > On Sun, Aug 12, 2018 at 8:43 PM, Jussi Lahtinen > wrote: > >> Weird, you are right. Did I really see that wrong or what did I mess... >> >> >> Jussi >> >> On Sun, Aug 12, 2018 at 10:44 AM, Beno?t Minisini >> wrote: >> >>> Le 12/08/2018 ? 01:55, Jussi Lahtinen a ?crit : >>> >>>> It's fixed, but I have another bug with exactly the same symptoms. >>>> I just added some random mess and I think this is related bug. See the >>>> attachment. >>>> >>>> >>>> Jussi >>>> >>>> >>> Fixed in commit https://gitlab.com/gambas/gamb >>> as/commit/9c1fa46558cfdfbd8b2248013cce4bd8362fa5bc. >>> >>> Note that the symptoms are not the same at all: the first bug crashed >>> during compilation of the source code, while that one crashed during the >>> execution. >>> >>> Regards, >>> >>> -- >>> Beno?t Minisini >>> >> >> > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mckaygerhard at gmail.com Mon Aug 13 14:36:14 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Mon, 13 Aug 2018 08:36:14 -0400 Subject: [Gambas-user] using events of serial ports for reading how_? In-Reply-To: References: <92cf35e1-c696-023f-3c93-a3a7c3cf35b1@ajmconsulting.ca> <60ab6b42-c889-7acf-5a46-1577c499975a@ajm-software.com> <790274409.3110289.1533621211448@mail.yahoo.com> <1a6bf27c-28f8-cbee-9b70-cd5cda081611@gmail.com> <8f9061fc-7cdc-6b86-9926-5411e6f1f88b@gmail.com> Message-ID: 2018-08-11 20:47 GMT-04:00 T Lee Davidson : > No, there should not "always be data to read". If the printer responds > there should be data to read *after a certain amount of > time*. You have to give the printer/driver time to respond. Your program > does not. > but, does not raised automatically the event when data happened? > And, you cannot rightly say that the event is never raised if you do not > allow time for that to happen, which, again, your > if i removed rhe "rp" function the "Read" event never reaised here there's no "certaing amount of time" due there's no read operatin forced manually Finally, if a Stream is being WATCHed, the program can (will?) hang if the > Stream is not closed prior to application exit. > i not watched the stream.. and .. the problem does not happen if i used gambas 3.1 and 3.4 do you know? > > > ___ > Lee > > > On 08/10/2018 08:04 AM, PICCORO McKAY Lenz wrote: > > 2018-08-09 23:12 GMT-04:00 T Lee Davidson >: > > > > > it's suppost that the event raised automatically if there some > data! right? as documentation! > > > > Yes, exactly, IF there is some data. How do you know there is data > available that should trigger the _Read event? > > > > always after a write , will be a response, inclusivelly a garbage > response if any! so "always be data to read" > > > > And, if there > > is indeed data available, how do you know for sure that the event > isn't being triggered? > > > > due if i do not use the "rp" function, never raise the event! > > > > > somethings programs ends something not! get hang on "some where" > here! i put pause and code does not pause! > > Well Gambas has no "Pause" statement, so I don't know what you mean. > > > > i mean the "play", "pause", "stop" from the ide in the tool bar or > whatever named > > > > > > > > > > ___ > > Lee > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net > ]---- > > > > > > > > > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mckaygerhard at gmail.com Mon Aug 13 14:38:25 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Mon, 13 Aug 2018 08:38:25 -0400 Subject: [Gambas-user] Release of Gambas 3.11.4 In-Reply-To: References: Message-ID: ODBC still broken and makes the gambas release unproductible for bussiness projects, mysql and postgres only represent the 28% of the bussiness implementations in the market!, we need ODBC fixeds please, it's so hard to take some piece of vision on gambas? Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2018-08-11 18:18 GMT-04:00 Beno?t Minisini : > Hi, > > I have released a 3.11.4 version of Gambas that includes the backports of > many fixes done in the development version. > > The list of changes is at http://gambaswiki.org/wiki/doc/release/3.11.4 > > The source archive is at https://gitlab.com/gambas/gamb > as/-/archive/3.11.4/gambas-3.11.4.tar.bz2 > > Please report any problem you may have with the sources if you compile > from them. > > Enjoy it. > > -- > Beno?t Minisini > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mckaygerhard at gmail.com Mon Aug 13 14:50:49 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Mon, 13 Aug 2018 08:50:49 -0400 Subject: [Gambas-user] Dir In-Reply-To: <73116dcd-e388-5fa7-fc08-99e25eddc2ad@gambas-buch.de> References: <73116dcd-e388-5fa7-fc08-99e25eddc2ad@gambas-buch.de> Message-ID: 2018-08-11 7:44 GMT-04:00 Hans Lehmann : > This assignment can be found in the documentation under the link > http://gambaswiki.org/wiki/lang/dir > > FilenameArray = Dir ( Directory AS String [, Pattern AS String, Filter AS > Integer ] ) AS String[] > > Questions: > > - Can Dir(...) be told an instruction or statement or method or > function? > > well seems directory are mandatory, so method/function i think > > - Under which heading can you find yourself and other instructions in > the documentation? > > i cannot translate very well your question and the "wonderfull translators" does not give me good hints can you explain better? > > > > With kind regards > > Hans > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From taboege at gmail.com Mon Aug 13 15:32:02 2018 From: taboege at gmail.com (Tobias Boege) Date: Mon, 13 Aug 2018 15:32:02 +0200 Subject: [Gambas-user] Dir In-Reply-To: <73116dcd-e388-5fa7-fc08-99e25eddc2ad@gambas-buch.de> References: <73116dcd-e388-5fa7-fc08-99e25eddc2ad@gambas-buch.de> Message-ID: <20180813133202.GJ29367@highrise.localdomain> On Sat, 11 Aug 2018, Hans Lehmann wrote: > > > > > > > Hello.
>
> This assignment can be found in the documentation under the link > http://gambaswiki.org/wiki/lang/dir
>
> FilenameArray = Dir ( Directory AS String [, Pattern AS String, > Filter AS Integer ] ) AS String[]
>
> Questions:
>
>
    >
  • Can Dir(...) be > told an instruction or statement or method or function?
  • >
  • Under which > heading can you find yourself and other instructions in the > documentation?
  • >
(This is one of the worse machine translations I have read recently. But knowing that Hans is German, I can make some educated guesses as to where the translator might have gotten confused.) 1. I would call "Dir" a function, a /built-in function/ to be precise. In the documentation, it is also called an /intrinsic function/. 2. You can find all built-in functions and instructions in the Language Index[1]. There is an overview of categories if you are looking for a more specific topic [2]. The built-in /classes/ are listed in the gb component [3]. Regards, Tobi [1] http://gambaswiki.org/wiki/lang [2] http://gambaswiki.org/wiki/cat [3] http://gambaswiki.org/wiki/comp/gb -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From g4mba5 at gmail.com Mon Aug 13 15:38:18 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Mon, 13 Aug 2018 15:38:18 +0200 Subject: [Gambas-user] Release of Gambas 3.11.4 In-Reply-To: References: Message-ID: <1c279004-c052-aab1-0b9d-6cb4956aa0cd@gmail.com> Le 13/08/2018 ? 14:38, PICCORO McKAY Lenz a ?crit?: > ODBC still broken and makes the gambas release unproductible for > bussiness projects, > > mysql and postgres only represent the 28% of the bussiness > implementations in the market!, > > we need ODBC fixeds please, it's so hard to take some piece of vision on > gambas? > > Lenz McKAY Gerardo (PICCORO) > http://qgqlochekone.blogspot.com > ODBC works perfectly on my system (with mySQL and PostgreSQL). Regards, -- Beno?t Minisini From mckaygerhard at gmail.com Mon Aug 13 15:50:11 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Mon, 13 Aug 2018 09:50:11 -0400 Subject: [Gambas-user] Release of Gambas 3.11.4 In-Reply-To: <1c279004-c052-aab1-0b9d-6cb4956aa0cd@gmail.com> References: <1c279004-c052-aab1-0b9d-6cb4956aa0cd@gmail.com> Message-ID: 2018-08-13 9:38 GMT-04:00 Beno?t Minisini : ODBC works perfectly on my system (with mySQL and PostgreSQL). > hi benoit, thanks for the release, relally really need those fixeds over 3.11 branch, ...but said that works for mysql and postgres It's like a farmer talking about walking around the land by it's foon only in a single day. please men, mysql and postgres now works, but the rest the vast rest of odbc drivers does not! specially the tds protocol (Sybase, Anywhere, SAPdb, and many others, from those i used extensivelly Anywhere, and SAPdb with replication activated) we need a mayor vision of the gambas usage, it's great but it's not only mysql! it's like the bug #1385 or the #1384 that affects the users of small screens, revealing that developers thinks and assumed that all the people will and only have big screens! non-sesnses! > > Regards, > > > -- > Beno?t Minisini > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From t.lee.davidson at gmail.com Mon Aug 13 17:16:57 2018 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Mon, 13 Aug 2018 11:16:57 -0400 Subject: [Gambas-user] using events of serial ports for reading how_? In-Reply-To: References: <92cf35e1-c696-023f-3c93-a3a7c3cf35b1@ajmconsulting.ca> <60ab6b42-c889-7acf-5a46-1577c499975a@ajm-software.com> <790274409.3110289.1533621211448@mail.yahoo.com> <1a6bf27c-28f8-cbee-9b70-cd5cda081611@gmail.com> <8f9061fc-7cdc-6b86-9926-5411e6f1f88b@gmail.com> Message-ID: <8953a870-239a-af50-b964-e5f9708b69e4@gmail.com> On 08/13/2018 08:36 AM, PICCORO McKAY Lenz wrote: > 2018-08-11 20:47 GMT-04:00 T Lee Davidson >: > > No, there should not "always be data to read". If the printer responds there should be data to read *after a certain amount of > time*. You have to give the printer/driver time to respond. Your program does not. > > but, does not raised automatically the event when data happened? The _Read event should be triggered if there is data to read. But, again, your program does not allow time for the serial communication to be effected and the _Read event raised. > And, you cannot rightly say that the event is never raised if you do not allow time for that to happen, which, again, your > > if i removed rhe "rp" function the "Read" event never reaised You don't give it a chance to be raised! You create the printer object, open its port, write to the printer requesting a status report, and then *immediately* you manually read the response. After that, for some odd reason, you read the "dataread" property twice, and then the program ends. If you don't call the "rp" function, the program drops through the two "dataread" property reads and ends. When did you expect the _Read event would have a chance to be raised? > here there's no "certaing amount of time" due there's no read operatin forced manually Not sure exactly what you mean with that statement, but it may be the very idea I am trying to impress upon you. Your manual read subroutine gives the printer 500 milliseconds to respond. Why don't you give the Main module at least 500 milliseconds to allow the printer to respond and raise the _Read event? Or, why not use a semaphore that is visible to the Main module and loop until the _Read event has had an opportunity to fill the "databuffer"? > Finally, if a Stream is being WATCHed, the program can (will?) hang if the Stream is not closed prior to application exit. > > i not watched the stream.. and .. You may not have specified that the SerialPort stream should be watched, but it would be logical that Gambas automatically WATCHes a SerialPort in order to be be able to raise the _Read event. (http://gambaswiki.org/wiki/lang/open) > the problem does not happen if i used gambas 3.1 and 3.4 do you know? I have no idea what you mean. ___ Lee From mckaygerhard at gmail.com Mon Aug 13 17:35:16 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Mon, 13 Aug 2018 11:35:16 -0400 Subject: [Gambas-user] using events of serial ports for reading how_? In-Reply-To: <8953a870-239a-af50-b964-e5f9708b69e4@gmail.com> References: <92cf35e1-c696-023f-3c93-a3a7c3cf35b1@ajmconsulting.ca> <60ab6b42-c889-7acf-5a46-1577c499975a@ajm-software.com> <790274409.3110289.1533621211448@mail.yahoo.com> <1a6bf27c-28f8-cbee-9b70-cd5cda081611@gmail.com> <8f9061fc-7cdc-6b86-9926-5411e6f1f88b@gmail.com> <8953a870-239a-af50-b964-e5f9708b69e4@gmail.com> Message-ID: 2018-08-13 11:16 GMT-04:00 T Lee Davidson : > You create the printer object, open its port, write to the printer > requesting a status report, and then *immediately* you > manually read the response. After that, for some odd reason, you read the > "dataread" property twice, and then the program ends. > ok but remove later those calls and does not triggered the read event!, inclusivelly if i put a loop in the main module that waiuth "something" If you don't call the "rp" function, the program drops through the two > "dataread" property reads and ends. When did you expect > the _Read event would have a chance to be raised? > was just a experiment, i removed in furter test as i said > Not sure exactly what you mean with that statement, but it may be the very > idea I am trying to impress upon you. Your manual > read subroutine gives the printer 500 milliseconds to respond. Why don't > you give the Main module at least 500 milliseconds to > allow the printer to respond and raise the _Read event? > i put a loop into as i said in the previous paragraph, but still does not happened! > Or, why not use a semaphore that is visible to the Main module and loop > until the _Read event has had an opportunity to fill the > "databuffer"? > oh, of course was working in this way, was my first code, ok great but i wish to deal with the read event .. > You may not have specified that the SerialPort stream should be watched, > but it would be logical that Gambas automatically > WATCHes a SerialPort in order to be be able to raise the _Read event. ( > http://gambaswiki.org/wiki/lang/open) > yeah yeah, when i said "hang at end" i mean that with gambas 3.8 when last sentence executed the programs ends normally, with 3.11 the programs "seems end" but the "play" button of the ide still are deactivate and the ide indicates program does not end... -------------- next part -------------- An HTML attachment was scrubbed... URL: From tmorehen at ajm-software.com Mon Aug 13 19:52:17 2018 From: tmorehen at ajm-software.com (Tony Morehen) Date: Mon, 13 Aug 2018 13:52:17 -0400 Subject: [Gambas-user] using events of serial ports for reading how_? Message-ID: <935504d6-76c1-bf4d-56c1-d81d28d76c44@ajm-software.com> Perhaps you could upload the latest version of your code? What printer are you testing this against? Have you tried connecting via a terminal program to your printer?? This will double check your connection settings and let you see the actual response to the commands you are sending.? Another test is to use a serial port monitor or sniffer to view your program's serial port activity. On 2018-08-13 11:35 AM, PICCORO McKAY Lenz wrote: > > 2018-08-13 11:16 GMT-04:00 T Lee Davidson >: > > You create the printer object, open its port, write to the printer > requesting a status report, and then *immediately* you > > manually read the response. After that, for some odd reason, you > read the "dataread" property twice, and then the program ends. > > ?ok but remove later those calls and does not triggered the read > event!, inclusivelly if i put a loop in the main module that waiuth > "something" > > If you don't call the "rp" function, the program drops through the > two "dataread" property reads and ends. When did you expect > the _Read event would have a chance to be raised? > > was just a experiment, i removed in furter test as i said > > Not sure exactly what you mean with that statement, but it may be > the very idea I am trying to impress upon you. Your manual > read subroutine gives the printer 500 milliseconds to respond. Why > don't you give the Main module at least 500 milliseconds to > allow the printer to respond and raise the _Read event? > > i put a loop into as i said in the previous paragraph, but still does > not happened! > > Or, why not use a semaphore that is visible to the Main module and > loop until the _Read event has had an opportunity to fill the > "databuffer"? > > oh, of course was working in this way, was my first code, ok great but > i wish to deal with the read event .. > > You may not have specified that the SerialPort stream should be > watched, but it would be logical that Gambas automatically > WATCHes a SerialPort in order to be be able to raise the _Read > event. (http://gambaswiki.org/wiki/lang/open > ) > > ?yeah yeah, when i said "hang at end" i mean that with gambas 3.8 when > last sentence executed the programs ends normally, with 3.11 the > programs "seems end" but the "play" button of the ide still are > deactivate and the ide indicates program does not end... > > > > ----[ Gambas mailing-list is hosted byhttps://www.hostsharing.net ]---- -------------- next part -------------- An HTML attachment was scrubbed... URL: From mckaygerhard at gmail.com Mon Aug 13 20:48:19 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Mon, 13 Aug 2018 14:48:19 -0400 Subject: [Gambas-user] using events of serial ports for reading how_? In-Reply-To: <935504d6-76c1-bf4d-56c1-d81d28d76c44@ajm-software.com> References: <935504d6-76c1-bf4d-56c1-d81d28d76c44@ajm-software.com> Message-ID: well it's a fiscal printer, so there's no sense in tell you taht it's a epson dot matrix i put more delay and now event raised! i mean, 0.5 ms in main module event in the property event! and 0.1 ms in the read function.. but if i put tyhe delay in any other place that are not in the main there's no read event raised! ans somethings does not happened (very rare times) Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2018-08-13 13:52 GMT-04:00 Tony Morehen : > Perhaps you could upload the latest version of your code? > > What printer are you testing this against? > > Have you tried connecting via a terminal program to your printer? This > will double check your connection settings and let you see the actual > response to the commands you are sending. Another test is to use a serial > port monitor or sniffer to view your program's serial port activity. > > On 2018-08-13 11:35 AM, PICCORO McKAY Lenz wrote: > > > 2018-08-13 11:16 GMT-04:00 T Lee Davidson : > >> You create the printer object, open its port, write to the printer >> requesting a status report, and then *immediately* you >> > manually read the response. After that, for some odd reason, you read the >> "dataread" property twice, and then the program ends. >> > ok but remove later those calls and does not triggered the read event!, > inclusivelly if i put a loop in the main module that waiuth "something" > > If you don't call the "rp" function, the program drops through the two >> "dataread" property reads and ends. When did you expect >> the _Read event would have a chance to be raised? >> > was just a experiment, i removed in furter test as i said > > >> Not sure exactly what you mean with that statement, but it may be the >> very idea I am trying to impress upon you. Your manual >> read subroutine gives the printer 500 milliseconds to respond. Why don't >> you give the Main module at least 500 milliseconds to >> allow the printer to respond and raise the _Read event? >> > i put a loop into as i said in the previous paragraph, but still does not > happened! > > > >> Or, why not use a semaphore that is visible to the Main module and loop >> until the _Read event has had an opportunity to fill the >> "databuffer"? >> > oh, of course was working in this way, was my first code, ok great but i > wish to deal with the read event .. > > >> You may not have specified that the SerialPort stream should be watched, >> but it would be logical that Gambas automatically >> WATCHes a SerialPort in order to be be able to raise the _Read event. ( >> http://gambaswiki.org/wiki/lang/open) >> > yeah yeah, when i said "hang at end" i mean that with gambas 3.8 when > last sentence executed the programs ends normally, with 3.11 the programs > "seems end" but the "play" button of the ide still are deactivate and the > ide indicates program does not end... > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: printerfiscalman-0.0.4.tar.gz Type: application/gzip Size: 13674 bytes Desc: not available URL: From mckaygerhard at gmail.com Mon Aug 13 20:54:12 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Mon, 13 Aug 2018 14:54:12 -0400 Subject: [Gambas-user] Release of Gambas 3.11.4 In-Reply-To: References: <1c279004-c052-aab1-0b9d-6cb4956aa0cd@gmail.com> Message-ID: Debian packages for Jessie 08 adn strech 0.9 are ready to use at VenenuX repository build service. for Debian 7 still only are 3.10 available for Debian 8 or 9 must use: cat > /etc/apt/sources.list.d/debianvenenuxgambas.list << EOF https://download.opensuse.org/repositories/home:/vegnuli:/gambas/Debian_$(lsb_release -s -c).0/ / EOF apt-get update apt-get isntall gambas3 gambas3-scripter ODBC still are broken, http://gambaswiki.org/bugtracker/edit?object=BUG.1331&class=bug&tab=%2A&update=bug&s=0&from=L21haW4-&focus=version as reported, making gambas 3.11 unable for production already! Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2018-08-13 9:50 GMT-04:00 PICCORO McKAY Lenz : > 2018-08-13 9:38 GMT-04:00 Beno?t Minisini : > > ODBC works perfectly on my system (with mySQL and PostgreSQL). >> > > hi benoit, thanks for the release, relally really need those fixeds over > 3.11 branch, > > ...but said that works for mysql and postgres It's like a farmer talking > about walking around the land by it's foon only in a single day. > > please men, mysql and postgres now works, but the rest the vast rest of > odbc drivers does not! specially the tds protocol (Sybase, Anywhere, SAPdb, > and many others, from those i used extensivelly Anywhere, and SAPdb with > replication activated) > > we need a mayor vision of the gambas usage, it's great but it's not only > mysql! > > it's like the bug #1385 or the #1384 that affects the users of small > screens, revealing that developers thinks and assumed that all the people > will and only have big screens! non-sesnses! > > >> >> Regards, >> >> >> -- >> Beno?t Minisini >> >> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >> > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From tmorehen at ajm-software.com Mon Aug 13 21:22:23 2018 From: tmorehen at ajm-software.com (Tony Morehen) Date: Mon, 13 Aug 2018 15:22:23 -0400 Subject: [Gambas-user] using events of serial ports for reading how_? In-Reply-To: References: <935504d6-76c1-bf4d-56c1-d81d28d76c44@ajm-software.com> Message-ID: I give up trying to help you.? I asked 3 questions.? You ignored two and said there is no point in answering the other.? How can anyone help you when you refuse to provide any information? It's like the ODBC problems you've been yelling and screaming about.? You don't even give basic information like what odbc driver you are using, including version. On 2018-08-13 02:48 PM, PICCORO McKAY Lenz wrote: > well it's a fiscal printer, so there's no sense in tell you taht it's > a epson dot matrix > > i put more delay and now event raised! i mean, 0.5 ms in main module > event in the property event! > and 0.1 ms in the read function.. > > but if i put tyhe delay in any other place that are not in the main > there's no read event raised! > > ans somethings does not happened (very rare times) > > Lenz McKAY Gerardo (PICCORO) > http://qgqlochekone.blogspot.com > > 2018-08-13 13:52 GMT-04:00 Tony Morehen >: > > Perhaps you could upload the latest version of your code? > > What printer are you testing this against? > > Have you tried connecting via a terminal program to your printer?? > This will double check your connection settings and let you see > the actual response to the commands you are sending.? Another test > is to use a serial port monitor or sniffer to view your program's > serial port activity. > > > On 2018-08-13 11:35 AM, PICCORO McKAY Lenz wrote: >> >> 2018-08-13 11:16 GMT-04:00 T Lee Davidson >> >: >> >> You create the printer object, open its port, write to the >> printer requesting a status report, and then *immediately* you >> >> manually read the response. After that, for some odd reason, >> you read the "dataread" property twice, and then the program >> ends. >> >> ?ok but remove later those calls and does not triggered the read >> event!, inclusivelly if i put a loop in the main module that >> waiuth "something" >> >> If you don't call the "rp" function, the program drops >> through the two "dataread" property reads and ends. When did >> you expect >> the _Read event would have a chance to be raised? >> >> was just a experiment, i removed in furter test as i said >> >> Not sure exactly what you mean with that statement, but it >> may be the very idea I am trying to impress upon you. Your manual >> read subroutine gives the printer 500 milliseconds to >> respond. Why don't you give the Main module at least 500 >> milliseconds to >> allow the printer to respond and raise the _Read event? >> >> i put a loop into as i said in the previous paragraph, but still >> does not happened! >> >> Or, why not use a semaphore that is visible to the Main >> module and loop until the _Read event has had an opportunity >> to fill the >> "databuffer"? >> >> oh, of course was working in this way, was my first code, ok >> great but i wish to deal with the read event .. >> >> You may not have specified that the SerialPort stream should >> be watched, but it would be logical that Gambas automatically >> WATCHes a SerialPort in order to be be able to raise the >> _Read event. (http://gambaswiki.org/wiki/lang/open >> ) >> >> ?yeah yeah, when i said "hang at end" i mean that with gambas 3.8 >> when last sentence executed the programs ends normally, with 3.11 >> the programs "seems end" but the "play" button of the ide still >> are deactivate and the ide indicates program does not end... >> >> >> >> ----[ Gambas mailing-list is hosted byhttps://www.hostsharing.net ]---- > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net > ]---- > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mckaygerhard at gmail.com Mon Aug 13 21:28:32 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Mon, 13 Aug 2018 15:28:32 -0400 Subject: [Gambas-user] using events of serial ports for reading how_? In-Reply-To: References: <935504d6-76c1-bf4d-56c1-d81d28d76c44@ajm-software.com> Message-ID: Tony all the information was given: 1 it's a fiscal printer, there's no sense in give you that are a epson dot matrix due you need the kit's in place to test 2 i tested and make many mothns ago a POS systems so test with command line the kit was done! please! 3) of course commands are ver very correct! i receive data but not as planned by the event as T Lee said! about the odbc, i provide the odbc driver info, TDS do you noted and read the issues? and connection string info, i not the only that suffers the odbc problem, the world are not the "little hole of mysql" right! please seems are you the guy that are "srcreaming garbage" Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2018-08-13 15:22 GMT-04:00 Tony Morehen : > I give up trying to help you. I asked 3 questions. You ignored two and > said there is no point in answering the other. How can anyone help you > when you refuse to provide any information? > It's like the ODBC problems you've been yelling and screaming about. You > don't even give basic information like what odbc driver you are using, > including version. > > > On 2018-08-13 02:48 PM, PICCORO McKAY Lenz wrote: > > well it's a fiscal printer, so there's no sense in tell you taht it's a > epson dot matrix > > i put more delay and now event raised! i mean, 0.5 ms in main module event > in the property event! > and 0.1 ms in the read function.. > > but if i put tyhe delay in any other place that are not in the main > there's no read event raised! > > ans somethings does not happened (very rare times) > > Lenz McKAY Gerardo (PICCORO) > http://qgqlochekone.blogspot.com > > 2018-08-13 13:52 GMT-04:00 Tony Morehen : > >> Perhaps you could upload the latest version of your code? >> >> What printer are you testing this against? >> >> Have you tried connecting via a terminal program to your printer? This >> will double check your connection settings and let you see the actual >> response to the commands you are sending. Another test is to use a serial >> port monitor or sniffer to view your program's serial port activity. >> >> On 2018-08-13 11:35 AM, PICCORO McKAY Lenz wrote: >> >> >> 2018-08-13 11:16 GMT-04:00 T Lee Davidson : >> >>> You create the printer object, open its port, write to the printer >>> requesting a status report, and then *immediately* you >>> >> manually read the response. After that, for some odd reason, you read the >>> "dataread" property twice, and then the program ends. >>> >> ok but remove later those calls and does not triggered the read event!, >> inclusivelly if i put a loop in the main module that waiuth "something" >> >> If you don't call the "rp" function, the program drops through the two >>> "dataread" property reads and ends. When did you expect >>> the _Read event would have a chance to be raised? >>> >> was just a experiment, i removed in furter test as i said >> >> >>> Not sure exactly what you mean with that statement, but it may be the >>> very idea I am trying to impress upon you. Your manual >>> read subroutine gives the printer 500 milliseconds to respond. Why don't >>> you give the Main module at least 500 milliseconds to >>> allow the printer to respond and raise the _Read event? >>> >> i put a loop into as i said in the previous paragraph, but still does not >> happened! >> >> >> >>> Or, why not use a semaphore that is visible to the Main module and loop >>> until the _Read event has had an opportunity to fill the >>> "databuffer"? >>> >> oh, of course was working in this way, was my first code, ok great but i >> wish to deal with the read event .. >> >> >>> You may not have specified that the SerialPort stream should be watched, >>> but it would be logical that Gambas automatically >>> WATCHes a SerialPort in order to be be able to raise the _Read event. ( >>> http://gambaswiki.org/wiki/lang/open) >>> >> yeah yeah, when i said "hang at end" i mean that with gambas 3.8 when >> last sentence executed the programs ends normally, with 3.11 the programs >> "seems end" but the "play" button of the ide still are deactivate and the >> ide indicates program does not end... >> >> >> >> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >> >> >> >> >> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >> >> > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Mon Aug 13 21:36:30 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Mon, 13 Aug 2018 21:36:30 +0200 Subject: [Gambas-user] Release of Gambas 3.11.4 In-Reply-To: References: <1c279004-c052-aab1-0b9d-6cb4956aa0cd@gmail.com> Message-ID: <0ace8cf4-28e2-d91a-fe24-93fc920fb0b6@gmail.com> Le 13/08/2018 ? 15:50, PICCORO McKAY Lenz a ?crit?: > 2018-08-13 9:38 GMT-04:00 Beno?t Minisini >: > > ODBC works perfectly on my system (with mySQL and PostgreSQL). > > > hi benoit, thanks for the release, relally really need those fixeds over > 3.11 branch, > > ...but said that works for mysql and postgres It's like a farmer talking > about walking around the land by it's foon only in a single day. > > please men, mysql and postgres now works, but the rest the vast rest of > odbc drivers does not! specially the tds protocol (Sybase, Anywhere, > SAPdb, and many others, from those i used extensivelly Anywhere, and > SAPdb with replication activated) > > we need a mayor vision of the gambas usage, it's great but it's not only > mysql! > If the ODBC component works with the ODBC driver from MySQL, and PostgreSQL, I guess that the problem is in the ODBC drivers themselves, not in Gambas. And frankly, I have no time to deal with these non-free database management systems I do not use. Regards, -- Beno?t Minisini From mckaygerhard at gmail.com Mon Aug 13 21:54:11 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Mon, 13 Aug 2018 15:54:11 -0400 Subject: [Gambas-user] Release of Gambas 3.11.4 In-Reply-To: <0ace8cf4-28e2-d91a-fe24-93fc920fb0b6@gmail.com> References: <1c279004-c052-aab1-0b9d-6cb4956aa0cd@gmail.com> <0ace8cf4-28e2-d91a-fe24-93fc920fb0b6@gmail.com> Message-ID: hi benoit, seem not due gambas 3.9 and 3.8 and all not in 3.11 works perfectly! Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2018-08-13 15:36 GMT-04:00 Beno?t Minisini : > Le 13/08/2018 ? 15:50, PICCORO McKAY Lenz a ?crit : > >> 2018-08-13 9:38 GMT-04:00 Beno?t Minisini > g4mba5 at gmail.com>>: >> >> ODBC works perfectly on my system (with mySQL and PostgreSQL). >> >> >> hi benoit, thanks for the release, relally really need those fixeds over >> 3.11 branch, >> >> ...but said that works for mysql and postgres It's like a farmer talking >> about walking around the land by it's foon only in a single day. >> >> please men, mysql and postgres now works, but the rest the vast rest of >> odbc drivers does not! specially the tds protocol (Sybase, Anywhere, SAPdb, >> and many others, from those i used extensivelly Anywhere, and SAPdb with >> replication activated) >> >> we need a mayor vision of the gambas usage, it's great but it's not only >> mysql! >> >> > If the ODBC component works with the ODBC driver from MySQL, and > PostgreSQL, I guess that the problem is in the ODBC drivers themselves, not > in Gambas. > > And frankly, I have no time to deal with these non-free database > management systems I do not use. > > > Regards, > > -- > Beno?t Minisini > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From t.lee.davidson at gmail.com Tue Aug 14 02:10:17 2018 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Mon, 13 Aug 2018 20:10:17 -0400 Subject: [Gambas-user] using events of serial ports for reading how_? In-Reply-To: References: <935504d6-76c1-bf4d-56c1-d81d28d76c44@ajm-software.com> Message-ID: <1a857b91-fd59-25a1-dcd2-e47820d06677@gmail.com> Here, try this simple program, PICCORO: [code] ' Gambas module file Public SComm As SerialPort Public databuffer As String = "" Public DataHasBeenRead As Boolean = False Public Sub Main() SComm = New SerialPort As "SComm" SComm.PortName = "/dev/ttyS1" SComm.Speed = 9600 SComm.Parity = 0 SComm.DataBits = 8 SComm.StopBits = 1 SComm.FlowControl = 2 Try SComm.Open() If Error Then Print "Error: " & Error.Text Quit Endif Print #SComm, Chr(2) & "_" & Chr(3) Do Wait 0.1 Loop Until DataHasBeenRead Print databuffer End Public Sub SComm_Read() Read #SComm, databuffer, Lof(SComm) DataHasBeenRead = True End [/code] Does it work? If so, then problem solved. I'm done. Good luck. ___ Lee P.S. Tony was certainly not "srcreaming garbage" [sic], just pointing out facts of your behavior. The world may not be the "little hole of mysql", but Gambas works with the major non-proprietary and open-source databases MySQL and PostgreSQL. If you need it to work with proprietary databases, you are invited to develop and contribute the code to do so. Or, perhaps Lazarus would meet your expectations. However, I doubt the dedicated and helpful people at the Lazarus forum would tolerate your unappreciative and obnoxious attitude for very long. On 08/13/2018 03:28 PM, PICCORO McKAY Lenz wrote: > Tony all the information was given: > > 1 it's a fiscal printer, there's no sense in give you that are a epson dot matrix due you need the kit's in place to test > > 2 i tested and make many mothns ago a POS systems so test with command line the kit was done! please! > > 3) of course commands are ver very correct! i receive data but not as planned by the event as T Lee said! > > about the odbc, i provide the odbc driver info, TDS do you noted and read the issues? > and connection string info, i not the only that suffers the odbc problem, the world are not the "little hole of mysql" right! > > please seems are you the guy that are "srcreaming garbage" > > Lenz McKAY Gerardo (PICCORO) > http://qgqlochekone.blogspot.com > > 2018-08-13 15:22 GMT-04:00 Tony Morehen >: > > I give up trying to help you.? I asked 3 questions.? You ignored two and said there is no point in answering the other.? How > can anyone help you when you refuse to provide any information? > > It's like the ODBC problems you've been yelling and screaming about.? You don't even give basic information like what odbc > driver you are using, including version. > > > On 2018-08-13 02:48 PM, PICCORO McKAY Lenz wrote: >> well it's a fiscal printer, so there's no sense in tell you taht it's a epson dot matrix >> >> i put more delay and now event raised! i mean, 0.5 ms in main module event in the property event! >> and 0.1 ms in the read function.. >> >> but if i put tyhe delay in any other place that are not in the main there's no read event raised! >> >> ans somethings does not happened (very rare times) >> >> Lenz McKAY Gerardo (PICCORO) >> http://qgqlochekone.blogspot.com >> >> 2018-08-13 13:52 GMT-04:00 Tony Morehen >: >> >> Perhaps you could upload the latest version of your code? >> >> What printer are you testing this against? >> >> Have you tried connecting via a terminal program to your printer?? This will double check your connection settings and >> let you see the actual response to the commands you are sending.? Another test is to use a serial port monitor or >> sniffer to view your program's serial port activity. >> >> >> On 2018-08-13 11:35 AM, PICCORO McKAY Lenz wrote: >>> >>> 2018-08-13 11:16 GMT-04:00 T Lee Davidson >: >>> >>> You create the printer object, open its port, write to the printer requesting a status report, and then >>> *immediately* you >>> >>> manually read the response. After that, for some odd reason, you read the "dataread" property twice, and then the >>> program ends. >>> >>> ?ok but remove later those calls and does not triggered the read event!, inclusivelly if i put a loop in the main >>> module that waiuth "something" >>> >>> If you don't call the "rp" function, the program drops through the two "dataread" property reads and ends. When >>> did you expect >>> the _Read event would have a chance to be raised? >>> >>> was just a experiment, i removed in furter test as i said >>> ? >>> >>> Not sure exactly what you mean with that statement, but it may be the very idea I am trying to impress upon you. >>> Your manual >>> read subroutine gives the printer 500 milliseconds to respond. Why don't you give the Main module at least 500 >>> milliseconds to >>> allow the printer to respond and raise the _Read event? >>> >>> i put a loop into as i said in the previous paragraph, but still does not happened! >>> >>> ? >>> >>> Or, why not use a semaphore that is visible to the Main module and loop until the _Read event has had an >>> opportunity to fill the >>> "databuffer"? >>> >>> oh, of course was working in this way, was my first code, ok great but i wish to deal with the read event .. >>> ? >>> >>> You may not have specified that the SerialPort stream should be watched, but it would be logical that Gambas >>> automatically >>> WATCHes a SerialPort in order to be be able to raise the _Read event. (http://gambaswiki.org/wiki/lang/open >>> ) >>> >>> ?yeah yeah, when i said "hang at end" i mean that with gambas 3.8 when last sentence executed the programs ends >>> normally, with 3.11 the programs "seems end" but the "play" button of the ide still are deactivate and the ide >>> indicates program does not end... >>> >>> >>> >>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >> >> >> >> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >> >> > > > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > From jussi.lahtinen at gmail.com Tue Aug 14 03:00:01 2018 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Tue, 14 Aug 2018 04:00:01 +0300 Subject: [Gambas-user] JIT crash In-Reply-To: References: <6ec407d2-09bc-ce7d-a604-491f6d179131@gmail.com> <3cd224a7-f50c-fe13-faac-7eb22451b830@gmail.com> Message-ID: I just compiled latest Gambas... are you still working with the JIT bug? If you are, then ignore this message. I mean it doesn't crash any more, but it makes other crazy things with the fast keyword. Just run the project and select something from the drop down menu. Jussi On Mon, Aug 13, 2018 at 1:09 AM, Jussi Lahtinen wrote: > Is it better to keep these in the same thread or do you prefer new one for > new bug? > Anyway... I'm not able to isolate the problem, but if I add "fast" keyword > to another project, I trigger probably the same bug. See the attachment. > > > Jussi > > > > On Sun, Aug 12, 2018 at 8:43 PM, Jussi Lahtinen > wrote: > >> Weird, you are right. Did I really see that wrong or what did I mess... >> >> >> Jussi >> >> On Sun, Aug 12, 2018 at 10:44 AM, Beno?t Minisini >> wrote: >> >>> Le 12/08/2018 ? 01:55, Jussi Lahtinen a ?crit : >>> >>>> It's fixed, but I have another bug with exactly the same symptoms. >>>> I just added some random mess and I think this is related bug. See the >>>> attachment. >>>> >>>> >>>> Jussi >>>> >>>> >>> Fixed in commit https://gitlab.com/gambas/gamb >>> as/commit/9c1fa46558cfdfbd8b2248013cce4bd8362fa5bc. >>> >>> Note that the symptoms are not the same at all: the first bug crashed >>> during compilation of the source code, while that one crashed during the >>> execution. >>> >>> Regards, >>> >>> -- >>> Beno?t Minisini >>> >> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: PTC-Calculator-0.9.4.tar.gz Type: application/gzip Size: 20009 bytes Desc: not available URL: From mckaygerhard at gmail.com Tue Aug 14 14:41:37 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Tue, 14 Aug 2018 08:41:37 -0400 Subject: [Gambas-user] using events of serial ports for reading how_? In-Reply-To: <1a857b91-fd59-25a1-dcd2-e47820d06677@gmail.com> References: <935504d6-76c1-bf4d-56c1-d81d28d76c44@ajm-software.com> <1a857b91-fd59-25a1-dcd2-e47820d06677@gmail.com> Message-ID: Hi T Lee, your code suggestion was implemented various mails ago, a flag was implemented in the code, and it's works of course as i said but now i want to experiment with the event and watchers,and I REPEAT, part of the problem was solved, xzMarce provided the "very advanced info" (seems that i did not reply to the list, sorry for that) my apologies, i did not reply the solution and assumed that all read it! posted now here: So: thanks to zxMarce i got the "why", the time to respond from the printer are not fixed and due for all commands we need/xpected a response from the printer the problem it's all the fiscal kit have a maximunt time to "waith to data" (i think it's how write it in english) so in my classes must be defined at each inherits implementatino and must override the waith of the read event to xpect data on the buffer As noted, this it's a problem taking in consideration the object model of the gambas (in java was easy with interfaces) so the proper way it's to implement also not only the write operation, the Read operation too in each class inherints Now, my question: can i override the "Read" event in each class without impact in performance and object class model? So T Lee and others, unfortunatelly i'm programing in blind mode, i explain: a fiscal kit printer it's a ad-hoc system, so them you must be with it to property understand.. so then, due that i try to explain the behaviour of the serial and signals to build a better, A BETTER implementqation for linux i'm a very active contributor, but in linux there's too much "mysql+php" and we need more advanced solutions not yet provided! we need a more expanded view and vision ok, right? so thanks to xzMarce for the info, and if you want to know wicht info, was posted by me two mails ago from here! DP: for all of here in gambas list: lazarus: puff it's like return to the stone eera, but with airplane, so i'll will the "dragon that fly" ( "how hard its to be a good"), the lazarus forums does not have any advanced project, more that a accounting system named "Leonux" and "BRP-sopftware" (that last are not free), so apart if you have a code made in fpc version X.1 the next version will break your compilation and must recompile it! in conclusion seems more a headhache! 2018-08-13 20:10 GMT-04:00 T Lee Davidson : > Here, try this simple program, PICCORO: > > > [code] > ' Gambas module file > > Public SComm As SerialPort > Public databuffer As String = "" > Public DataHasBeenRead As Boolean = False > > Public Sub Main() > > SComm = New SerialPort As "SComm" > SComm.PortName = "/dev/ttyS1" > SComm.Speed = 9600 > SComm.Parity = 0 > SComm.DataBits = 8 > SComm.StopBits = 1 > SComm.FlowControl = 2 > Try SComm.Open() > If Error Then > Print "Error: " & Error.Text > Quit > Endif > > Print #SComm, Chr(2) & "_" & Chr(3) > > Do > Wait 0.1 > Loop Until DataHasBeenRead > Print databuffer > > End > > Public Sub SComm_Read() > > Read #SComm, databuffer, Lof(SComm) > DataHasBeenRead = True > > End > [/code] > > Does it work? If so, then problem solved. > > I'm done. Good luck. > > > ___ > Lee > > P.S. Tony was certainly not "srcreaming garbage" [sic], just pointing out > facts of your behavior. > > The world may not be the "little hole of mysql", but Gambas works with the > major non-proprietary and open-source databases MySQL > and PostgreSQL. If you need it to work with proprietary databases, you are > invited to develop and contribute the code to do so. > > Or, perhaps Lazarus would meet your expectations. However, I doubt the > dedicated and helpful people at the Lazarus forum would > tolerate your unappreciative and obnoxious attitude for very long. > > On 08/13/2018 03:28 PM, PICCORO McKAY Lenz wrote: > > Tony all the information was given: > > > > 1 it's a fiscal printer, there's no sense in give you that are a epson > dot matrix due you need the kit's in place to test > > > > 2 i tested and make many mothns ago a POS systems so test with command > line the kit was done! please! > > > > 3) of course commands are ver very correct! i receive data but not as > planned by the event as T Lee said! > > > > about the odbc, i provide the odbc driver info, TDS do you noted and > read the issues? > > and connection string info, i not the only that suffers the odbc > problem, the world are not the "little hole of mysql" right! > > > > please seems are you the guy that are "srcreaming garbage" > > > > Lenz McKAY Gerardo (PICCORO) > > http://qgqlochekone.blogspot.com > > > > 2018-08-13 15:22 GMT-04:00 Tony Morehen >: > > > > I give up trying to help you. I asked 3 questions. You ignored two > and said there is no point in answering the other. How > > can anyone help you when you refuse to provide any information? > > > > It's like the ODBC problems you've been yelling and screaming > about. You don't even give basic information like what odbc > > driver you are using, including version. > > > > > > On 2018-08-13 02:48 PM, PICCORO McKAY Lenz wrote: > >> well it's a fiscal printer, so there's no sense in tell you taht > it's a epson dot matrix > >> > >> i put more delay and now event raised! i mean, 0.5 ms in main > module event in the property event! > >> and 0.1 ms in the read function.. > >> > >> but if i put tyhe delay in any other place that are not in the main > there's no read event raised! > >> > >> ans somethings does not happened (very rare times) > >> > >> Lenz McKAY Gerardo (PICCORO) > >> http://qgqlochekone.blogspot.com > >> > >> 2018-08-13 13:52 GMT-04:00 Tony Morehen >: > >> > >> Perhaps you could upload the latest version of your code? > >> > >> What printer are you testing this against? > >> > >> Have you tried connecting via a terminal program to your > printer? This will double check your connection settings and > >> let you see the actual response to the commands you are > sending. Another test is to use a serial port monitor or > >> sniffer to view your program's serial port activity. > >> > >> > >> On 2018-08-13 11:35 AM, PICCORO McKAY Lenz wrote: > >>> > >>> 2018-08-13 11:16 GMT-04:00 T Lee Davidson < > t.lee.davidson at gmail.com >: > >>> > >>> You create the printer object, open its port, write to the > printer requesting a status report, and then > >>> *immediately* you > >>> > >>> manually read the response. After that, for some odd > reason, you read the "dataread" property twice, and then the > >>> program ends. > >>> > >>> ok but remove later those calls and does not triggered the > read event!, inclusivelly if i put a loop in the main > >>> module that waiuth "something" > >>> > >>> If you don't call the "rp" function, the program drops > through the two "dataread" property reads and ends. When > >>> did you expect > >>> the _Read event would have a chance to be raised? > >>> > >>> was just a experiment, i removed in furter test as i said > >>> > >>> > >>> Not sure exactly what you mean with that statement, but it > may be the very idea I am trying to impress upon you. > >>> Your manual > >>> read subroutine gives the printer 500 milliseconds to > respond. Why don't you give the Main module at least 500 > >>> milliseconds to > >>> allow the printer to respond and raise the _Read event? > >>> > >>> i put a loop into as i said in the previous paragraph, but > still does not happened! > >>> > >>> > >>> > >>> Or, why not use a semaphore that is visible to the Main > module and loop until the _Read event has had an > >>> opportunity to fill the > >>> "databuffer"? > >>> > >>> oh, of course was working in this way, was my first code, ok > great but i wish to deal with the read event .. > >>> > >>> > >>> You may not have specified that the SerialPort stream > should be watched, but it would be logical that Gambas > >>> automatically > >>> WATCHes a SerialPort in order to be be able to raise the > _Read event. (http://gambaswiki.org/wiki/lang/open > >>> ) > >>> > >>> yeah yeah, when i said "hang at end" i mean that with gambas > 3.8 when last sentence executed the programs ends > >>> normally, with 3.11 the programs "seems end" but the "play" > button of the ide still are deactivate and the ide > >>> indicates program does not end... > >>> > >>> > >>> > >>> ----[ Gambas mailing-list is hosted by > https://www.hostsharing.net ]---- > >> > >> > >> > >> ----[ Gambas mailing-list is hosted by > https://www.hostsharing.net ]---- > >> > >> > > > > > > > > > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From hans at gambas-buch.de Tue Aug 14 17:30:36 2018 From: hans at gambas-buch.de (Hans Lehmann) Date: Tue, 14 Aug 2018 17:30:36 +0200 Subject: [Gambas-user] Open stream Message-ID: Hello, in the documentation I found that at various places: (1) Open sFileName For Read As #hFile (2) hFile = Open sFileName For Read Under http://gambaswiki.org/wiki/lang/open stands: Stream = OPEN FileName [ FOR [ READ | INPUT ] [ WRITE | OUTPUT ] [ CREATE | APPEND ] [ WATCH |]] Are (1) and (2) valid or is (1) an old version that is (still) valid for compatibility reasons? With kind regards Hans From g4mba5 at gmail.com Tue Aug 14 18:16:24 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Tue, 14 Aug 2018 18:16:24 +0200 Subject: [Gambas-user] Open stream In-Reply-To: References: Message-ID: <9f538b4c-1267-7336-d99e-5d024fae23d5@gmail.com> Le 14/08/2018 ? 17:30, Hans Lehmann a ?crit?: > Hello, > > in the documentation I found that at various places: > > (1) Open sFileName For Read As #hFile > (2) hFile = Open sFileName For Read > > Under http://gambaswiki.org/wiki/lang/open stands: > > Stream = OPEN FileName [ FOR [ READ | INPUT ] [ WRITE | OUTPUT ] [ > CREATE | APPEND ] [ WATCH |]] > > Are (1) and (2) valid or is (1) an old version that is (still) valid for > compatibility reasons? > > With kind regards > > Hans > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > Only the syntax (2) is valid now. Regards, -- Beno?t Minisini From mckaygerhard at gmail.com Tue Aug 14 18:18:52 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Tue, 14 Aug 2018 12:18:52 -0400 Subject: [Gambas-user] Open stream In-Reply-To: <9f538b4c-1267-7336-d99e-5d024fae23d5@gmail.com> References: <9f538b4c-1267-7336-d99e-5d024fae23d5@gmail.com> Message-ID: 2018-08-14 12:16 GMT-04:00 Beno?t Minisini : > (2) hFile = Open sFileName For Read > > Only the syntax (2) is valid now. > since vesion? -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Tue Aug 14 18:23:37 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Tue, 14 Aug 2018 18:23:37 +0200 Subject: [Gambas-user] Open stream In-Reply-To: References: <9f538b4c-1267-7336-d99e-5d024fae23d5@gmail.com> Message-ID: <69d5c549-d7d6-232a-b629-910ea9639f80@gmail.com> Le 14/08/2018 ? 18:18, PICCORO McKAY Lenz a ?crit?: > 2018-08-14 12:16 GMT-04:00 Beno?t Minisini >: > > (2) hFile = Open sFileName For Read > > Only the syntax (2) is valid now. > > > since vesion? > I don't remember. At least since gambas 3.0. -- Beno?t Minisini From mckaygerhard at gmail.com Tue Aug 14 18:32:30 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Tue, 14 Aug 2018 12:32:30 -0400 Subject: [Gambas-user] Open stream In-Reply-To: <69d5c549-d7d6-232a-b629-910ea9639f80@gmail.com> References: <9f538b4c-1267-7336-d99e-5d024fae23d5@gmail.com> <69d5c549-d7d6-232a-b629-910ea9639f80@gmail.com> Message-ID: so wiki must be updated? Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2018-08-14 12:23 GMT-04:00 Beno?t Minisini : > Le 14/08/2018 ? 18:18, PICCORO McKAY Lenz a ?crit : > >> 2018-08-14 12:16 GMT-04:00 Beno?t Minisini > g4mba5 at gmail.com>>: >> >> (2) hFile = Open sFileName For Read >> >> Only the syntax (2) is valid now. >> >> >> since vesion? >> >> > I don't remember. At least since gambas 3.0. > > > -- > Beno?t Minisini > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From taboege at gmail.com Tue Aug 14 18:39:11 2018 From: taboege at gmail.com (Tobias Boege) Date: Tue, 14 Aug 2018 18:39:11 +0200 Subject: [Gambas-user] Open stream In-Reply-To: References: <9f538b4c-1267-7336-d99e-5d024fae23d5@gmail.com> <69d5c549-d7d6-232a-b629-910ea9639f80@gmail.com> Message-ID: <20180814163911.GC18977@highrise.localdomain> On Tue, 14 Aug 2018, PICCORO McKAY Lenz wrote: > so wiki must be updated? > I found and corrected two instances, namely on the pages for Lof and Catch. Hans, if you found more, do tell. Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From jussi.lahtinen at gmail.com Tue Aug 14 22:05:52 2018 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Tue, 14 Aug 2018 23:05:52 +0300 Subject: [Gambas-user] JIT crash In-Reply-To: <6dfbd191-2123-afa6-701a-709af42052c8@gmail.com> References: <6ec407d2-09bc-ce7d-a604-491f6d179131@gmail.com> <3cd224a7-f50c-fe13-faac-7eb22451b830@gmail.com> <6dfbd191-2123-afa6-701a-709af42052c8@gmail.com> Message-ID: There is another similar bug that gives the same: ** OOPS! INTERNAL ERROR. Program aborting, sorry! :-( ** Unable to compile JIT source file ** ** ClassStat.GotoNextSection.14: #39: End of file But I'm unable to isolate it... however the Fractal example doesn't seem to work when using JIT. Jussi On Tue, Aug 14, 2018 at 11:59 AM, Beno?t Minisini wrote: > Le 14/08/2018 ? 03:00, Jussi Lahtinen a ?crit : > >> I just compiled latest Gambas... are you still working with the JIT bug? >> If you are, then ignore this message. >> I mean it doesn't crash any more, but it makes other crazy things with >> the fast keyword. Just run the project and select something from the drop >> down menu. >> >> >> Jussi >> >> > It's another bug that should be fixed by commit ad162385. > > Regards, > > -- > Beno?t Minisini > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jussi.lahtinen at gmail.com Tue Aug 14 22:19:04 2018 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Tue, 14 Aug 2018 23:19:04 +0300 Subject: [Gambas-user] Fwd: JIT crash In-Reply-To: References: <6ec407d2-09bc-ce7d-a604-491f6d179131@gmail.com> <3cd224a7-f50c-fe13-faac-7eb22451b830@gmail.com> <6dfbd191-2123-afa6-701a-709af42052c8@gmail.com> <8b9716b8-08c8-3466-208f-b29b2e3a1ac3@gmail.com> Message-ID: ---------- Forwarded message ---------- From: Jussi Lahtinen Date: Tue, Aug 14, 2018 at 11:18 PM Subject: Re: [Gambas-user] JIT crash To: Beno?t Minisini Just send the full project that triggers the bug then. > I can't, closed source... I'll figure this out. Meanwhile see attachment. Some mess that will crash 50% of times when run (click the button). however the Fractal example doesn't seem to work when using JIT. >> > > It worked before, I will look at it. > It doesn't crash, it just doesn't zoom in or out. Attached. Jussi -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- [System] Gambas=3.11.90 e491a6759 (master) OperatingSystem=Linux Kernel=4.15.0-30-generic Architecture=x86_64 Distribution=Linux Mint 19 Tara Desktop=CINNAMON Theme=Gtk Language=en_US.UTF-8 Memory=7977M [Libraries] Cairo=libcairo.so.2.11510.0 Curl=libcurl.so.4.5.0 DBus=libdbus-1.so.3.19.4 GStreamer=libgstreamer-1.0.so.0.1401.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] DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus DEFAULTS_PATH=/usr/share/gconf/cinnamon.default.path DESKTOP_SESSION=cinnamon DISPLAY=:0 GB_GUI=gb.qt4 GB_PROFILE_MAX=1000 GDMSESSION=cinnamon GDM_LANG=en_US GIO_LAUNCHED_DESKTOP_FILE=/Desktop/Gambas3.desktop GIO_LAUNCHED_DESKTOP_FILE_PID=4539 GNOME_DESKTOP_SESSION_ID=this-is-deprecated GPG_AGENT_INFO=/run/user/1000/gnupg/S.gpg-agent:0:1 GTK_MODULES=gail:atk-bridge GTK_OVERLAY_SCROLLING=1 HOME= INSIDE_NEMO_PYTHON= LANG=en_US.UTF-8 LANGUAGE=en_US LC_ADDRESS=fi_FI.UTF-8 LC_IDENTIFICATION=fi_FI.UTF-8 LC_MEASUREMENT=fi_FI.UTF-8 LC_MONETARY=fi_FI.UTF-8 LC_NAME=fi_FI.UTF-8 LC_NUMERIC=fi_FI.UTF-8 LC_PAPER=fi_FI.UTF-8 LC_TELEPHONE=fi_FI.UTF-8 LOGNAME= MANDATORY_PATH=/usr/share/gconf/cinnamon.mandatory.path PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games PWD= QT_ACCESSIBILITY=1 QT_QPA_PLATFORMTHEME=qt5ct SESSION_MANAGER=local/:@/tmp/.ICE-unix/930,unix/:/tmp/.ICE-unix/930 SHELL=/bin/bash SHLVL=0 SSH_AGENT_PID=994 SSH_AUTH_SOCK=/run/user/1000/keyring/ssh TZ=:/etc/localtime USER= XAUTHORITY=/.Xauthority XDG_CONFIG_DIRS=/etc/xdg/xdg-cinnamon:/etc/xdg XDG_CURRENT_DESKTOP=X-Cinnamon XDG_DATA_DIRS=/usr/share/cinnamon:/usr/share/gnome:/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/local/share:/usr/share XDG_GREETER_DATA_DIR=/var/lib/lightdm-data/ XDG_RUNTIME_DIR=/run/user/1000 XDG_SEAT=seat0 XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0 XDG_SESSION_DESKTOP=cinnamon XDG_SESSION_ID=c1 XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0 XDG_SESSION_TYPE=x11 XDG_VTNR=7 -------------- next part -------------- A non-text attachment was scrubbed... Name: NewJITtest-5.0.2.tar.gz Type: application/gzip Size: 12253 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Fractal-1.0.tar.gz Type: application/gzip Size: 177830 bytes Desc: not available URL: From jussi.lahtinen at gmail.com Tue Aug 14 23:48:59 2018 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Wed, 15 Aug 2018 00:48:59 +0300 Subject: [Gambas-user] JIT crash In-Reply-To: References: <6ec407d2-09bc-ce7d-a604-491f6d179131@gmail.com> <3cd224a7-f50c-fe13-faac-7eb22451b830@gmail.com> <6dfbd191-2123-afa6-701a-709af42052c8@gmail.com> <8b9716b8-08c8-3466-208f-b29b2e3a1ac3@gmail.com> Message-ID: OK, found something more. See the attachment. New functions; CrashJIT1, CrashJIT2 and CrashJIT3. Jussi On Tue, Aug 14, 2018 at 11:19 PM, Jussi Lahtinen wrote: > > ---------- Forwarded message ---------- > From: Jussi Lahtinen > Date: Tue, Aug 14, 2018 at 11:18 PM > Subject: Re: [Gambas-user] JIT crash > To: Beno?t Minisini > > > > Just send the full project that triggers the bug then. >> > > I can't, closed source... I'll figure this out. Meanwhile see attachment. > Some mess that will crash 50% of times when run (click the button). > > > however the Fractal example doesn't seem to work when using JIT. >>> >> >> It worked before, I will look at it. >> > > It doesn't crash, it just doesn't zoom in or out. Attached. > > > > Jussi > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: GambasTestercmd-0.10.4.tar.gz Type: application/gzip Size: 26378 bytes Desc: not available URL: From g4mba5 at gmail.com Wed Aug 15 00:02:58 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Wed, 15 Aug 2018 00:02:58 +0200 Subject: [Gambas-user] JIT crash In-Reply-To: References: <6ec407d2-09bc-ce7d-a604-491f6d179131@gmail.com> <3cd224a7-f50c-fe13-faac-7eb22451b830@gmail.com> <6dfbd191-2123-afa6-701a-709af42052c8@gmail.com> <8b9716b8-08c8-3466-208f-b29b2e3a1ac3@gmail.com> Message-ID: Le 14/08/2018 ? 23:48, Jussi Lahtinen a ?crit?: > OK, found something more. See the attachment. New functions; CrashJIT1, > CrashJIT2 and CrashJIT3. > > > Jussi > Fixed with commit https://gitlab.com/gambas/gambas/commit/0b341e7c9125f91c415607ee747d59c30307dbe0. Regards, -- Beno?t Minisini From jussi.lahtinen at gmail.com Wed Aug 15 01:09:28 2018 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Wed, 15 Aug 2018 02:09:28 +0300 Subject: [Gambas-user] JIT crash In-Reply-To: References: <6ec407d2-09bc-ce7d-a604-491f6d179131@gmail.com> <3cd224a7-f50c-fe13-faac-7eb22451b830@gmail.com> <6dfbd191-2123-afa6-701a-709af42052c8@gmail.com> <8b9716b8-08c8-3466-208f-b29b2e3a1ac3@gmail.com> Message-ID: Some serious messing with optional parameters leads to crash. See attachment. Jussi On Wed, Aug 15, 2018 at 1:02 AM, Beno?t Minisini wrote: > Le 14/08/2018 ? 23:48, Jussi Lahtinen a ?crit : > >> OK, found something more. See the attachment. New functions; CrashJIT1, >> CrashJIT2 and CrashJIT3. >> >> >> Jussi >> >> > Fixed with commit https://gitlab.com/gambas/gamb > as/commit/0b341e7c9125f91c415607ee747d59c30307dbe0. > > > Regards, > > -- > Beno?t Minisini > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: GambasTestercmd-0.10.5.tar.gz Type: application/gzip Size: 26565 bytes Desc: not available URL: From g4mba5 at gmail.com Wed Aug 15 08:39:09 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Wed, 15 Aug 2018 08:39:09 +0200 Subject: [Gambas-user] JIT crash In-Reply-To: References: <6ec407d2-09bc-ce7d-a604-491f6d179131@gmail.com> <3cd224a7-f50c-fe13-faac-7eb22451b830@gmail.com> <6dfbd191-2123-afa6-701a-709af42052c8@gmail.com> <8b9716b8-08c8-3466-208f-b29b2e3a1ac3@gmail.com> Message-ID: Le 15/08/2018 ? 01:09, Jussi Lahtinen a ?crit?: > Some serious messing with optional parameters leads to crash. > See attachment. > > > Jussi > Fixed in commit https://gitlab.com/gambas/gambas/commit/6d35875a562b3af5337adda648aec177fdacc92b. Regards, -- Beno?t Minisini From hans at gambas-buch.de Wed Aug 15 15:18:50 2018 From: hans at gambas-buch.de (Hans Lehmann) Date: Wed, 15 Aug 2018 15:18:50 +0200 Subject: [Gambas-user] #Stream Message-ID: Hello, the following, for example, is a riddle: FLUSH [ [ # ] Stream ] When is the # sign set and in which other cases not - it is optional? Regards Hans From taboege at gmail.com Wed Aug 15 15:55:25 2018 From: taboege at gmail.com (Tobias Boege) Date: Wed, 15 Aug 2018 15:55:25 +0200 Subject: [Gambas-user] #Stream In-Reply-To: References: Message-ID: <20180815135525.GD21133@highrise.localdomain> On Wed, 15 Aug 2018, Hans Lehmann wrote: > Hello, > > the following, for example, is a riddle: > > FLUSH [ [ # ] Stream ] > > When is the # sign set and in which other cases not - it is optional? > And Benoit or any other old-timer :-) -- what is the history of this symbol? I assume it had a meaning in BASIC similar to "$", but in this case I could only find exactly one comment in a translation/etymology forum for "octothorpe" which references that "some BASIC dialects" used it, but I couldn't find any concrete dialect or what the symbol was used for. Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From gambas.fr at gmail.com Wed Aug 15 18:36:31 2018 From: gambas.fr at gmail.com (Fabien Bodard) Date: Wed, 15 Aug 2018 18:36:31 +0200 Subject: [Gambas-user] #Stream In-Reply-To: <20180815135525.GD21133@highrise.localdomain> References: <20180815135525.GD21133@highrise.localdomain> Message-ID: This come from vb ... and maybe qbasic Le mer. 15 ao?t 2018 15:55, Tobias Boege a ?crit : > On Wed, 15 Aug 2018, Hans Lehmann wrote: > > Hello, > > > > the following, for example, is a riddle: > > > > FLUSH [ [ # ] Stream ] > > > > When is the # sign set and in which other cases not - it is optional? > > > > And Benoit or any other old-timer :-) -- what is the history of this > symbol? > I assume it had a meaning in BASIC similar to "$", but in this case I could > only find exactly one comment in a translation/etymology forum for > "octothorpe" > which references that "some BASIC dialects" used it, but I couldn't find > any concrete dialect or what the symbol was used for. > > Regards, > Tobi > > -- > "There's an old saying: Don't change anything... ever!" -- Mr. Monk > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From gambas.fr at gmail.com Wed Aug 15 18:43:39 2018 From: gambas.fr at gmail.com (Fabien Bodard) Date: Wed, 15 Aug 2018 18:43:39 +0200 Subject: [Gambas-user] #Stream In-Reply-To: References: <20180815135525.GD21133@highrise.localdomain> Message-ID: https://msdn.microsoft.com/en-us/vba/language-reference-vba/articles/writestatement https://en.m.wikibooks.org/wiki/QBasic/Files Le mer. 15 ao?t 2018 18:36, Fabien Bodard a ?crit : > This come from vb ... and maybe qbasic > > Le mer. 15 ao?t 2018 15:55, Tobias Boege a ?crit : > >> On Wed, 15 Aug 2018, Hans Lehmann wrote: >> > Hello, >> > >> > the following, for example, is a riddle: >> > >> > FLUSH [ [ # ] Stream ] >> > >> > When is the # sign set and in which other cases not - it is optional? >> > >> >> And Benoit or any other old-timer :-) -- what is the history of this >> symbol? >> I assume it had a meaning in BASIC similar to "$", but in this case I >> could >> only find exactly one comment in a translation/etymology forum for >> "octothorpe" >> which references that "some BASIC dialects" used it, but I couldn't find >> any concrete dialect or what the symbol was used for. >> >> Regards, >> Tobi >> >> -- >> "There's an old saying: Don't change anything... ever!" -- Mr. Monk >> >> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From taboege at gmail.com Wed Aug 15 22:38:06 2018 From: taboege at gmail.com (Tobias Boege) Date: Wed, 15 Aug 2018 22:38:06 +0200 Subject: [Gambas-user] #Stream In-Reply-To: References: <20180815135525.GD21133@highrise.localdomain> Message-ID: <20180815203806.GE21133@highrise.localdomain> On Wed, 15 Aug 2018, Fabien Bodard wrote: > https://msdn.microsoft.com/en-us/vba/language-reference-vba/articles/writestatement > > https://en.m.wikibooks.org/wiki/QBasic/Files > I see, with file descriptors the "#" sign makes a lot of sense. Thanks! -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From mckaygerhard at gmail.com Wed Aug 15 22:51:16 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Wed, 15 Aug 2018 16:51:16 -0400 Subject: [Gambas-user] #Stream In-Reply-To: <20180815203806.GE21133@highrise.localdomain> References: <20180815135525.GD21133@highrise.localdomain> <20180815203806.GE21133@highrise.localdomain> Message-ID: ja , ok so then, what about wiki documentation? need fix? Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2018-08-15 16:38 GMT-04:00 Tobias Boege : > On Wed, 15 Aug 2018, Fabien Bodard wrote: > > https://msdn.microsoft.com/en-us/vba/language-reference-vba/ > articles/writestatement > > > > https://en.m.wikibooks.org/wiki/QBasic/Files > > > > I see, with file descriptors the "#" sign makes a lot of sense. Thanks! > > -- > "There's an old saying: Don't change anything... ever!" -- Mr. Monk > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From adamnt42 at gmail.com Wed Aug 15 23:51:06 2018 From: adamnt42 at gmail.com (Me) Date: Thu, 16 Aug 2018 07:21:06 +0930 Subject: [Gambas-user] #Stream In-Reply-To: <20180815135525.GD21133@highrise.localdomain> References: <20180815135525.GD21133@highrise.localdomain> Message-ID: <20180816072106.f9dd2497965cee8b3556fc67@gmail.com> On Wed, 15 Aug 2018 15:55:25 +0200 Tobias Boege wrote: > On Wed, 15 Aug 2018, Hans Lehmann wrote: > > Hello, > > > > the following, for example, is a riddle: > > > > FLUSH [ [ # ] Stream ] > > > > When is the # sign set and in which other cases not - it is optional? > > > > And Benoit or any other old-timer :-) -- what is the history of this symbol? > I assume it had a meaning in BASIC similar to "$", but in this case I could > only find exactly one comment in a translation/etymology forum for "octothorpe" > which references that "some BASIC dialects" used it, but I couldn't find > any concrete dialect or what the symbol was used for. > > Regards, > Tobi > > -- > "There's an old saying: Don't change anything... ever!" -- Mr. Monk > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- In fact the original BASIC (Dartmouth) Write #n ... relates to the FORTRAN WRITE(n,m) statement where n was a UNIT NUMBER (and m was a line reference number to a FORMAT statement). So, the BASIC statement WRITE #1 "Hello world" would result in byte code representing (say): WRITE(1,100) "Hello world" 100 FORMAT "a20" The UNIT NUMBER back in the original days actually referred to a hardware channel. For instance, 5 referred to the channel for the keyboard (teletype!) which was connected to device number 5 on the backplane of the computer, 6 referred to the teletype printer which was connected to (guess!). The reason beleve it or not was that in those days we did not write to files we wrote to devices: teletypes, lineprinters, card punches, card readers etc. Disk drives? What kind of new fangled tomfoolery is that? Oh well, with the advent of mass storage devices the "file" concept came into being. So FORTRAN had to expand the use of the unit number to include these "logical devices" and hence the OPEN and CLOSE statements came into being. Before FORTRAN we had to write out own I-O routines in assembler. So we could do whatever we damn well pleased. Ah for the days when computer scientists wore lab coats, smoked pipes and drove sports cars (and computers took up large buildings!) cheers b -- Me From jussi.lahtinen at gmail.com Thu Aug 16 00:02:43 2018 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Thu, 16 Aug 2018 01:02:43 +0300 Subject: [Gambas-user] JIT crash In-Reply-To: References: <6ec407d2-09bc-ce7d-a604-491f6d179131@gmail.com> <3cd224a7-f50c-fe13-faac-7eb22451b830@gmail.com> <6dfbd191-2123-afa6-701a-709af42052c8@gmail.com> <8b9716b8-08c8-3466-208f-b29b2e3a1ac3@gmail.com> Message-ID: It seems some of the bugs that affected my big project are now corrected, but some are still left. More poking around to reveal crashes... Here is "fast" keywords added to an example project. It crashes. Jussi On Wed, Aug 15, 2018 at 9:40 AM Beno?t Minisini wrote: > Le 15/08/2018 ? 01:09, Jussi Lahtinen a ?crit : > > Some serious messing with optional parameters leads to crash. > > See attachment. > > > > > > Jussi > > > > Fixed in commit > > https://gitlab.com/gambas/gambas/commit/6d35875a562b3af5337adda648aec177fdacc92b > . > > Regards, > > -- > Beno?t Minisini > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: MediaPlayer-1.0.tar.gz Type: application/gzip Size: 186883 bytes Desc: not available URL: From adamnt42 at gmail.com Thu Aug 16 07:46:39 2018 From: adamnt42 at gmail.com (Me) Date: Thu, 16 Aug 2018 15:16:39 +0930 Subject: [Gambas-user] Bad logic on my part Message-ID: <20180816151639.9effb5e18274652f662e02c9@gmail.com> What the *@^^& have I got wrong here? Dim Data As Variant[] If (TypeOf(Data[13]) = gb.Integer And If Data[13] > 3) Then ... gives a "Missing ")" in class ..." message at the compile time. Data[13] is either an integer or a string. (Leave town for 30 seconds and they change everything.) tia b -- Me From rwe-sse at osnanet.de Thu Aug 16 08:26:03 2018 From: rwe-sse at osnanet.de (Rolf-Werner Eilert) Date: Thu, 16 Aug 2018 08:26:03 +0200 Subject: [Gambas-user] Bad logic on my part In-Reply-To: <20180816151639.9effb5e18274652f662e02c9@gmail.com> References: <20180816151639.9effb5e18274652f662e02c9@gmail.com> Message-ID: <23b51dc1-b166-e1ba-1275-115ccf6a7c14@osnanet.de> Am 16.08.2018 um 07:46 schrieb Me: > What the *@^^& have I got wrong here? > > Dim Data As Variant[] > If (TypeOf(Data[13]) = gb.Integer And If Data[13] > 3) Then ... > > gives a "Missing ")" in class ..." message at the compile time. > > Data[13] is either an integer or a string. > > (Leave town for 30 seconds and they change everything.) > > tia > b > If using brackets, shouldn't it be something like If (TypeOf(Data[13]) = gb.Integer) And If (Data[13] > 3) Then... However, I would have used If TypeOf(Data[13]) = gb.Integer And Data[13] > 3 Then... Is there really a difference? Regards Rolf From rwe-sse at osnanet.de Thu Aug 16 08:31:00 2018 From: rwe-sse at osnanet.de (Rolf-Werner Eilert) Date: Thu, 16 Aug 2018 08:31:00 +0200 Subject: [Gambas-user] #Stream In-Reply-To: <20180816072106.f9dd2497965cee8b3556fc67@gmail.com> References: <20180815135525.GD21133@highrise.localdomain> <20180816072106.f9dd2497965cee8b3556fc67@gmail.com> Message-ID: <2f4bef74-4455-71a8-7a04-38ce766edffb@osnanet.de> Good explanation! > The reason beleve it or not was that in those days we did not write to files we wrote to devices: teletypes, lineprinters, card punches, card readers etc. Disk drives? What kind of new fangled tomfoolery is that? This makes it somewhat clearer, why DOS/Windows had/still has this "device:" concept. And AmigaOS had. And it must have been revolutionary modern to have the "File" concept in Unix. Regards Rolf From shordi at gmail.com Thu Aug 16 09:38:43 2018 From: shordi at gmail.com (=?UTF-8?Q?Jorge_Carri=C3=B3n?=) Date: Thu, 16 Aug 2018 09:38:43 +0200 Subject: [Gambas-user] Still having problems with Farm's Downloads Message-ID: I Can't download or install anything from Gambas' Farm since I updated my computer to Linux Mint 19. I allways received this message after download the project: I can download with virtual machines, but... what is happening? [System] Gambas=3.11.4 OperatingSystem=Linux Kernel=4.15.0-30-generic Architecture=x86_64 Distribution=Linux Mint 19 Tara Desktop=CINNAMON Theme=Gtk Language=es_ES.UTF-8 Memory=16001M [Libraries] Cairo=libcairo.so.2.11510.0 Curl=libcurl.so.4.5.0 DBus=libdbus-1.so.3.19.4 GStreamer=libgstreamer-1.0.so.0.1401.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] CINNAMON_VERSION=3.8.8 DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus DEFAULTS_PATH=/usr/share/gconf/cinnamon.default.path DESKTOP_SESSION=cinnamon DISPLAY=:0 GB_GUI=gb.qt4 GDMSESSION=cinnamon GDM_LANG=es_ES GIO_LAUNCHED_DESKTOP_FILE=/.cinnamon/panel-launchers/cinnamon-custom-launcher-2.desktop GIO_LAUNCHED_DESKTOP_FILE_PID=28270 GJS_DEBUG_OUTPUT=stderr GJS_DEBUG_TOPICS=JS ERROR;JS LOG GNOME_DESKTOP_SESSION_ID=this-is-deprecated GPG_AGENT_INFO=/run/user/1000/gnupg/S.gpg-agent:0:1 GTK_MODULES=gail:atk-bridge GTK_OVERLAY_SCROLLING=1 HOME= LANG=es_ES.UTF-8 LANGUAGE=es_ES.UTF-8 LOGNAME= MANDATORY_PATH=/usr/share/gconf/cinnamon.mandatory.path PATH=.:/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games PWD= QT_ACCESSIBILITY=1 QT_QPA_PLATFORMTHEME=qt5ct SESSION_MANAGER=local/:@/tmp/.ICE-unix/1065,unix/:/tmp/.ICE-unix/1065 SHELL=/bin/bash SHLVL=0 SSH_AGENT_PID=1130 SSH_AUTH_SOCK=/run/user/1000/keyring/ssh TZ=:/etc/localtime USER= XAUTHORITY=/.Xauthority XDG_CONFIG_DIRS=/etc/xdg/xdg-cinnamon:/etc/xdg XDG_CURRENT_DESKTOP=X-Cinnamon XDG_DATA_DIRS=/usr/share/cinnamon:/usr/share/gnome:/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/local/share:/usr/share XDG_GREETER_DATA_DIR=/var/lib/lightdm-data/ XDG_RUNTIME_DIR=/run/user/1000 XDG_SEAT=seat0 XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0 XDG_SESSION_DESKTOP=cinnamon XDG_SESSION_ID=c1 XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0 XDG_SESSION_TYPE=x11 XDG_VTNR=7 Best Regards -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: farmscreen.png Type: image/png Size: 150948 bytes Desc: not available URL: From james at lixce.com Thu Aug 16 01:08:17 2018 From: james at lixce.com (james at lixce.com) Date: Wed, 15 Aug 2018 23:08:17 GMT Subject: [Gambas-user] control command line output Message-ID: I'm writing a spell check utility that uses hunspell to check a word typed or pasted into a textbox or provided as a command line arument. When the utility is closed I want it to return the corrected word which is not a problem; a simple print statement in the Form_Close does that fine. The problem is that I also get "qt5ct: using qt5ct plugin" on the command line whenever the utility is run. I have tried including in the Form_Open: nFile = Open "/dev/null" For Output Error To nFile Output To nFile Which prevents the Print statement from working unless I redirect the stream again but leaves the "qt5ct: using qt5ct plugin" on the command line. Calling the utility and redirecting error to NULL like: lixce-spell word-to-check 2>/dev/null works but it is not really graceful, I could write an alias or a script but once again not really graceful. Is there any way within the Gambas basic code to suppress the "qt5ct: using qt5ct plugin" statement? Thanks, -j P.S. Lovin' Gambas lots of great stuff, finally able to do most everything I want without spending weeks building GUI's! From g4mba5 at gmail.com Thu Aug 16 09:55:34 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Thu, 16 Aug 2018 09:55:34 +0200 Subject: [Gambas-user] Still having problems with Farm's Downloads In-Reply-To: References: Message-ID: <066e9b68-f0b6-8459-624b-574cd250f279@gmail.com> Le 16/08/2018 ? 09:38, Jorge Carri?n a ?crit?: > I Can't download or install anything from Gambas' Farm since I updated > my computer to Linux Mint 19. I allways received this message after > download the project: > > I can download with virtual machines, but... what is happening? > You have to install the 'sha256sum' program. Regards, -- Beno?t Minisini From taboege at gmail.com Thu Aug 16 11:25:51 2018 From: taboege at gmail.com (Tobias Boege) Date: Thu, 16 Aug 2018 11:25:51 +0200 Subject: [Gambas-user] control command line output In-Reply-To: <20180816074901.E0A95203BCFB@h08.hostsharing.net> References: <20180816074901.E0A95203BCFB@h08.hostsharing.net> Message-ID: <20180816092551.GF21133@highrise.localdomain> On Wed, 15 Aug 2018, james at lixce.com wrote: > I'm writing a spell check utility that uses hunspell to check a word typed or pasted into a textbox or provided as a command line arument. When the utility is closed I want it to return the corrected word which is not a problem; a simple print statement in the Form_Close does that fine. > > The problem is that I also get "qt5ct: using qt5ct plugin" on the command line whenever the utility is run. > > I have tried including in the Form_Open: > > nFile = Open "/dev/null" For Output > Error To nFile > Output To nFile > > Which prevents the Print statement from working unless I redirect the stream again but leaves the "qt5ct: using qt5ct plugin" on the command line. > > Calling the utility and redirecting error to NULL like: > > lixce-spell word-to-check 2>/dev/null > > works but it is not really graceful, I could write an alias or a script but once again not really graceful. > > Is there any way within the Gambas basic code to suppress the "qt5ct: using qt5ct plugin" statement? > The question is where this line comes from and where it is going to. It sounds like an informative message. Does it come from Gambas directly or from hunspell, i.e. does it appear when you run your program but replace every call to hunspell with a dummy line? And how are you using hunspell, as a library or are you calling the external program? The lines appears to be sent to stderr, right? I'm going to assume that it doesn't come from Gambas. Then, if you use the library, that's very undesirable behaviour and you should talk to the hunspell people. If you use the external hunspell program, does it have a switch to turn these informatives off? If not, but the message arrives on stderr instead of stdout, you can capture and throw away stderr in your Gambas program to prevent the message from coming through. Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From taboege at gmail.com Thu Aug 16 11:37:59 2018 From: taboege at gmail.com (Tobias Boege) Date: Thu, 16 Aug 2018 11:37:59 +0200 Subject: [Gambas-user] Bad logic on my part In-Reply-To: <23b51dc1-b166-e1ba-1275-115ccf6a7c14@osnanet.de> References: <20180816151639.9effb5e18274652f662e02c9@gmail.com> <23b51dc1-b166-e1ba-1275-115ccf6a7c14@osnanet.de> Message-ID: <20180816093759.GG21133@highrise.localdomain> On Thu, 16 Aug 2018, Rolf-Werner Eilert wrote: > Am 16.08.2018 um 07:46 schrieb Me: > > What the *@^^& have I got wrong here? > > > > Dim Data As Variant[] > > If (TypeOf(Data[13]) = gb.Integer And If Data[13] > 3) Then ... > > > > gives a "Missing ")" in class ..." message at the compile time. > > > > Data[13] is either an integer or a string. > > > > (Leave town for 30 seconds and they change everything.) > > > > tia > > b > > > > If using brackets, shouldn't it be something like > > If (TypeOf(Data[13]) = gb.Integer) And If (Data[13] > 3) Then... > > However, I would have used > > If TypeOf(Data[13]) = gb.Integer And Data[13] > 3 Then... > > Is there really a difference? > I'm never sure about that. I always use "And If" because it has the loosest precedence (and short-circuits). Under some circumstances when you use just And, the compiler might interpret it as a bitwise And instead of the logical one. I guess if you use "a = b And c > d", this is unambiguous because operators don't chain, but consider "a = b And c". You'd think "*of course*, this should be read as 'a = (b And c)' instead of '(a = b) And c'", but it isn't that obvious anymore here: If iLines = iTotalLines And iFound Then Break That is, if, like me, you are used to writing "iFound" as a Boolean condition to mean "iFound <> 0". And yes, the error seems to come from the And If inside a pair of parentheses, which block its view to the corresponding If. Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From rwe-sse at osnanet.de Thu Aug 16 13:19:54 2018 From: rwe-sse at osnanet.de (Rolf-Werner Eilert) Date: Thu, 16 Aug 2018 13:19:54 +0200 Subject: [Gambas-user] Bad logic on my part In-Reply-To: <20180816093759.GG21133@highrise.localdomain> References: <20180816151639.9effb5e18274652f662e02c9@gmail.com> <23b51dc1-b166-e1ba-1275-115ccf6a7c14@osnanet.de> <20180816093759.GG21133@highrise.localdomain> Message-ID: <7bfa853c-49f0-4fc6-5bd1-a2f3d275e717@osnanet.de> Am 16.08.2018 um 11:37 schrieb Tobias Boege: > On Thu, 16 Aug 2018, Rolf-Werner Eilert wrote: >> Am 16.08.2018 um 07:46 schrieb Me: >>> What the *@^^& have I got wrong here? >>> >>> Dim Data As Variant[] >>> If (TypeOf(Data[13]) = gb.Integer And If Data[13] > 3) Then ... >>> >>> gives a "Missing ")" in class ..." message at the compile time. >>> >>> Data[13] is either an integer or a string. >>> >>> (Leave town for 30 seconds and they change everything.) >>> >>> tia >>> b >>> >> >> If using brackets, shouldn't it be something like >> >> If (TypeOf(Data[13]) = gb.Integer) And If (Data[13] > 3) Then... >> >> However, I would have used >> >> If TypeOf(Data[13]) = gb.Integer And Data[13] > 3 Then... >> >> Is there really a difference? >> > > I'm never sure about that. I always use "And If" because it has the loosest > precedence (and short-circuits). Under some circumstances when you use just > And, the compiler might interpret it as a bitwise And instead of the logical > one. I guess if you use "a = b And c > d", this is unambiguous because > operators don't chain, but consider "a = b And c". You'd think "*of course*, > this should be read as 'a = (b And c)' instead of '(a = b) And c'", but it > isn't that obvious anymore here: > > If iLines = iTotalLines And iFound Then Break > > That is, if, like me, you are used to writing "iFound" as a Boolean condition > to mean "iFound <> 0". > > And yes, the error seems to come from the And If inside a pair of parentheses, > which block its view to the corresponding If. > > Regards, > Tobi > Hm! a = b And c in my ears would sound like If (a = b) And If (c = True) Then At least I would interpret If a Then as If a = True Then (I use this with Boolean variables like "If IsPrinted Then" and also with functions like "If Exist(path) Then") In practice, I tend to avoid any brackets and And If concatenations and use blocks and single-condition expressions: If TypeOf(Data[13]) = gb.Integer Then If Data[13] > 3 Then . End If End If This makes it clearer, at least for my brain... Regards Rolf From adamnt42 at gmail.com Thu Aug 16 14:06:16 2018 From: adamnt42 at gmail.com (Me) Date: Thu, 16 Aug 2018 21:36:16 +0930 Subject: [Gambas-user] Bad logic on my part In-Reply-To: <23b51dc1-b166-e1ba-1275-115ccf6a7c14@osnanet.de> References: <20180816151639.9effb5e18274652f662e02c9@gmail.com> <23b51dc1-b166-e1ba-1275-115ccf6a7c14@osnanet.de> Message-ID: <20180816213616.8abe3ee26a88ecd7c85cefdb@gmail.com> On Thu, 16 Aug 2018 08:26:03 +0200 Rolf-Werner Eilert wrote: > > If (TypeOf(Data[13]) = gb.Integer) And If (Data[13] > 3) Then... Ah that works! Damned if I know why though. > If TypeOf(Data[13]) = gb.Integer And Data[13] > 3 Then... As far as I recall, the second If means that each condition is evaluated seperately, so if Data[13] is a string the second condition fails and so the whole construct fails with a "Expected integer - Got string" (whatever) error. But thanks for the first. I was looking at it for some time and could not see what the heck was wrong. b -- Me From mckaygerhard at gmail.com Thu Aug 16 15:14:25 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Thu, 16 Aug 2018 09:14:25 -0400 Subject: [Gambas-user] Still having problems with Farm's Downloads In-Reply-To: <066e9b68-f0b6-8459-624b-574cd250f279@gmail.com> References: <066e9b68-f0b6-8459-624b-574cd250f279@gmail.com> Message-ID: umm, as informative, we all have those installed i think! in coreutils https://packages.debian.org/stretch/i386/coreutils/filelist if are debian based, so then if a problem in the installation/winimt linux try reinstalling the coreutils package, with a force option! Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2018-08-16 3:55 GMT-04:00 Beno?t Minisini : > Le 16/08/2018 ? 09:38, Jorge Carri?n a ?crit : > >> I Can't download or install anything from Gambas' Farm since I updated my >> computer to Linux Mint 19. I allways received this message after download >> the project: >> >> I can download with virtual machines, but... what is happening? >> >> > You have to install the 'sha256sum' program. > > Regards, > > -- > Beno?t Minisini > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From t.lee.davidson at gmail.com Thu Aug 16 16:05:58 2018 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Thu, 16 Aug 2018 10:05:58 -0400 Subject: [Gambas-user] #Stream In-Reply-To: References: Message-ID: It appears that nobody actually answered the question so far. I was hoping for a definitive answer myself. I would say that, given the syntax for FLUSH with "#" within square brackets, in that case it is optional. In other cases, for example WRITE and READ, it is not optional. I welcome any needed correction. ___ Lee On 08/15/2018 09:18 AM, Hans Lehmann wrote: > Hello, > > the following, for example, is a riddle: > > FLUSH [ [ # ] Stream ] > > When is the # sign set and in which other cases not - it is optional? > > Regards > > Hans > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- From t.lee.davidson at gmail.com Thu Aug 16 16:25:40 2018 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Thu, 16 Aug 2018 10:25:40 -0400 Subject: [Gambas-user] Bad logic on my part In-Reply-To: <20180816213616.8abe3ee26a88ecd7c85cefdb@gmail.com> References: <20180816151639.9effb5e18274652f662e02c9@gmail.com> <23b51dc1-b166-e1ba-1275-115ccf6a7c14@osnanet.de> <20180816213616.8abe3ee26a88ecd7c85cefdb@gmail.com> Message-ID: On 08/16/2018 08:06 AM, Me wrote: > On Thu, 16 Aug 2018 08:26:03 +0200 > Rolf-Werner Eilert wrote: > >> If (TypeOf(Data[13]) = gb.Integer) And If (Data[13] > 3) Then... > Ah that works! > Damned if I know why though. > It seems as though Tobi told us why. On 08/16/2018 05:37 AM, Tobias Boege wrote:> And yes, the error seems to come from the And If inside a pair of parentheses, > which block its view to the corresponding If. ___ Lee From jussi.lahtinen at gmail.com Thu Aug 16 17:27:38 2018 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Thu, 16 Aug 2018 18:27:38 +0300 Subject: [Gambas-user] Still having problems with Farm's Downloads In-Reply-To: <066e9b68-f0b6-8459-624b-574cd250f279@gmail.com> References: <066e9b68-f0b6-8459-624b-574cd250f279@gmail.com> Message-ID: I have different error, when trying to install that example. Some code I can install without problems, other not... [image: Screenshot from 2018-08-16 18-24-07.jpg] Jussi On Thu, Aug 16, 2018 at 10:56 AM Beno?t Minisini wrote: > Le 16/08/2018 ? 09:38, Jorge Carri?n a ?crit : > > I Can't download or install anything from Gambas' Farm since I updated > > my computer to Linux Mint 19. I allways received this message after > > download the project: > > > > I can download with virtual machines, but... what is happening? > > > > You have to install the 'sha256sum' program. > > Regards, > > -- > Beno?t Minisini > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Screenshot from 2018-08-16 18-24-07.jpg Type: image/jpeg Size: 104859 bytes Desc: not available URL: -------------- next part -------------- [System] Gambas=3.11.90 e491a6759 (master) OperatingSystem=Linux Kernel=4.15.0-30-generic Architecture=x86_64 Distribution=Linux Mint 19 Tara Desktop=CINNAMON Theme=Gtk Language=en_US.UTF-8 Memory=7977M [Libraries] Cairo=libcairo.so.2.11510.0 Curl=libcurl.so.4.5.0 DBus=libdbus-1.so.3.19.4 GStreamer=libgstreamer-1.0.so.0.1401.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] DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus DEFAULTS_PATH=/usr/share/gconf/cinnamon.default.path DESKTOP_SESSION=cinnamon DISPLAY=:0 GB_GUI=gb.qt4 GB_PROFILE_MAX=1000 GDMSESSION=cinnamon GDM_LANG=en_US GIO_LAUNCHED_DESKTOP_FILE=/Desktop/Gambas3.desktop GIO_LAUNCHED_DESKTOP_FILE_PID=4539 GNOME_DESKTOP_SESSION_ID=this-is-deprecated GPG_AGENT_INFO=/run/user/1000/gnupg/S.gpg-agent:0:1 GTK_MODULES=gail:atk-bridge GTK_OVERLAY_SCROLLING=1 HOME= INSIDE_NEMO_PYTHON= LANG=en_US.UTF-8 LANGUAGE=en_US LC_ADDRESS=fi_FI.UTF-8 LC_IDENTIFICATION=fi_FI.UTF-8 LC_MEASUREMENT=fi_FI.UTF-8 LC_MONETARY=fi_FI.UTF-8 LC_NAME=fi_FI.UTF-8 LC_NUMERIC=fi_FI.UTF-8 LC_PAPER=fi_FI.UTF-8 LC_TELEPHONE=fi_FI.UTF-8 LOGNAME= MANDATORY_PATH=/usr/share/gconf/cinnamon.mandatory.path PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games PWD= QT_ACCESSIBILITY=1 QT_QPA_PLATFORMTHEME=qt5ct SESSION_MANAGER=local/:@/tmp/.ICE-unix/930,unix/:/tmp/.ICE-unix/930 SHELL=/bin/bash SHLVL=0 SSH_AGENT_PID=994 SSH_AUTH_SOCK=/run/user/1000/keyring/ssh TZ=:/etc/localtime USER= XAUTHORITY=/.Xauthority XDG_CONFIG_DIRS=/etc/xdg/xdg-cinnamon:/etc/xdg XDG_CURRENT_DESKTOP=X-Cinnamon XDG_DATA_DIRS=/usr/share/cinnamon:/usr/share/gnome:/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/local/share:/usr/share XDG_GREETER_DATA_DIR=/var/lib/lightdm-data/ XDG_RUNTIME_DIR=/run/user/1000 XDG_SEAT=seat0 XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0 XDG_SESSION_DESKTOP=cinnamon XDG_SESSION_ID=c1 XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0 XDG_SESSION_TYPE=x11 XDG_VTNR=7 From gambas.fr at gmail.com Thu Aug 16 20:08:15 2018 From: gambas.fr at gmail.com (Fabien Bodard) Date: Thu, 16 Aug 2018 20:08:15 +0200 Subject: [Gambas-user] #Stream In-Reply-To: References: Message-ID: > > What a wonderfull explanation :-) I must to store it somewhere Is there a good site for language history ? -------------- next part -------------- An HTML attachment was scrubbed... URL: From charlie at cogier.com Thu Aug 16 20:14:51 2018 From: charlie at cogier.com (Charlie Ogier) Date: Thu, 16 Aug 2018 19:14:51 +0100 Subject: [Gambas-user] Still having problems with Farm's Downloads In-Reply-To: References: Message-ID: Hi Jorge, You could try from here as another option or I have attached a later version of the same program with a few updates. It should not cause you any issues as it was written in Linux Mint. Charlie Ogier On 16/08/18 08:38, Jorge Carri?n wrote: > I Can't download or install anything from Gambas' Farm since I updated > my computer to Linux Mint 19. I allways received this message after > download the project: > > I can download with virtual machines, but... what is happening? > > [System] > Gambas=3.11.4 > OperatingSystem=Linux > Kernel=4.15.0-30-generic > Architecture=x86_64 > Distribution=Linux Mint 19 Tara > Desktop=CINNAMON > Theme=Gtk > Language=es_ES.UTF-8 > Memory=16001M > > [Libraries] > Cairo=libcairo.so.2.11510.0 > Curl=libcurl.so.4.5.0 > DBus=libdbus-1.so.3.19.4 > GStreamer=libgstreamer-1.0.so.0.1401.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] > CINNAMON_VERSION=3.8.8 > DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus > DEFAULTS_PATH=/usr/share/gconf/cinnamon.default.path > DESKTOP_SESSION=cinnamon > DISPLAY=:0 > GB_GUI=gb.qt4 > GDMSESSION=cinnamon > GDM_LANG=es_ES > GIO_LAUNCHED_DESKTOP_FILE=/.cinnamon/panel-launchers/cinnamon-custom-launcher-2.desktop > GIO_LAUNCHED_DESKTOP_FILE_PID=28270 > GJS_DEBUG_OUTPUT=stderr > GJS_DEBUG_TOPICS=JS ERROR;JS LOG > GNOME_DESKTOP_SESSION_ID=this-is-deprecated > GPG_AGENT_INFO=/run/user/1000/gnupg/S.gpg-agent:0:1 > GTK_MODULES=gail:atk-bridge > GTK_OVERLAY_SCROLLING=1 > HOME= > LANG=es_ES.UTF-8 > LANGUAGE=es_ES.UTF-8 > LOGNAME= > MANDATORY_PATH=/usr/share/gconf/cinnamon.mandatory.path > PATH=.:/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games > PWD= > QT_ACCESSIBILITY=1 > QT_QPA_PLATFORMTHEME=qt5ct > SESSION_MANAGER=local/:@/tmp/.ICE-unix/1065,unix/:/tmp/.ICE-unix/1065 > SHELL=/bin/bash > SHLVL=0 > SSH_AGENT_PID=1130 > SSH_AUTH_SOCK=/run/user/1000/keyring/ssh > TZ=:/etc/localtime > USER= > XAUTHORITY=/.Xauthority > XDG_CONFIG_DIRS=/etc/xdg/xdg-cinnamon:/etc/xdg > XDG_CURRENT_DESKTOP=X-Cinnamon > XDG_DATA_DIRS=/usr/share/cinnamon:/usr/share/gnome:/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/local/share:/usr/share > XDG_GREETER_DATA_DIR=/var/lib/lightdm-data/ > XDG_RUNTIME_DIR=/run/user/1000 > XDG_SEAT=seat0 > XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0 > XDG_SESSION_DESKTOP=cinnamon > XDG_SESSION_ID=c1 > XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0 > XDG_SESSION_TYPE=x11 > XDG_VTNR=7 > > Best Regards > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: farmscreen.png Type: image/png Size: 150948 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: BarcodeCreator.tar.gz Type: application/gzip Size: 141794 bytes Desc: not available URL: From jussi.lahtinen at gmail.com Thu Aug 16 22:32:00 2018 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Thu, 16 Aug 2018 23:32:00 +0300 Subject: [Gambas-user] JIT crash In-Reply-To: References: <6ec407d2-09bc-ce7d-a604-491f6d179131@gmail.com> <3cd224a7-f50c-fe13-faac-7eb22451b830@gmail.com> <6dfbd191-2123-afa6-701a-709af42052c8@gmail.com> <8b9716b8-08c8-3466-208f-b29b2e3a1ac3@gmail.com> Message-ID: Still seems to crash with latest Gambas. Program received signal SIGSEGV, Segmentation fault. EXEC_object_real (val=0x7ffff640e060) at gbx_exec.c:1437 1437 if (UNLIKELY(class->must_check && (*(class->check))(object))) (gdb) bt #0 0x00005555555a858f in EXEC_object_real (val=0x7ffff640e060) at gbx_exec.c:1437 #1 0x00005555555aa5ce in EXEC_push_unknown () at gbx_exec_push.c:68 #2 0x00007fffef68ad11 in jit_cbutton_9_ () at /tmp/gambas.1000/5282/jit/gb.so #3 0x00007fffef68ce81 in jit_cbutton_17_ () at /tmp/gambas.1000/5282/jit/gb.so #4 0x00007fffef693763 in jit_cbutton_17 () at /tmp/gambas.1000/5282/jit/gb.so #5 0x0000555555572ee8 in JIT_exec (ret_on_stack=ret_on_stack at entry=0 '\000') at gbx_jit.c:228 #6 0x00005555555a6437 in EXEC_function_real () at gbx_exec.c:884 #7 0x00005555555ab78b in EXEC_pop_unknown () at gbx_exec_pop.c:257 #8 0x00007fffef67fe18 in jit_fmain_23_ () at /tmp/gambas.1000/5282/jit/gb.so #9 0x00007fffef681f77 in jit_fmain_5_ () at /tmp/gambas.1000/5282/jit/gb.so #10 0x00007fffef6822b7 in jit_fmain_8_ () at /tmp/gambas.1000/5282/jit/gb.so #11 0x0000555555572ee8 in JIT_exec (ret_on_stack=ret_on_stack at entry=0 '\000') at gbx_jit.c:228 #12 0x00005555555a8bef in EXEC_function_real () at gbx_exec.c:884 #13 0x00005555555a8bef in EXEC_public_desc (class=, object=, desc=, nparam=) at gbx_exec.c:1598 #14 0x000055555558668b in raise_event (observer=, observer at entry=0x555555d4d488, object=object at entry=0x555555d4d488, func_id=163, func_id at entry=164, nparam=nparam at entry=0) at gbx_api.c:792 #15 0x000055555558874d in GB_Raise (object=0x555555d4d488, event_id=, nparam=0) at gbx_api.c:924 Jussi On Thu, Aug 16, 2018 at 1:02 AM Jussi Lahtinen wrote: > It seems some of the bugs that affected my big project are now corrected, > but some are still left. > More poking around to reveal crashes... Here is "fast" keywords added to > an example project. It crashes. > > > Jussi > > On Wed, Aug 15, 2018 at 9:40 AM Beno?t Minisini wrote: > >> Le 15/08/2018 ? 01:09, Jussi Lahtinen a ?crit : >> > Some serious messing with optional parameters leads to crash. >> > See attachment. >> > >> > >> > Jussi >> > >> >> Fixed in commit >> >> https://gitlab.com/gambas/gambas/commit/6d35875a562b3af5337adda648aec177fdacc92b >> . >> >> Regards, >> >> -- >> Beno?t Minisini >> >> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- [System] Gambas=3.11.90 e491a6759 (master) OperatingSystem=Linux Kernel=4.15.0-30-generic Architecture=x86_64 Distribution=Linux Mint 19 Tara Desktop=CINNAMON Theme=Gtk Language=en_US.UTF-8 Memory=7977M [Libraries] Cairo=libcairo.so.2.11510.0 Curl=libcurl.so.4.5.0 DBus=libdbus-1.so.3.19.4 GStreamer=libgstreamer-1.0.so.0.1401.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] DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus DEFAULTS_PATH=/usr/share/gconf/cinnamon.default.path DESKTOP_SESSION=cinnamon DISPLAY=:0 GB_GUI=gb.qt4 GB_PROFILE_MAX=1000 GDMSESSION=cinnamon GDM_LANG=en_US GIO_LAUNCHED_DESKTOP_FILE=/Desktop/Gambas3.desktop GIO_LAUNCHED_DESKTOP_FILE_PID=4539 GNOME_DESKTOP_SESSION_ID=this-is-deprecated GPG_AGENT_INFO=/run/user/1000/gnupg/S.gpg-agent:0:1 GTK_MODULES=gail:atk-bridge GTK_OVERLAY_SCROLLING=1 HOME= INSIDE_NEMO_PYTHON= LANG=en_US.UTF-8 LANGUAGE=en_US LC_ADDRESS=fi_FI.UTF-8 LC_IDENTIFICATION=fi_FI.UTF-8 LC_MEASUREMENT=fi_FI.UTF-8 LC_MONETARY=fi_FI.UTF-8 LC_NAME=fi_FI.UTF-8 LC_NUMERIC=fi_FI.UTF-8 LC_PAPER=fi_FI.UTF-8 LC_TELEPHONE=fi_FI.UTF-8 LOGNAME= MANDATORY_PATH=/usr/share/gconf/cinnamon.mandatory.path PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games PWD= QT_ACCESSIBILITY=1 QT_QPA_PLATFORMTHEME=qt5ct SESSION_MANAGER=local/:@/tmp/.ICE-unix/930,unix/:/tmp/.ICE-unix/930 SHELL=/bin/bash SHLVL=0 SSH_AGENT_PID=994 SSH_AUTH_SOCK=/run/user/1000/keyring/ssh TZ=:/etc/localtime USER= XAUTHORITY=/.Xauthority XDG_CONFIG_DIRS=/etc/xdg/xdg-cinnamon:/etc/xdg XDG_CURRENT_DESKTOP=X-Cinnamon XDG_DATA_DIRS=/usr/share/cinnamon:/usr/share/gnome:/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/local/share:/usr/share XDG_GREETER_DATA_DIR=/var/lib/lightdm-data/ XDG_RUNTIME_DIR=/run/user/1000 XDG_SEAT=seat0 XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0 XDG_SESSION_DESKTOP=cinnamon XDG_SESSION_ID=c1 XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0 XDG_SESSION_TYPE=x11 XDG_VTNR=7 -------------- next part -------------- A non-text attachment was scrubbed... Name: MediaPlayer-1.0.tar.gz Type: application/gzip Size: 186893 bytes Desc: not available URL: From g4mba5 at gmail.com Fri Aug 17 01:06:05 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Fri, 17 Aug 2018 01:06:05 +0200 Subject: [Gambas-user] JIT crash In-Reply-To: References: <6dfbd191-2123-afa6-701a-709af42052c8@gmail.com> <8b9716b8-08c8-3466-208f-b29b2e3a1ac3@gmail.com> Message-ID: <95b439d6-b3b0-0b90-d2e4-42b633a70da7@gmail.com> Le 16/08/2018 ? 22:32, Jussi Lahtinen a ?crit?: > Still seems to crash with latest Gambas. > It should better with commit https://gitlab.com/gambas/gambas/commit/d371614662487b0f60f9e1bb0365dfefb8417f1a. Regards, -- Beno?t Minisini From jussi.lahtinen at gmail.com Fri Aug 17 01:34:20 2018 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Fri, 17 Aug 2018 02:34:20 +0300 Subject: [Gambas-user] JIT crash In-Reply-To: <95b439d6-b3b0-0b90-d2e4-42b633a70da7@gmail.com> References: <6dfbd191-2123-afa6-701a-709af42052c8@gmail.com> <8b9716b8-08c8-3466-208f-b29b2e3a1ac3@gmail.com> <95b439d6-b3b0-0b90-d2e4-42b633a70da7@gmail.com> Message-ID: There is still another crash, if you run the project and move mouse arrow over the controls (play, stop, etc). Jussi On Fri, Aug 17, 2018 at 2:07 AM Beno?t Minisini wrote: > Le 16/08/2018 ? 22:32, Jussi Lahtinen a ?crit : > > Still seems to crash with latest Gambas. > > > > It should better with commit > > https://gitlab.com/gambas/gambas/commit/d371614662487b0f60f9e1bb0365dfefb8417f1a > . > > Regards, > > -- > Beno?t Minisini > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From shordi at gmail.com Fri Aug 17 09:41:54 2018 From: shordi at gmail.com (=?UTF-8?Q?Jorge_Carri=C3=B3n?=) Date: Fri, 17 Aug 2018 09:41:54 +0200 Subject: [Gambas-user] Still having problems with Farm's Downloads In-Reply-To: References: Message-ID: I didn't knew that way of entering the farm! Thanks Charlie 2018-08-16 20:14 GMT+02:00 Charlie Ogier : > Hi Jorge, > > You could try from here as another option > or I have attached a later version of the same program with a few updates. > > It should not cause you any issues as it was written in Linux Mint. > > Charlie Ogier > > > > On 16/08/18 08:38, Jorge Carri?n wrote: > > I Can't download or install anything from Gambas' Farm since I updated my > computer to Linux Mint 19. I allways received this message after download > the project: > > I can download with virtual machines, but... what is happening? > > [System] > Gambas=3.11.4 > OperatingSystem=Linux > Kernel=4.15.0-30-generic > Architecture=x86_64 > Distribution=Linux Mint 19 Tara > Desktop=CINNAMON > Theme=Gtk > Language=es_ES.UTF-8 > Memory=16001M > > [Libraries] > Cairo=libcairo.so.2.11510.0 > Curl=libcurl.so.4.5.0 > DBus=libdbus-1.so.3.19.4 > GStreamer=libgstreamer-1.0.so.0.1401.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] > CINNAMON_VERSION=3.8.8 > DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus > DEFAULTS_PATH=/usr/share/gconf/cinnamon.default.path > DESKTOP_SESSION=cinnamon > DISPLAY=:0 > GB_GUI=gb.qt4 > GDMSESSION=cinnamon > GDM_LANG=es_ES > GIO_LAUNCHED_DESKTOP_FILE=/.cinnamon/panel- > launchers/cinnamon-custom-launcher-2.desktop > GIO_LAUNCHED_DESKTOP_FILE_PID=28270 > GJS_DEBUG_OUTPUT=stderr > GJS_DEBUG_TOPICS=JS ERROR;JS LOG > GNOME_DESKTOP_SESSION_ID=this-is-deprecated > GPG_AGENT_INFO=/run/user/1000/gnupg/S.gpg-agent:0:1 > GTK_MODULES=gail:atk-bridge > GTK_OVERLAY_SCROLLING=1 > HOME= > LANG=es_ES.UTF-8 > LANGUAGE=es_ES.UTF-8 > LOGNAME= > MANDATORY_PATH=/usr/share/gconf/cinnamon.mandatory.path > PATH=.:/.local/bin:/usr/local/sbin:/usr/local/bin:/ > usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games > PWD= > QT_ACCESSIBILITY=1 > QT_QPA_PLATFORMTHEME=qt5ct > SESSION_MANAGER=local/:@/tmp/.ICE-unix/ > 1065,unix/:/tmp/.ICE-unix/1065 > SHELL=/bin/bash > SHLVL=0 > SSH_AGENT_PID=1130 > SSH_AUTH_SOCK=/run/user/1000/keyring/ssh > TZ=:/etc/localtime > USER= > XAUTHORITY=/.Xauthority > XDG_CONFIG_DIRS=/etc/xdg/xdg-cinnamon:/etc/xdg > XDG_CURRENT_DESKTOP=X-Cinnamon > XDG_DATA_DIRS=/usr/share/cinnamon:/usr/share/gnome:< > home>/.local/share/flatpak/exports/share:/var/lib/ > flatpak/exports/share:/usr/local/share:/usr/share > XDG_GREETER_DATA_DIR=/var/lib/lightdm-data/ > XDG_RUNTIME_DIR=/run/user/1000 > XDG_SEAT=seat0 > XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0 > XDG_SESSION_DESKTOP=cinnamon > XDG_SESSION_ID=c1 > XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0 > XDG_SESSION_TYPE=x11 > XDG_VTNR=7 > > Best Regards > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: farmscreen.png Type: image/png Size: 150948 bytes Desc: not available URL: From shordi at gmail.com Fri Aug 17 09:56:48 2018 From: shordi at gmail.com (=?UTF-8?Q?Jorge_Carri=C3=B3n?=) Date: Fri, 17 Aug 2018 09:56:48 +0200 Subject: [Gambas-user] Still having problems with Farm's Downloads In-Reply-To: References: <066e9b68-f0b6-8459-624b-574cd250f279@gmail.com> Message-ID: Doesn't work, Piccoro. I've reinstalled and still remains the issue... 2018-08-16 15:14 GMT+02:00 PICCORO McKAY Lenz : > umm, as informative, we all have those installed i think! in coreutils > > https://packages.debian.org/stretch/i386/coreutils/filelist > > if are debian based, so then if a problem in the installation/winimt linux > > try reinstalling the coreutils package, with a force option! > > Lenz McKAY Gerardo (PICCORO) > http://qgqlochekone.blogspot.com > > 2018-08-16 3:55 GMT-04:00 Beno?t Minisini : > >> Le 16/08/2018 ? 09:38, Jorge Carri?n a ?crit : >> >>> I Can't download or install anything from Gambas' Farm since I updated >>> my computer to Linux Mint 19. I allways received this message after >>> download the project: >>> >>> I can download with virtual machines, but... what is happening? >>> >>> >> You have to install the 'sha256sum' program. >> >> Regards, >> >> -- >> Beno?t Minisini >> >> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >> > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mckaygerhard at gmail.com Fri Aug 17 13:45:10 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Fri, 17 Aug 2018 07:45:10 -0400 Subject: [Gambas-user] Still having problems with Farm's Downloads In-Reply-To: References: <066e9b68-f0b6-8459-624b-574cd250f279@gmail.com> Message-ID: i'm very curious of the problem.. could you make a chroot from a live disk into your instalations and check? i mean, in your machine of the problem: 1) download a real linux like debian, but live disk 2) boot and when ready install gambas from debian (jessie has 3.5 so you must download strecht for 3.9) 3) try to use gambas farm, we will assume will work ok, so then: 4) make a chroot to your hard disk when the windos-mint are installed 5 export the x11 environment 6) run the xorg/session and the start gambas ide from your disk/instalation disk 7) tryit again Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2018-08-17 3:56 GMT-04:00 Jorge Carri?n : > Doesn't work, Piccoro. > I've reinstalled and still remains the issue... > > > 2018-08-16 15:14 GMT+02:00 PICCORO McKAY Lenz : > >> umm, as informative, we all have those installed i think! in coreutils >> >> https://packages.debian.org/stretch/i386/coreutils/filelist >> >> if are debian based, so then if a problem in the installation/winimt linux >> >> try reinstalling the coreutils package, with a force option! >> >> Lenz McKAY Gerardo (PICCORO) >> http://qgqlochekone.blogspot.com >> >> 2018-08-16 3:55 GMT-04:00 Beno?t Minisini : >> >>> Le 16/08/2018 ? 09:38, Jorge Carri?n a ?crit : >>> >>>> I Can't download or install anything from Gambas' Farm since I updated >>>> my computer to Linux Mint 19. I allways received this message after >>>> download the project: >>>> >>>> I can download with virtual machines, but... what is happening? >>>> >>>> >>> You have to install the 'sha256sum' program. >>> >>> Regards, >>> >>> -- >>> Beno?t Minisini >>> >>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >>> >> >> >> >> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >> >> > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mckaygerhard at gmail.com Fri Aug 17 14:41:59 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Fri, 17 Aug 2018 08:41:59 -0400 Subject: [Gambas-user] about inherints and variable access in various levels Message-ID: in about inherits and variable accessing, in various levels which is faster and better (in terms of less cpu calculation and less memory consumption), when using inherits: a) using a public variable directly, ? (public var s strting as global var in a a class) b) or using read-only properties? (property read var as string in a class to a internal var) NOTE: takin in consideration that will be called from another class that again will be inherit! please dont ingnore my mail, there's no harm in the reading this time right! Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From taboege at gmail.com Fri Aug 17 14:43:24 2018 From: taboege at gmail.com (Tobias Boege) Date: Fri, 17 Aug 2018 14:43:24 +0200 Subject: [Gambas-user] Still having problems with Farm's Downloads In-Reply-To: References: <066e9b68-f0b6-8459-624b-574cd250f279@gmail.com> Message-ID: <20180817124324.GN21133@highrise.localdomain> On Fri, 17 Aug 2018, PICCORO McKAY Lenz wrote: > i'm very curious of the problem.. could you make a chroot from a live disk > into your instalations and check? > > i mean, in your machine of the problem: > > 1) download a real linux like debian, but live disk > 2) boot and when ready install gambas from debian (jessie has 3.5 so you > must download strecht for 3.9) > 3) try to use gambas farm, we will assume will work ok, so then: > 4) make a chroot to your hard disk when the windos-mint are installed > 5 export the x11 environment > 6) run the xorg/session and the start gambas ide from your > disk/instalation disk > 7) tryit again > What is this supposed to accomplish? Confirm that Debian has sha256sum, but the extra long way by using some code inside a specific X11 application? Maybe before doing all that stuff, check in a terminal in your Mint if $ echo -n | /usr/bin/sha256sum e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 - produces the expected output in the second line. If it does, sha256sum is not the problem. As far as I can see, Linux Mint 19 gets coreutils from Ubuntu Bionic [1], which does include /usr/bin/sha256sum [2]. You can also try $ dpkg-query -L coreutils | grep 'sha[0-9]' to see a list of 'sha...' stuff that got installed from coreutils, and where it is exactly, although it should really be in /usr/bin. The "Cannot compute checksum" error message can be caused by a missing `sha256sum` utility but also by sha256sum not being able to read the file it is instructed to hash, due to, let's say, an unhandled download failure earlier, or by any other error that happens under the jurisdiction of that one Catch block in the IDE. (Any other error would be weird, admittedly, like a changing output format for sha256sum.) Regards, Tobi [1] https://en.wikipedia.org/wiki/Linux_Mint_version_history [2] https://packages.ubuntu.com/bionic/amd64/coreutils/filelist PS: Usual disclaimer, I'm not familiar with dpkg and its various front-ends so there might be some research necessary to fix commands I suggest. -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From mckaygerhard at gmail.com Fri Aug 17 14:53:15 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Fri, 17 Aug 2018 08:53:15 -0400 Subject: [Gambas-user] Still having problems with Farm's Downloads In-Reply-To: <20180817124324.GN21133@highrise.localdomain> References: <066e9b68-f0b6-8459-624b-574cd250f279@gmail.com> <20180817124324.GN21133@highrise.localdomain> Message-ID: Tobias, of couorse unless try if the problem its core utils my attemp its to check the consistency of the hole instalation, ok! Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2018-08-17 8:43 GMT-04:00 Tobias Boege : > On Fri, 17 Aug 2018, PICCORO McKAY Lenz wrote: > > i'm very curious of the problem.. could you make a chroot from a live > disk > > into your instalations and check? > > > > i mean, in your machine of the problem: > > > > 1) download a real linux like debian, but live disk > > 2) boot and when ready install gambas from debian (jessie has 3.5 so you > > must download strecht for 3.9) > > 3) try to use gambas farm, we will assume will work ok, so then: > > 4) make a chroot to your hard disk when the windos-mint are installed > > 5 export the x11 environment > > 6) run the xorg/session and the start gambas ide from your > > disk/instalation disk > > 7) tryit again > > > > What is this supposed to accomplish? Confirm that Debian has sha256sum, > but the extra long way by using some code inside a specific X11 > application? > > Maybe before doing all that stuff, check in a terminal in your Mint if > > $ echo -n | /usr/bin/sha256sum > e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 - > > produces the expected output in the second line. If it does, sha256sum > is not the problem. As far as I can see, Linux Mint 19 gets coreutils > from Ubuntu Bionic [1], which does include /usr/bin/sha256sum [2]. > You can also try > > $ dpkg-query -L coreutils | grep 'sha[0-9]' > > to see a list of 'sha...' stuff that got installed from coreutils, > and where it is exactly, although it should really be in /usr/bin. > > The "Cannot compute checksum" error message can be caused by a missing > `sha256sum` utility but also by sha256sum not being able to read the > file it is instructed to hash, due to, let's say, an unhandled download > failure earlier, or by any other error that happens under the jurisdiction > of that one Catch block in the IDE. (Any other error would be weird, > admittedly, like a changing output format for sha256sum.) > > Regards, > Tobi > > [1] https://en.wikipedia.org/wiki/Linux_Mint_version_history > [2] https://packages.ubuntu.com/bionic/amd64/coreutils/filelist > > PS: Usual disclaimer, I'm not familiar with dpkg and its various front-ends > so there might be some research necessary to fix commands I suggest. > > -- > "There's an old saying: Don't change anything... ever!" -- Mr. Monk > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From charlie at cogier.com Fri Aug 17 15:21:18 2018 From: charlie at cogier.com (Charlie Ogier) Date: Fri, 17 Aug 2018 14:21:18 +0100 Subject: [Gambas-user] Still having problems with Farm's Downloads In-Reply-To: References: Message-ID: Hi Jorge, Did you try the version I attached to the last mail? It has Spanish translation. Charlie Ogier On 17/08/18 08:41, Jorge Carri?n wrote: > I didn't knew that way of entering the farm! > > Thanks Charlie > > 2018-08-16 20:14 GMT+02:00 Charlie Ogier >: > > Hi Jorge, > > You could try from here as another > option or I have attached a later version of the same program with > a few updates. > > It should not cause you any issues as it was written in Linux Mint. > > Charlie Ogier > > > > On 16/08/18 08:38, Jorge Carri?n wrote: >> I Can't download or install anything from Gambas' Farm since I >> updated my computer to Linux Mint 19. I allways received this >> message after download the project: >> >> I can download with virtual machines, but... what is happening? >> >> [System] >> Gambas=3.11.4 >> OperatingSystem=Linux >> Kernel=4.15.0-30-generic >> Architecture=x86_64 >> Distribution=Linux Mint 19 Tara >> Desktop=CINNAMON >> Theme=Gtk >> Language=es_ES.UTF-8 >> Memory=16001M >> >> [Libraries] >> Cairo=libcairo.so.2.11510.0 >> Curl=libcurl.so.4.5.0 >> DBus=libdbus-1.so.3.19.4 >> GStreamer=libgstreamer-1.0.so .0.1401.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] >> CINNAMON_VERSION=3.8.8 >> DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus >> DEFAULTS_PATH=/usr/share/gconf/cinnamon.default.path >> DESKTOP_SESSION=cinnamon >> DISPLAY=:0 >> GB_GUI=gb.qt4 >> GDMSESSION=cinnamon >> GDM_LANG=es_ES >> GIO_LAUNCHED_DESKTOP_FILE=/.cinnamon/panel-launchers/cinnamon-custom-launcher-2.desktop >> GIO_LAUNCHED_DESKTOP_FILE_PID=28270 >> GJS_DEBUG_OUTPUT=stderr >> GJS_DEBUG_TOPICS=JS ERROR;JS LOG >> GNOME_DESKTOP_SESSION_ID=this-is-deprecated >> GPG_AGENT_INFO=/run/user/1000/gnupg/S.gpg-agent:0:1 >> GTK_MODULES=gail:atk-bridge >> GTK_OVERLAY_SCROLLING=1 >> HOME= >> LANG=es_ES.UTF-8 >> LANGUAGE=es_ES.UTF-8 >> LOGNAME= >> MANDATORY_PATH=/usr/share/gconf/cinnamon.mandatory.path >> PATH=.:/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games >> PWD= >> QT_ACCESSIBILITY=1 >> QT_QPA_PLATFORMTHEME=qt5ct >> SESSION_MANAGER=local/:@/tmp/.ICE-unix/1065,unix/:/tmp/.ICE-unix/1065 >> SHELL=/bin/bash >> SHLVL=0 >> SSH_AGENT_PID=1130 >> SSH_AUTH_SOCK=/run/user/1000/keyring/ssh >> TZ=:/etc/localtime >> USER= >> XAUTHORITY=/.Xauthority >> XDG_CONFIG_DIRS=/etc/xdg/xdg-cinnamon:/etc/xdg >> XDG_CURRENT_DESKTOP=X-Cinnamon >> XDG_DATA_DIRS=/usr/share/cinnamon:/usr/share/gnome:/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/local/share:/usr/share >> XDG_GREETER_DATA_DIR=/var/lib/lightdm-data/ >> XDG_RUNTIME_DIR=/run/user/1000 >> XDG_SEAT=seat0 >> XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0 >> XDG_SESSION_DESKTOP=cinnamon >> XDG_SESSION_ID=c1 >> XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0 >> XDG_SESSION_TYPE=x11 >> XDG_VTNR=7 >> >> Best Regards >> >> >> ----[ Gambas mailing-list is hosted byhttps://www.hostsharing.net ]---- > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net > ]---- > > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: farmscreen.png Type: image/png Size: 150948 bytes Desc: not available URL: From hugo.struyf1 at telenet.be Fri Aug 17 17:14:00 2018 From: hugo.struyf1 at telenet.be (Hugo Struyf) Date: Fri, 17 Aug 2018 17:14:00 +0200 Subject: [Gambas-user] Raspberry and Gambas3 Message-ID: Hello, I just started a new copy of existing SD Card. i use a new raspberry pi3 B+ Using raspbian STRETCH I try to install Gambas 3.11.3 on new Rasbian downloaded I use wiki https://www.domotiga.nl/projects/domotiga/wiki/DomotiGa_Installation But when i di this command ./reconf-all && ./configure -C I have error message : ./reconf-all: 7: ./reconf-all: libtoolize: not found ./reconf-all: 8: ./reconf-all: autoreconf: not found when I search for 'autoreconf' with locate, then locate find this: ???? /usr/share/bash-completion/completion/autoreconf But when I search for "libtoolize" then locate find nothing What's happen ? can you help me ? Hugo From mckaygerhard at gmail.com Fri Aug 17 17:40:01 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Fri, 17 Aug 2018 11:40:01 -0400 Subject: [Gambas-user] Raspberry and Gambas3 In-Reply-To: References: Message-ID: apt-get install dh_autoreconf autoreconf autotools automake litool Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2018-08-17 11:14 GMT-04:00 Hugo Struyf : > Hello, > > I just started a new copy of existing SD Card. i use a new raspberry pi3 B+ > Using raspbian STRETCH > I try to install Gambas 3.11.3 on new Rasbian downloaded > I use wiki https://www.domotiga.nl/projects/domotiga/wiki/DomotiGa_ > Installation > But when i di this command > > ./reconf-all && ./configure -C > > I have error message : > > ./reconf-all: 7: ./reconf-all: libtoolize: not found > ./reconf-all: 8: ./reconf-all: autoreconf: not found > > when I search for 'autoreconf' with locate, then locate find this: > /usr/share/bash-completion/completion/autoreconf > But when I search for "libtoolize" then locate find nothing > > What's happen ? can you help me ? > > Hugo > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From chrisml at deganius.de Fri Aug 17 17:40:24 2018 From: chrisml at deganius.de (Christof Thalhofer) Date: Fri, 17 Aug 2018 17:40:24 +0200 Subject: [Gambas-user] Raspberry and Gambas3 In-Reply-To: References: Message-ID: Am 17.08.2018 um 17:14 schrieb Hugo Struyf: Why do you want to compile Gambas on Raspi? This lasts very long. You also can use this way to install Gambas: https://www.domotiga.nl/projects/domotiga/wiki/DomotiGa_Installation#Gambas-From-PPA-Raspberry-Pi-Pi-2-Pi-3 Which will fetch and install the precompiled packages. Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: OpenPGP digital signature URL: From mckaygerhard at gmail.com Fri Aug 17 20:29:01 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Fri, 17 Aug 2018 14:29:01 -0400 Subject: [Gambas-user] about inherints and variable access in various levels In-Reply-To: References: Message-ID: any response? not again! i need help i not sputed any hard word! Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2018-08-17 8:41 GMT-04:00 PICCORO McKAY Lenz : > in about inherits and variable accessing, in various levels > > which is faster and better (in terms of less cpu calculation and less > memory consumption), when using inherits: > > a) using a public variable directly, ? (public var s strting as global var > in a a class) > b) or using read-only properties? (property read var as string in a class > to a internal var) > > NOTE: takin in consideration that will be called from another class that > again will be inherit! > > please dont ingnore my mail, there's no harm in the reading this time > right! > > Lenz McKAY Gerardo (PICCORO) > http://qgqlochekone.blogspot.com > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jussi.lahtinen at gmail.com Fri Aug 17 20:57:20 2018 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Fri, 17 Aug 2018 21:57:20 +0300 Subject: [Gambas-user] about inherints and variable access in various levels In-Reply-To: References: Message-ID: A is "better" for what it is worth, but this shouldn't be issue at all. Jussi On Fri, Aug 17, 2018 at 3:43 PM PICCORO McKAY Lenz wrote: > in about inherits and variable accessing, in various levels > > which is faster and better (in terms of less cpu calculation and less > memory consumption), when using inherits: > > a) using a public variable directly, ? (public var s strting as global var > in a a class) > b) or using read-only properties? (property read var as string in a class > to a internal var) > > NOTE: takin in consideration that will be called from another class that > again will be inherit! > > please dont ingnore my mail, there's no harm in the reading this time > right! > > Lenz McKAY Gerardo (PICCORO) > http://qgqlochekone.blogspot.com > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mckaygerhard at gmail.com Fri Aug 17 21:51:51 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Fri, 17 Aug 2018 15:51:51 -0400 Subject: [Gambas-user] about inherints and variable access in various levels In-Reply-To: References: Message-ID: thanks jussi, changin from a property to a direct vriable, so the most high class will access to it wirth a property the each "driver class" of each kit printer will have a dealy (a waith time defined by vendor), and in the constructor of the manager class i must defined withc class will be used, so then each of those class will override the "waith" of the read event Now with your answer I reinforce and redone my choose, that it is better to gain optimization when working with non-automatic hardware. Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2018-08-17 14:57 GMT-04:00 Jussi Lahtinen : > A is "better" for what it is worth, but this shouldn't be issue at all. > > Jussi > > On Fri, Aug 17, 2018 at 3:43 PM PICCORO McKAY Lenz > wrote: > >> in about inherits and variable accessing, in various levels >> >> which is faster and better (in terms of less cpu calculation and less >> memory consumption), when using inherits: >> >> a) using a public variable directly, ? (public var s strting as global >> var in a a class) >> b) or using read-only properties? (property read var as string in a class >> to a internal var) >> >> NOTE: takin in consideration that will be called from another class that >> again will be inherit! >> >> please dont ingnore my mail, there's no harm in the reading this time >> right! >> >> Lenz McKAY Gerardo (PICCORO) >> http://qgqlochekone.blogspot.com >> >> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >> > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Sat Aug 18 11:52:54 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sat, 18 Aug 2018 11:52:54 +0200 Subject: [Gambas-user] JIT crash In-Reply-To: References: <6dfbd191-2123-afa6-701a-709af42052c8@gmail.com> <8b9716b8-08c8-3466-208f-b29b2e3a1ac3@gmail.com> <95b439d6-b3b0-0b90-d2e4-42b633a70da7@gmail.com> Message-ID: Le 17/08/2018 ? 01:34, Jussi Lahtinen a ?crit?: > There is still another crash, if you run the project and move mouse > arrow over the controls (play, stop, etc). > > Jussi > I don't have any crash. Can you elaborate? -- Beno?t Minisini From hans at gambas-buch.de Sat Aug 18 16:31:37 2018 From: hans at gambas-buch.de (Hans Lehmann) Date: Sat, 18 Aug 2018 16:31:37 +0200 Subject: [Gambas-user] Value of Vendor In-Reply-To: References: Message-ID: <3e4f9712-f401-fb97-14c9-7071a2f06eb4@gambas-buch.de> Hello, is there a way to read the value of Vendor in the project properties? With kind regards Hans From charlie at cogier.com Sat Aug 18 17:18:13 2018 From: charlie at cogier.com (Charlie Ogier) Date: Sat, 18 Aug 2018 16:18:13 +0100 Subject: [Gambas-user] Value of Vendor In-Reply-To: <3e4f9712-f401-fb97-14c9-7071a2f06eb4@gambas-buch.de> References: <3e4f9712-f401-fb97-14c9-7071a2f06eb4@gambas-buch.de> Message-ID: <1487d102-b0f9-8b1e-bb62-e6c0a17bcaef@cogier.com> Hi Hans, The detail you are looking for is in the .project file. The following code will get the details for you: - *Public Sub Form_Open()** **Dim sFile As String = File.Load("../.project")** **Dim sLine As String** ** **For Each sLine In Split(sFile, gb.newline)** **? If sLine Begins "Vendor" Then Print sLine** **Next** ** **End* Charlie Ogier On 18/08/18 15:31, Hans Lehmann wrote: > Hello, > > is there a way to read the value of Vendor in the project properties? > > With kind regards > > Hans > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- -------------- next part -------------- An HTML attachment was scrubbed... URL: From hans at gambas-buch.de Sat Aug 18 19:01:02 2018 From: hans at gambas-buch.de (Hans Lehmann) Date: Sat, 18 Aug 2018 19:01:02 +0200 Subject: [Gambas-user] Value of Vendor In-Reply-To: <1487d102-b0f9-8b1e-bb62-e6c0a17bcaef@cogier.com> References: <3e4f9712-f401-fb97-14c9-7071a2f06eb4@gambas-buch.de> <1487d102-b0f9-8b1e-bb62-e6c0a17bcaef@cogier.com> Message-ID: <86903a56-463f-5574-bad5-655402f088aa@gambas-buch.de> Am 18.08.2018 um 17:18 schrieb Charlie Ogier: > The detail you are looking for is in the .project file. The following > code will get the details for you: - Hello Charlie, many thanks for the tip tells you Hans From hans at gambas-buch.de Sat Aug 18 19:11:12 2018 From: hans at gambas-buch.de (Hans Lehmann) Date: Sat, 18 Aug 2018 19:11:12 +0200 Subject: [Gambas-user] Path specification Message-ID: <0e582d26-ca6c-d4ce-a30d-71802115b266@gambas-buch.de> Hello Charlie, what is special about the following line with regard to the path specification: Dim sFile As String = File.Load("../.project") ? Regards Hans www.gambas-book.net From hans at gambas-buch.de Sat Aug 18 19:25:23 2018 From: hans at gambas-buch.de (Hans Lehmann) Date: Sat, 18 Aug 2018 19:25:23 +0200 Subject: [Gambas-user] Loading Components and Classes - Source Code In-Reply-To: References: <6dfbd191-2123-afa6-701a-709af42052c8@gmail.com> <8b9716b8-08c8-3466-208f-b29b2e3a1ac3@gmail.com> <95b439d6-b3b0-0b90-d2e4-42b633a70da7@gmail.com> Message-ID: <5b1752dd-e85d-59cf-78b7-8e56f9577d55@gambas-buch.de> Hello, how to ensure in a project in source code (!) that for example the two components gb.desktop and gb.util are loaded for program start. Of the component gb.util, the class Shell is required in the project. That was my intention, but it was not successful: Public Sub _new() ? Component.Load("gb.desktop") ? Component.Load("gb.util") ? Class.Load("Shell") ? ... End With kind regards From jussi.lahtinen at gmail.com Sun Aug 19 02:18:00 2018 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Sun, 19 Aug 2018 03:18:00 +0300 Subject: [Gambas-user] JIT crash In-Reply-To: References: <6dfbd191-2123-afa6-701a-709af42052c8@gmail.com> <8b9716b8-08c8-3466-208f-b29b2e3a1ac3@gmail.com> <95b439d6-b3b0-0b90-d2e4-42b633a70da7@gmail.com> Message-ID: Not sure what to add..? Program received signal SIGSEGV, Segmentation fault. GB_Ref (object=0x10) at gbx_api.c:1252 1252 OBJECT_REF(object); (gdb) bt #0 0x000055555558595f in GB_Ref (object=0x10) at gbx_api.c:1252 #1 0x00007fffea68a2b9 in jit_canimation_2_.constprop () at /tmp/gambas.1000/2383/jit/gb.so #2 0x00007fffea699147 in jit_canimation_2 () at /tmp/gambas.1000/2383/jit/gb.so #3 0x0000555555572ee8 in JIT_exec (ret_on_stack=ret_on_stack at entry=1 '\001') at gbx_jit.c:228 #4 0x00005555555a0f5b in EXEC_loop () at gbx_exec_loop.c:1149 #5 0x00005555555a5d4d in EXEC_function_loop () at gbx_exec.c:913 #6 0x0000555555573432 in JIT_call_unknown (pc=0x5555559c61aa, sp=) at gbx_jit.c:315 #7 0x00007fffea68fb28 in jit_cbutton_3_ () at /tmp/gambas.1000/2383/jit/gb.so #8 0x0000555555572ee8 in JIT_exec (ret_on_stack=ret_on_stack at entry=0 '\000') at gbx_jit.c:228 #9 0x00005555555a8bef in EXEC_function_real () at gbx_exec.c:884 #10 0x00005555555a8bef in EXEC_public_desc (class=, object=, desc=, nparam=) at gbx_exec.c:1598 #11 0x000055555558668b in raise_event (observer=, observer at entry=0x555555a47f68, object=object at entry=0x555555a47f68, func_id=120, func_id at entry=121, nparam=nparam at entry=0) at gbx_api.c:792 #12 0x00005555555886d1 in GB_Raise (object=0x555555a47f68, event_id=, nparam=0) at gbx_api.c:898 #13 0x00007ffff5db9b2f in gambas_handle_event(GdkEvent*) (event=0x555556088110) Jussi On Sat, Aug 18, 2018 at 12:53 PM Beno?t Minisini wrote: > Le 17/08/2018 ? 01:34, Jussi Lahtinen a ?crit : > > There is still another crash, if you run the project and move mouse > > arrow over the controls (play, stop, etc). > > > > Jussi > > > > I don't have any crash. Can you elaborate? > > -- > Beno?t Minisini > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: MediaPlayer-1.0.tar.gz Type: application/gzip Size: 186894 bytes Desc: not available URL: From jussi.lahtinen at gmail.com Sun Aug 19 02:21:25 2018 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Sun, 19 Aug 2018 03:21:25 +0300 Subject: [Gambas-user] Path specification In-Reply-To: <0e582d26-ca6c-d4ce-a30d-71802115b266@gambas-buch.de> References: <0e582d26-ca6c-d4ce-a30d-71802115b266@gambas-buch.de> Message-ID: Special in what way? Jussi On Sat, Aug 18, 2018 at 8:12 PM Hans Lehmann wrote: > Hello Charlie, > > what is special about the following line with regard to the path > specification: > > Dim sFile As String = File.Load("../.project") > > ? > > Regards > > Hans > www.gambas-book.net > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jussi.lahtinen at gmail.com Sun Aug 19 02:23:37 2018 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Sun, 19 Aug 2018 03:23:37 +0300 Subject: [Gambas-user] Loading Components and Classes - Source Code In-Reply-To: <5b1752dd-e85d-59cf-78b7-8e56f9577d55@gambas-buch.de> References: <6dfbd191-2123-afa6-701a-709af42052c8@gmail.com> <8b9716b8-08c8-3466-208f-b29b2e3a1ac3@gmail.com> <95b439d6-b3b0-0b90-d2e4-42b633a70da7@gmail.com> <5b1752dd-e85d-59cf-78b7-8e56f9577d55@gambas-buch.de> Message-ID: What are you trying to achieve with this? The components should be ready to use, if they are tagged in the project properties. Jussi On Sat, Aug 18, 2018 at 8:26 PM Hans Lehmann wrote: > Hello, > > how to ensure in a project in source code (!) that for example the two > components gb.desktop and gb.util are loaded for program start. Of the > component gb.util, the class Shell is required in the project. > > That was my intention, but it was not successful: > > Public Sub _new() > Component.Load("gb.desktop") > Component.Load("gb.util") > Class.Load("Shell") > ... > End > > With kind regards > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From taboege at gmail.com Sun Aug 19 11:47:12 2018 From: taboege at gmail.com (Tobias Boege) Date: Sun, 19 Aug 2018 11:47:12 +0200 Subject: [Gambas-user] Path specification In-Reply-To: <0e582d26-ca6c-d4ce-a30d-71802115b266@gambas-buch.de> References: <0e582d26-ca6c-d4ce-a30d-71802115b266@gambas-buch.de> Message-ID: <20180819094712.GC869@highrise.localdomain> On Sat, 18 Aug 2018, Hans Lehmann wrote: > Hello Charlie, > > what is special about the following line with regard to the path > specification: > > Dim sFile As String = File.Load("../.project") > > ? > This is documented here: http://gambaswiki.org/wiki/cat/path A relative path starting with ".." references a data file in the currently running *project*, even if that code is executed from a component or library. Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From bagonergi at gmail.com Sun Aug 19 12:43:11 2018 From: bagonergi at gmail.com (Gianluigi) Date: Sun, 19 Aug 2018 12:43:11 +0200 Subject: [Gambas-user] Path specification In-Reply-To: <20180819094712.GC869@highrise.localdomain> References: <0e582d26-ca6c-d4ce-a30d-71802115b266@gambas-buch.de> <20180819094712.GC869@highrise.localdomain> Message-ID: 2018-08-19 11:47 GMT+02:00 Tobias Boege : > On Sat, 18 Aug 2018, Hans Lehmann wrote: > > Hello Charlie, > > > > what is special about the following line with regard to the path > > specification: > > > > Dim sFile As String = File.Load("../.project") > > > > ? > > > > This is documented here: http://gambaswiki.org/wiki/cat/path > > A relative path starting with ".." references a data file in the > currently running *project*, even if that code is executed from > a component or library. > > Regards, > Tobi > > -- > "There's an old saying: Don't change anything... ever!" -- Mr. Monk > Hi Tobias, I find this explanation of the wiki unclear. >From it, after compilation, it would seem that the concept of the "current project" no longer exists. But this simple code should work even after compilation, right? Note: The file "foo.txt" is located inside the project data folder. Public Sub Main() Dim sPath As String = "/tmp/path-test" Try Mkdir sPath If Error Then Return Try Copy "./foo.txt" To sPath &/ "foo.txt" End Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From charlie at cogier.com Sun Aug 19 12:31:50 2018 From: charlie at cogier.com (Charlie Ogier) Date: Sun, 19 Aug 2018 11:31:50 +0100 Subject: [Gambas-user] Path specification In-Reply-To: <0e582d26-ca6c-d4ce-a30d-71802115b266@gambas-buch.de> References: <0e582d26-ca6c-d4ce-a30d-71802115b266@gambas-buch.de> Message-ID: Hi Hans, You can access any file in your program's folder using "../". The *.project* file is hidden so you can't see it but it is still there. Have a look here . Charlie Ogier On 18/08/18 18:11, Hans Lehmann wrote: > Hello Charlie, > > what is special about the following line with regard to the path > specification: > > Dim sFile As String = File.Load("../.project") > > ? > > Regards > > Hans > www.gambas-book.net > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- -------------- next part -------------- An HTML attachment was scrubbed... URL: From taboege at gmail.com Sun Aug 19 13:58:02 2018 From: taboege at gmail.com (Tobias Boege) Date: Sun, 19 Aug 2018 13:58:02 +0200 Subject: [Gambas-user] Path specification In-Reply-To: References: <0e582d26-ca6c-d4ce-a30d-71802115b266@gambas-buch.de> <20180819094712.GC869@highrise.localdomain> Message-ID: <20180819115802.GE869@highrise.localdomain> On Sun, 19 Aug 2018, Gianluigi wrote: > 2018-08-19 11:47 GMT+02:00 Tobias Boege : > > > On Sat, 18 Aug 2018, Hans Lehmann wrote: > > > Hello Charlie, > > > > > > what is special about the following line with regard to the path > > > specification: > > > > > > Dim sFile As String = File.Load("../.project") > > > > > > ? > > > > > > > This is documented here: http://gambaswiki.org/wiki/cat/path > > > > A relative path starting with ".." references a data file in the > > currently running *project*, even if that code is executed from > > a component or library. > > > > Regards, > > Tobi > > > > -- > > "There's an old saying: Don't change anything... ever!" -- Mr. Monk > > > > Hi Tobias, > I find this explanation of the wiki unclear. > From it, after compilation, it would seem that the concept of the "current > project" no longer exists. It very much exists. The "current project" is where relative paths are resolved to. What you don't have is a "current working directory". > But this simple code should work even after compilation, right? > > Note: The file "foo.txt" is located inside the project data folder. > > Public Sub Main() > > Dim sPath As String = "/tmp/path-test" > > Try Mkdir sPath > If Error Then Return > Try Copy "./foo.txt" To sPath &/ "foo.txt" > > End > Yes, this copies the file "foo.txt" in your project directory to the temporary location. The difference between "." and ".." (BTW, "./foo.txt" is the same as "foo.txt", even in this context) is that if you write a component or library and load "foo.txt" in code running inside the component, you access resources of the component project, not of the project that is currently running and using that component. If you want access from the component code to resources in the currently running project, then you use "../foo.txt". gb.web.form does this, for example, to serve files in your project's .public folder (think favicon, css and javascript resources) without you having to think about it. All of that works no matter if you are executing the project from the IDE, from the project directory or a compiled .gambas archive. Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From bagonergi at gmail.com Sun Aug 19 14:30:47 2018 From: bagonergi at gmail.com (Gianluigi) Date: Sun, 19 Aug 2018 14:30:47 +0200 Subject: [Gambas-user] Path specification In-Reply-To: <20180819115802.GE869@highrise.localdomain> References: <0e582d26-ca6c-d4ce-a30d-71802115b266@gambas-buch.de> <20180819094712.GC869@highrise.localdomain> <20180819115802.GE869@highrise.localdomain> Message-ID: 2018-08-19 13:58 GMT+02:00 Tobias Boege : > On Sun, 19 Aug 2018, Gianluigi wrote: > > 2018-08-19 11:47 GMT+02:00 Tobias Boege : > > > > > On Sat, 18 Aug 2018, Hans Lehmann wrote: > > > > Hello Charlie, > > > > > > > > what is special about the following line with regard to the path > > > > specification: > > > > > > > > Dim sFile As String = File.Load("../.project") > > > > > > > > ? > > > > > > > > > > This is documented here: http://gambaswiki.org/wiki/cat/path > > > > > > A relative path starting with ".." references a data file in the > > > currently running *project*, even if that code is executed from > > > a component or library. > > > > > > Regards, > > > Tobi > > > > > > -- > > > "There's an old saying: Don't change anything... ever!" -- Mr. Monk > > > > > > > Hi Tobias, > > I find this explanation of the wiki unclear. > > From it, after compilation, it would seem that the concept of the > "current > > project" no longer exists. > > It very much exists. The "current project" is where relative paths are > resolved to. What you don't have is a "current working directory". > > > But this simple code should work even after compilation, right? > > > > Note: The file "foo.txt" is located inside the project data folder. > > > > Public Sub Main() > > > > Dim sPath As String = "/tmp/path-test" > > > > Try Mkdir sPath > > If Error Then Return > > Try Copy "./foo.txt" To sPath &/ "foo.txt" > > > > End > > > > Yes, this copies the file "foo.txt" in your project directory to the > temporary location. The difference between "." and ".." (BTW, "./foo.txt" > is the same as "foo.txt", even in this context) is that if you write a > component or library and load "foo.txt" in code running inside the > component, you access resources of the component project, not of the > project that is currently running and using that component. > > If you want access from the component code to resources in the currently > running project, then you use "../foo.txt". gb.web.form does this, > for example, to serve files in your project's .public folder (think > favicon, > css and javascript resources) without you having to think about it. > > All of that works no matter if you are executing the project from the IDE, > from the project directory or a compiled .gambas archive. > > Regards, > Tobi > > -- > "There's an old saying: Don't change anything... ever!" -- Mr. Monk > > Hi Tobias, thank you very much. Finally I understood what the wiki's explanation means :-) Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From bagonergi at gmail.com Sun Aug 19 16:11:30 2018 From: bagonergi at gmail.com (Gianluigi) Date: Sun, 19 Aug 2018 16:11:30 +0200 Subject: [Gambas-user] Path specification In-Reply-To: <20180819115802.GE869@highrise.localdomain> References: <0e582d26-ca6c-d4ce-a30d-71802115b266@gambas-buch.de> <20180819094712.GC869@highrise.localdomain> <20180819115802.GE869@highrise.localdomain> Message-ID: 2018-08-19 13:58 GMT+02:00 Tobias Boege : > On Sun, 19 Aug 2018, Gianluigi wrote: > > 2018-08-19 11:47 GMT+02:00 Tobias Boege : > > > > > On Sat, 18 Aug 2018, Hans Lehmann wrote: > > > > Hello Charlie, > > > > > > > > what is special about the following line with regard to the path > > > > specification: > > > > > > > > Dim sFile As String = File.Load("../.project") > > > > > > > > ? > > > > > > > > > > This is documented here: http://gambaswiki.org/wiki/cat/path > > > > > > A relative path starting with ".." references a data file in the > > > currently running *project*, even if that code is executed from > > > a component or library. > > > > > > Regards, > > > Tobi > > > > > > -- > > > "There's an old saying: Don't change anything... ever!" -- Mr. Monk > > > > > > > Hi Tobias, > > I find this explanation of the wiki unclear. > > From it, after compilation, it would seem that the concept of the > "current > > project" no longer exists. > > It very much exists. The "current project" is where relative paths are > resolved to. What you don't have is a "current working directory". > > > But this simple code should work even after compilation, right? > > > > Note: The file "foo.txt" is located inside the project data folder. > > > > Public Sub Main() > > > > Dim sPath As String = "/tmp/path-test" > > > > Try Mkdir sPath > > If Error Then Return > > Try Copy "./foo.txt" To sPath &/ "foo.txt" > > > > End > > > > Yes, this copies the file "foo.txt" in your project directory to the > temporary location. The difference between "." and ".." (BTW, "./foo.txt" > is the same as "foo.txt", even in this context) is that if you write a > component or library and load "foo.txt" in code running inside the > component, you access resources of the component project, not of the > project that is currently running and using that component. > > If you want access from the component code to resources in the currently > running project, then you use "../foo.txt". gb.web.form does this, > for example, to serve files in your project's .public folder (think > favicon, > css and javascript resources) without you having to think about it. > > All of that works no matter if you are executing the project from the IDE, > from the project directory or a compiled .gambas archive. > > Regards, > Tobi > > -- > "There's an old saying: Don't change anything... ever!" -- Mr. Monk Hi Tobias, one final clarification. When you write: "If you want access from the component code to resources in the currently running project, then you use "../foo.txt". gb.web.form does this, for example, to serve files in your project's .public folder (think favicon, css and javascript resources) without you having to think about it." You mean that with "../" we access files in read-only mode, right? If we need to write to the file we have to copy it to a user directory (e.g. Try Copy "./foo.txt" To sPath &/ "foo.txt") Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From taboege at gmail.com Sun Aug 19 16:31:45 2018 From: taboege at gmail.com (Tobias Boege) Date: Sun, 19 Aug 2018 16:31:45 +0200 Subject: [Gambas-user] Path specification In-Reply-To: References: <0e582d26-ca6c-d4ce-a30d-71802115b266@gambas-buch.de> <20180819094712.GC869@highrise.localdomain> <20180819115802.GE869@highrise.localdomain> Message-ID: <20180819143145.GF869@highrise.localdomain> On Sun, 19 Aug 2018, Gianluigi wrote: > Hi Tobias, > one final clarification. > When you write: > "If you want access from the component code to resources in the currently > running project, then you use "../foo.txt". > gb.web.form does this, for example, to serve files in your project's > .public folder (think favicon, css and javascript resources) without you > having to think about it." > You mean that with "../" we access files in read-only mode, right? > If we need to write to the file we have to copy it to a user directory > (e.g. Try Copy "./foo.txt" To sPath &/ "foo.txt") > Yes, you should never[*] write to files in your project directory because you never know if your program might be running from an executable archive (*.gambas file) later. In that case, the project files will be bundled into the archive and the interpreter will redirect access to relative paths into that in-memory archive. There is no support for mutating the archive, neither in-memory nor on-disk. An error about the files being read-only is raised instead. This is nothing special about "..", it applies for all relative paths. The difference between "." and ".." is just in which archive components look for files. For the same reason, you can consider a program refering to files inside Application.Path to be broken[*]. If the code is packaged into an executable archive, Application.Path will be meaningless. Regards, Tobi [*] Exceptions apply, but rarely. I think there is some Gambas code out there which generates Gambas code for the project. If you know you are only ever using that functionality while developing or debugging, it's fine to write to files in your project. But otherwise, you are effectively forbidding your users from generating .gambas files. -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From g4mba5 at gmail.com Sun Aug 19 16:51:29 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sun, 19 Aug 2018 16:51:29 +0200 Subject: [Gambas-user] Path specification In-Reply-To: References: <0e582d26-ca6c-d4ce-a30d-71802115b266@gambas-buch.de> <20180819094712.GC869@highrise.localdomain> <20180819115802.GE869@highrise.localdomain> Message-ID: <6e29baee-f013-d1ad-05bd-479f4c710459@gmail.com> Le 19/08/2018 ? 14:30, Gianluigi a ?crit?: > ...... > > Hi Tobias, > thank you very much. > Finally I understood what the wiki's explanation means :-) > > Regards > Gianluigi > Sorry, the behaviour is changing in the development version. :-) "abcd" --> 'abcd' file in the running component or project. "./abcd" --> 'abcd' file in the running component or project. "../abcd" --> 'abcd' file in the calling component of the running component, or in the current project if there is no calling component. The calling component is the component of the first calling function that is not in the current running component. ".../abcd" --> 'abcd' in the current project. "./gb.xxx/abcd" --> 'abcd' in the 'gb.xxx' component if it is actually loaded. I'm still looking for better syntaxes that are compatible with the old ones described in the wiki: - The problem with './gb.xxx/abcd' is that you can't access a 'gb.xxx' directory in your project without using the 'gb.xxx' syntax directly. - The problem with '.../abcd' is its ugliness. - And so on... Regards, -- Beno?t Minisini From bagonergi at gmail.com Sun Aug 19 16:52:04 2018 From: bagonergi at gmail.com (Gianluigi) Date: Sun, 19 Aug 2018 16:52:04 +0200 Subject: [Gambas-user] Path specification In-Reply-To: <20180819143145.GF869@highrise.localdomain> References: <0e582d26-ca6c-d4ce-a30d-71802115b266@gambas-buch.de> <20180819094712.GC869@highrise.localdomain> <20180819115802.GE869@highrise.localdomain> <20180819143145.GF869@highrise.localdomain> Message-ID: 2018-08-19 16:31 GMT+02:00 Tobias Boege : > On Sun, 19 Aug 2018, Gianluigi wrote: > > Hi Tobias, > > one final clarification. > > When you write: > > "If you want access from the component code to resources in the currently > > running project, then you use "../foo.txt". > > gb.web.form does this, for example, to serve files in your project's > > .public folder (think favicon, css and javascript resources) without you > > having to think about it." > > You mean that with "../" we access files in read-only mode, right? > > If we need to write to the file we have to copy it to a user directory > > (e.g. Try Copy "./foo.txt" To sPath &/ "foo.txt") > > > > Yes, you should never[*] write to files in your project directory because > you never know if your program might be running from an executable archive > (*.gambas file) later. In that case, the project files will be bundled > into the archive and the interpreter will redirect access to relative paths > into that in-memory archive. There is no support for mutating the archive, > neither in-memory nor on-disk. An error about the files being read-only is > raised instead. This is nothing special about "..", it applies for all > relative paths. The difference between "." and ".." is just in which > archive > components look for files. > > For the same reason, you can consider a program refering to files inside > Application.Path to be broken[*]. If the code is packaged into an > executable > archive, Application.Path will be meaningless. > > Regards, > Tobi > > [*] Exceptions apply, but rarely. I think there is some Gambas code > out there which generates Gambas code for the project. If you know you > are only ever using that functionality while developing or debugging, > it's fine to write to files in your project. But otherwise, you are > effectively forbidding your users from generating .gambas files. > > -- > "There's an old saying: Don't change anything... ever!" -- Mr. Monk Hi Tobias (good master), Thank you very much once again. Also the last doubt has vanished. ? Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From bagonergi at gmail.com Sun Aug 19 17:42:46 2018 From: bagonergi at gmail.com (Gianluigi) Date: Sun, 19 Aug 2018 17:42:46 +0200 Subject: [Gambas-user] Path specification In-Reply-To: <6e29baee-f013-d1ad-05bd-479f4c710459@gmail.com> References: <0e582d26-ca6c-d4ce-a30d-71802115b266@gambas-buch.de> <20180819094712.GC869@highrise.localdomain> <20180819115802.GE869@highrise.localdomain> <6e29baee-f013-d1ad-05bd-479f4c710459@gmail.com> Message-ID: 2018-08-19 16:51 GMT+02:00 Beno?t Minisini : > Le 19/08/2018 ? 14:30, Gianluigi a ?crit : > >> ...... >> >> Hi Tobias, >> thank you very much. >> Finally I understood what the wiki's explanation means :-) >> >> Regards >> Gianluigi >> >> > Sorry, the behaviour is changing in the development version. :-) > > "abcd" --> 'abcd' file in the running component or project. > > "./abcd" --> 'abcd' file in the running component or project. > > "../abcd" --> 'abcd' file in the calling component of the running > component, or in the current project if there is no calling component. The > calling component is the component of the first calling function that is > not in the current running component. > > ".../abcd" --> 'abcd' in the current project. > > "./gb.xxx/abcd" --> 'abcd' in the 'gb.xxx' component if it is actually > loaded. > > I'm still looking for better syntaxes that are compatible with the old > ones described in the wiki: > > - The problem with './gb.xxx/abcd' is that you can't access a 'gb.xxx' > directory in your project without using the 'gb.xxx' syntax directly. > > - The problem with '.../abcd' is its ugliness. > > - And so on... > > Regards, > > -- > Beno?t Minisini > Who knows why, as soon as we climb a mountain, a higher one immediately appears ? Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From hans at gambas-buch.de Sun Aug 19 17:56:07 2018 From: hans at gambas-buch.de (Hans Lehmann) Date: Sun, 19 Aug 2018 17:56:07 +0200 Subject: [Gambas-user] Path specification In-Reply-To: References: <0e582d26-ca6c-d4ce-a30d-71802115b266@gambas-buch.de> <20180819094712.GC869@highrise.localdomain> <20180819115802.GE869@highrise.localdomain> <6e29baee-f013-d1ad-05bd-479f4c710459@gmail.com> Message-ID: <14d82fdf-836a-221b-e743-9d6aab92d0f3@gambas-buch.de> That's exactly how it is... From bagonergi at gmail.com Sun Aug 19 19:24:37 2018 From: bagonergi at gmail.com (Gianluigi) Date: Sun, 19 Aug 2018 19:24:37 +0200 Subject: [Gambas-user] Path specification In-Reply-To: <14d82fdf-836a-221b-e743-9d6aab92d0f3@gambas-buch.de> References: <0e582d26-ca6c-d4ce-a30d-71802115b266@gambas-buch.de> <20180819094712.GC869@highrise.localdomain> <20180819115802.GE869@highrise.localdomain> <6e29baee-f013-d1ad-05bd-479f4c710459@gmail.com> <14d82fdf-836a-221b-e743-9d6aab92d0f3@gambas-buch.de> Message-ID: 2018-08-19 17:56 GMT+02:00 Hans Lehmann : > That's exactly how it is... > > :-) -------------- next part -------------- An HTML attachment was scrubbed... URL: From bagonergi at gmail.com Sun Aug 19 19:27:05 2018 From: bagonergi at gmail.com (Gianluigi) Date: Sun, 19 Aug 2018 19:27:05 +0200 Subject: [Gambas-user] Path specification In-Reply-To: <6e29baee-f013-d1ad-05bd-479f4c710459@gmail.com> References: <0e582d26-ca6c-d4ce-a30d-71802115b266@gambas-buch.de> <20180819094712.GC869@highrise.localdomain> <20180819115802.GE869@highrise.localdomain> <6e29baee-f013-d1ad-05bd-479f4c710459@gmail.com> Message-ID: 2018-08-19 16:51 GMT+02:00 Beno?t Minisini : > > Sorry, the behaviour is changing in the development version. :-) > > "abcd" --> 'abcd' file in the running component or project. > > "./abcd" --> 'abcd' file in the running component or project. > > "../abcd" --> 'abcd' file in the calling component of the running > component, or in the current project if there is no calling component. The > calling component is the component of the first calling function that is > not in the current running component. So now they are reversed respect before, but as for the path to copy internal files to the project are every good (as before), right? Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From adamnt42 at gmail.com Sun Aug 19 19:29:12 2018 From: adamnt42 at gmail.com (Me) Date: Mon, 20 Aug 2018 02:59:12 +0930 Subject: [Gambas-user] Path specification In-Reply-To: <6e29baee-f013-d1ad-05bd-479f4c710459@gmail.com> References: <0e582d26-ca6c-d4ce-a30d-71802115b266@gambas-buch.de> <20180819094712.GC869@highrise.localdomain> <20180819115802.GE869@highrise.localdomain> <6e29baee-f013-d1ad-05bd-479f4c710459@gmail.com> Message-ID: <20180820025912.4d57d8c16908457dbca0a935@gmail.com> On Sun, 19 Aug 2018 16:51:29 +0200 Beno?t Minisini wrote: > > Sorry, the behaviour is changing in the development version. :-) > > "abcd" --> 'abcd' file in the running component or project. > > "./abcd" --> 'abcd' file in the running component or project. > > "../abcd" --> 'abcd' file in the calling component of the running > component, or in the current project if there is no calling component. > The calling component is the component of the first calling function > that is not in the current running component. > > ".../abcd" --> 'abcd' in the current project. > > "./gb.xxx/abcd" --> 'abcd' in the 'gb.xxx' component if it is actually > loaded. > > I'm still looking for better syntaxes that are compatible with the old > ones described in the wiki: > > - The problem with './gb.xxx/abcd' is that you can't access a 'gb.xxx' > directory in your project without using the 'gb.xxx' syntax directly. > > - The problem with '.../abcd' is its ugliness. > > - And so on... > > Regards, > > -- > Beno?t Minisini > .// currently refers to a file in a subdirectory of the current executable and ..// currently refers to a file in the calling executable (with the noted exceptions). I presume the introduction of the "./gb.xxx/abcd" construct will not disturb that? May I suggest : ../// to refer to the top level executable and .//// to refer to a specific i.e. literal, component (or library) I agree that .../abcd is suboptimal, but for a different reason - too easy to make a typo! (three slashes are much more visible than three dots.) BTW thanks for the timely information of this change, we make a great deal of use of relative paths to get at the considerable number of metadata files we have at various levels of our components and libraries. regards b -- Me From hans at gambas-buch.de Mon Aug 20 13:53:41 2018 From: hans at gambas-buch.de (Hans Lehmann) Date: Mon, 20 Aug 2018 13:53:41 +0200 Subject: [Gambas-user] Documentation for LOCK In-Reply-To: <6e29baee-f013-d1ad-05bd-479f4c710459@gmail.com> References: <0e582d26-ca6c-d4ce-a30d-71802115b266@gambas-buch.de> <20180819094712.GC869@highrise.localdomain> <20180819115802.GE869@highrise.localdomain> <6e29baee-f013-d1ad-05bd-479f4c710459@gmail.com> Message-ID: <714e3968-36dc-e830-d45c-be793f68cd59@gambas-buch.de> Hello, this example can also be found in the documentation for LOCK (http://gambaswiki.org/wiki/lang/lock): 8<--------------------------------------------------------- Dim hLock As Stream ' Try to acquire the lock Try hLock = Lock "~/my-lock" If Error Then ? Print "Locked is already acquired. Try again later." ? Return Endif ' File is locked, you can do the job now! ... ' Do not forget to release the lock Unlock hLock 8<--------------------------------------------------------- and this sentence: Beware that the locked file is emptied! So never use a file whose contents is important. Doesn't this sentence contradict the above example? I would like to protect the file I want to edit exclusively against competing parallel access by locking it? The file should not be emptied - I want to edit it! With kind regards Hans From adamnt42 at gmail.com Mon Aug 20 14:55:43 2018 From: adamnt42 at gmail.com (Me) Date: Mon, 20 Aug 2018 22:25:43 +0930 Subject: [Gambas-user] Documentation for LOCK In-Reply-To: <714e3968-36dc-e830-d45c-be793f68cd59@gambas-buch.de> References: <0e582d26-ca6c-d4ce-a30d-71802115b266@gambas-buch.de> <20180819094712.GC869@highrise.localdomain> <20180819115802.GE869@highrise.localdomain> <6e29baee-f013-d1ad-05bd-479f4c710459@gmail.com> <714e3968-36dc-e830-d45c-be793f68cd59@gambas-buch.de> Message-ID: <20180820222543.63e58a49490e3dc84c2780f3@gmail.com> On Mon, 20 Aug 2018 13:53:41 +0200 Hans Lehmann wrote: > Hello, > > this example can also be found in the documentation for LOCK > (http://gambaswiki.org/wiki/lang/lock): > > 8<--------------------------------------------------------- > > Dim hLock As Stream > ' Try to acquire the lock > Try hLock = Lock "~/my-lock" > If Error Then > ? Print "Locked is already acquired. Try again later." > ? Return > Endif > ' File is locked, you can do the job now! > ... > ' Do not forget to release the lock > Unlock hLock > > 8<--------------------------------------------------------- > > and this sentence: > > Beware that the locked file is emptied! So never use a file whose > contents is important. > > Doesn't this sentence contradict the above example? I would like to > protect the file I want to edit exclusively against competing parallel > access by locking it? The file should not be emptied - I want to edit it! > > With kind regards > > Hans > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- Having never tried it, this is only a guess. The idea of the Lock command is, I assume, to attempt to create a file of the name "my-lock" (or whatever) in the specified location (in the examples case, in the user's home directory). The idea of the Unlock command is to delete that same (presumably) file. The sentence you refer to, is correct. Never use a file that may have significant information in it. Further, never output any significant information into that file expecting it to be available some "next time". It might help to " touch --help" to see what I believe is going on here. In short, only use Lock to do exactly that, create if possible a lock file. If not possible, then some other process has already got a lock on the situation, so don't try to use the other files relavant to the situation until the lock file is destroyed. It's a simple semaphore. The IDE uses this to detect is a project is already opened by some other instance of the IDE. Simple to see. Open the IDE, load a project, leave it as it is, then open another instance of the IDE and try to open the same project. You will get a message to the extent of something like "This project is already open. Do you want to open it anyway?" hth b -- Me From jussi.lahtinen at gmail.com Mon Aug 20 15:05:45 2018 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Mon, 20 Aug 2018 16:05:45 +0300 Subject: [Gambas-user] Documentation for LOCK In-Reply-To: <714e3968-36dc-e830-d45c-be793f68cd59@gambas-buch.de> References: <0e582d26-ca6c-d4ce-a30d-71802115b266@gambas-buch.de> <20180819094712.GC869@highrise.localdomain> <20180819115802.GE869@highrise.localdomain> <6e29baee-f013-d1ad-05bd-479f4c710459@gmail.com> <714e3968-36dc-e830-d45c-be793f68cd59@gambas-buch.de> Message-ID: You may want to edit copy of the file and then merge it back to the original. Otherwise you will create a mess, because user or some other program does not know what you did to the file. Jussi On Mon, Aug 20, 2018 at 2:54 PM Hans Lehmann wrote: > Hello, > > this example can also be found in the documentation for LOCK > (http://gambaswiki.org/wiki/lang/lock): > > 8<--------------------------------------------------------- > > Dim hLock As Stream > ' Try to acquire the lock > Try hLock = Lock "~/my-lock" > If Error Then > Print "Locked is already acquired. Try again later." > Return > Endif > ' File is locked, you can do the job now! > ... > ' Do not forget to release the lock > Unlock hLock > > 8<--------------------------------------------------------- > > and this sentence: > > Beware that the locked file is emptied! So never use a file whose > contents is important. > > Doesn't this sentence contradict the above example? I would like to > protect the file I want to edit exclusively against competing parallel > access by locking it? The file should not be emptied - I want to edit it! > > With kind regards > > Hans > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Mon Aug 20 19:59:14 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Mon, 20 Aug 2018 19:59:14 +0200 Subject: [Gambas-user] JIT crash In-Reply-To: References: <6dfbd191-2123-afa6-701a-709af42052c8@gmail.com> <8b9716b8-08c8-3466-208f-b29b2e3a1ac3@gmail.com> <95b439d6-b3b0-0b90-d2e4-42b633a70da7@gmail.com> Message-ID: <55f0285f-05d4-94bc-2be3-36a6f445f101@gmail.com> Le 19/08/2018 ? 02:18, Jussi Lahtinen a ?crit?: > Not sure what to add..? > OK, got it. It's fixed in commit https://gitlab.com/gambas/gambas/commit/7ab07bd95f99d3b69bdd2b1786dfbbd4ff667d93. Regards, -- Beno?t Minisini From jussi.lahtinen at gmail.com Mon Aug 20 22:27:15 2018 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Mon, 20 Aug 2018 23:27:15 +0300 Subject: [Gambas-user] JIT crash In-Reply-To: <55f0285f-05d4-94bc-2be3-36a6f445f101@gmail.com> References: <6dfbd191-2123-afa6-701a-709af42052c8@gmail.com> <8b9716b8-08c8-3466-208f-b29b2e3a1ac3@gmail.com> <95b439d6-b3b0-0b90-d2e4-42b633a70da7@gmail.com> <55f0285f-05d4-94bc-2be3-36a6f445f101@gmail.com> Message-ID: There is still altered behaviour. Run the project and click on the play button. This yields error when JIT is enabled. Also there is crash with GambasTester (attached). Jussi On Mon, Aug 20, 2018 at 9:00 PM Beno?t Minisini wrote: > Le 19/08/2018 ? 02:18, Jussi Lahtinen a ?crit : > > Not sure what to add..? > > > > OK, got it. It's fixed in commit > > https://gitlab.com/gambas/gambas/commit/7ab07bd95f99d3b69bdd2b1786dfbbd4ff667d93 > . > > Regards, > > -- > Beno?t Minisini > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: MediaPlayer-1.0.tar.gz Type: application/gzip Size: 186883 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: GambasTestercmd-0.10.6.tar.gz Type: application/gzip Size: 26773 bytes Desc: not available URL: From mckaygerhard at gmail.com Tue Aug 21 15:50:58 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Tue, 21 Aug 2018 09:50:58 -0400 Subject: [Gambas-user] Loading Components and Classes - Source Code In-Reply-To: References: <6dfbd191-2123-afa6-701a-709af42052c8@gmail.com> <8b9716b8-08c8-3466-208f-b29b2e3a1ac3@gmail.com> <95b439d6-b3b0-0b90-d2e4-42b633a70da7@gmail.com> <5b1752dd-e85d-59cf-78b7-8e56f9577d55@gambas-buch.de> Message-ID: umm i have this same question, well lest see: hans means that i need to get sure if the gb.util component "was loaded" before usage of any "new added function. ok, compiler seems the pre-check before if all need are in.. but what about own-made components, well own made classes? will be compressed inside the executable and we need toload as other file inside the archived executable? Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2018-08-18 20:23 GMT-04:00 Jussi Lahtinen : > What are you trying to achieve with this? > The components should be ready to use, if they are tagged in the project > properties. > > Jussi > > On Sat, Aug 18, 2018 at 8:26 PM Hans Lehmann wrote: > >> Hello, >> >> how to ensure in a project in source code (!) that for example the two >> components gb.desktop and gb.util are loaded for program start. Of the >> component gb.util, the class Shell is required in the project. >> >> That was my intention, but it was not successful: >> >> Public Sub _new() >> Component.Load("gb.desktop") >> Component.Load("gb.util") >> Class.Load("Shell") >> ... >> End >> >> With kind regards >> >> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >> > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mckaygerhard at gmail.com Tue Aug 21 17:16:00 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Tue, 21 Aug 2018 11:16:00 -0400 Subject: [Gambas-user] sleep vs waith in serial respect forms/class Message-ID: i setup a variable for the delay to waith info into my serial kit printer classes but in some cases using sleep got into a undefined loop or does not end, same when using waith Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From jussi.lahtinen at gmail.com Tue Aug 21 17:27:54 2018 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Tue, 21 Aug 2018 18:27:54 +0300 Subject: [Gambas-user] sleep vs waith in serial respect forms/class In-Reply-To: References: Message-ID: Please show the code. Wait allows events to be raised, sleep doesn't. But you cannot use wait inside of event handler. http://gambaswiki.org/wiki/lang/wait Jussi On Tue, Aug 21, 2018 at 6:17 PM PICCORO McKAY Lenz wrote: > i setup a variable for the delay to waith info into my serial kit printer > classes > > but in some cases using sleep got into a undefined loop or does not end, > same when using waith > > > Lenz McKAY Gerardo (PICCORO) > http://qgqlochekone.blogspot.com > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mckaygerhard at gmail.com Tue Aug 21 17:39:04 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Tue, 21 Aug 2018 11:39:04 -0400 Subject: [Gambas-user] sleep vs waith in serial respect forms/class In-Reply-To: References: Message-ID: ahhhhhhh! as wiki said (wiki don load property in the ide, too much dealy) "waith" can be used inside event's, and sleep's cannot be used inside ? noted said "The event loop is not called during a sleep, and so events are not processed." so means that during the "sleep duration" no one event will be raised right? Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2018-08-21 11:27 GMT-04:00 Jussi Lahtinen : > Please show the code. Wait allows events to be raised, sleep doesn't. But > you cannot use wait inside of event handler. > http://gambaswiki.org/wiki/lang/wait > > > Jussi > > On Tue, Aug 21, 2018 at 6:17 PM PICCORO McKAY Lenz > wrote: > >> i setup a variable for the delay to waith info into my serial kit printer >> classes >> >> but in some cases using sleep got into a undefined loop or does not end, >> same when using waith >> >> >> Lenz McKAY Gerardo (PICCORO) >> http://qgqlochekone.blogspot.com >> >> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >> > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From t.lee.davidson at gmail.com Tue Aug 21 18:06:38 2018 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Tue, 21 Aug 2018 12:06:38 -0400 Subject: [Gambas-user] sleep vs waith in serial respect forms/class In-Reply-To: References: Message-ID: On 08/21/2018 11:39 AM, PICCORO McKAY Lenz wrote: > ahhhhhhh! as wiki said (wiki don load property in the ide, too much dealy) "waith" can be used inside event's, and sleep's > cannot be used inside ? It's the other way around. SLEEP can be used inside an event handler, and WAIT cannot. > noted said "The event loop is not called during a sleep, and so events are not processed." so means that during the "sleep > duration" no one event will be raised right? Correct. If you need to wait for an event to be raised, then you need to use WAIT since that allows the event loop to occur. But, as Jussi stated, WAIT cannot be used within and event handler. Doing so can lead to event collisions and undefined behavior including program crash. ___ Lee From mckaygerhard at gmail.com Tue Aug 21 18:43:13 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Tue, 21 Aug 2018 12:43:13 -0400 Subject: [Gambas-user] sleep vs waith in serial respect forms/class In-Reply-To: References: Message-ID: umm that means that the sleep instruction will "hang" the program during that period/time! so may i have to use with caution! thanks for all Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2018-08-21 12:06 GMT-04:00 T Lee Davidson : > On 08/21/2018 11:39 AM, PICCORO McKAY Lenz wrote: > > ahhhhhhh! as wiki said (wiki don load property in the ide, too much > dealy) "waith" can be used inside event's, and sleep's > > cannot be used inside ? > > It's the other way around. SLEEP can be used inside an event handler, and > WAIT cannot. > > > > noted said "The event loop is not called during a sleep, and so events > are not processed." so means that during the "sleep > > duration" no one event will be raised right? > > Correct. If you need to wait for an event to be raised, then you need to > use WAIT since that allows the event loop to occur. > But, as Jussi stated, WAIT cannot be used within and event handler. Doing > so can lead to event collisions and undefined behavior > including program crash. > > > ___ > Lee > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Wed Aug 22 09:37:01 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Wed, 22 Aug 2018 09:37:01 +0200 Subject: [Gambas-user] JIT crash In-Reply-To: References: <8b9716b8-08c8-3466-208f-b29b2e3a1ac3@gmail.com> <95b439d6-b3b0-0b90-d2e4-42b633a70da7@gmail.com> <55f0285f-05d4-94bc-2be3-36a6f445f101@gmail.com> Message-ID: <229aed71-d3d6-cb54-17b4-0ebdb0203cf8@gmail.com> Le 20/08/2018 ? 22:27, Jussi Lahtinen a ?crit?: > There is still altered behaviour. Run the project and click on the play > button. This yields error when JIT is enabled. > Also there is crash with GambasTester (attached). > > Jussi > Is it better with commit https://gitlab.com/gambas/gambas/commit/706a605cc33ed5b3ec3f055205c002c1157891df for MediaPlayer? I didn't test GambasTester yet. -- Beno?t Minisini From rwe-sse at osnanet.de Wed Aug 22 16:34:50 2018 From: rwe-sse at osnanet.de (Rolf-Werner Eilert) Date: Wed, 22 Aug 2018 16:34:50 +0200 Subject: [Gambas-user] Just a UI idea Message-ID: <2c9c5648-8552-2694-2f10-56f9cc27669c@osnanet.de> Wanted to share this idea with you. The other day, I was looking for a horizontal list to be placed above a GridView. The list was to contain two-letter briefs of names in the form of Xy. The list should show the chosen name, and the user should be able to click on a name to choose it. I could have used a tab-strip, but in this case I found a GridView more handy. - I placed a tiny GridView (above the one to show the data) with only one row height - no scroll gadgets on - a little array for this GridView contains the list of names - in the _Data event, it looks for "is this the chosen name/column". If yes, the background color is set to a color, if not the color is standard - in the _Click event, it picks the name and calls the same functions like the other elements in the form which choose a name and set it to "chosen" This way I have a variable list, and it looks quite nice. Regards Rolf From hans at gambas-buch.de Wed Aug 22 17:57:09 2018 From: hans at gambas-buch.de (Hans Lehmann) Date: Wed, 22 Aug 2018 17:57:09 +0200 Subject: [Gambas-user] Control FileProperties Message-ID: <1e05df4c-3cb7-f9e9-788c-d44bd3e99a0c@gambas-buch.de> Hello, the Add( Panel As Control, Title As String ) method of the FileProperties control inserts an existing container or control into a new tab of the FileProperties control. Panel is the control that is inserted and Title is the title of the new tab. This also works without any problems. Unfortunately, I can't find a way to remove this additional tab because there is no Remove method for the FileProperties control. Who can help me? With kind regards Hans -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: lfeblkgfoacnndea.png Type: image/png Size: 82993 bytes Desc: not available URL: From rwe-sse at osnanet.de Wed Aug 22 17:59:26 2018 From: rwe-sse at osnanet.de (Rolf-Werner Eilert) Date: Wed, 22 Aug 2018 17:59:26 +0200 Subject: [Gambas-user] Question about GridViews Message-ID: <2b5003b5-360c-7d8c-cded-9d130a86852e@osnanet.de> Just a question... Is it possible to "attach" or "insert" other elements into a GridView cell? For instance, it might be nice to have a combobox in a GridView. Can I add this to the GridView cell's .Data somehow? I have one program which uses TextLabels and ToolButtons above GridView cells to simulate this to some extend, but I have to make them via arrays of objects and have to control them so that they follow the grid when it's scrolled etc. If they could be pinned to a grid cell, it would be easier to manage. Regards Rolf From hans at gambas-buch.de Wed Aug 22 18:01:35 2018 From: hans at gambas-buch.de (Hans Lehmann) Date: Wed, 22 Aug 2018 18:01:35 +0200 Subject: [Gambas-user] Just a UI idea In-Reply-To: <2c9c5648-8552-2694-2f10-56f9cc27669c@osnanet.de> References: <2c9c5648-8552-2694-2f10-56f9cc27669c@osnanet.de> Message-ID: Hello Rolf, a small snippet with source code would certainly help to implement this fine idea. With kind regards Hans From mckaygerhard at gmail.com Wed Aug 22 18:04:47 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Wed, 22 Aug 2018 12:04:47 -0400 Subject: [Gambas-user] Question about GridViews In-Reply-To: <2b5003b5-360c-7d8c-cded-9d130a86852e@osnanet.de> References: <2b5003b5-360c-7d8c-cded-9d130a86852e@osnanet.de> Message-ID: would be nice! umm seems if the cell support objects representantion could be possible! but if not, it' couln Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2018-08-22 11:59 GMT-04:00 Rolf-Werner Eilert : > Just a question... > > Is it possible to "attach" or "insert" other elements into a GridView cell? > > For instance, it might be nice to have a combobox in a GridView. Can I add > this to the GridView cell's .Data somehow? > > I have one program which uses TextLabels and ToolButtons above GridView > cells to simulate this to some extend, but I have to make them via arrays > of objects and have to control them so that they follow the grid when it's > scrolled etc. > > If they could be pinned to a grid cell, it would be easier to manage. > > Regards > Rolf > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mckaygerhard at gmail.com Wed Aug 22 18:05:37 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Wed, 22 Aug 2018 12:05:37 -0400 Subject: [Gambas-user] Control FileProperties In-Reply-To: <1e05df4c-3cb7-f9e9-788c-d44bd3e99a0c@gambas-buch.de> References: <1e05df4c-3cb7-f9e9-788c-d44bd3e99a0c@gambas-buch.de> Message-ID: umm maybe redifined the amount of tabs? Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2018-08-22 11:57 GMT-04:00 Hans Lehmann : > Hello, > > the Add( Panel As Control, Title As String ) method of the FileProperties > control inserts an existing container or control into a new tab of the > FileProperties control. Panel is the control that is inserted and Title is > the title of the new tab. This also works without any problems. > > > > Unfortunately, I can't find a way to remove this additional tab because > there is no Remove method for the FileProperties control. > > Who can help me? > > With kind regards > > Hans > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From adamnt42 at gmail.com Wed Aug 22 19:35:49 2018 From: adamnt42 at gmail.com (Me) Date: Thu, 23 Aug 2018 03:05:49 +0930 Subject: [Gambas-user] Question about GridViews In-Reply-To: <2b5003b5-360c-7d8c-cded-9d130a86852e@osnanet.de> References: <2b5003b5-360c-7d8c-cded-9d130a86852e@osnanet.de> Message-ID: <20180823030549.a435d9b57b1dfbf60b1e9614@gmail.com> On Wed, 22 Aug 2018 17:59:26 +0200 Rolf-Werner Eilert wrote: > Just a question... > > Is it possible to "attach" or "insert" other elements into a GridView cell? > > For instance, it might be nice to have a combobox in a GridView. Can I > add this to the GridView cell's .Data somehow? > > I have one program which uses TextLabels and ToolButtons above GridView > cells to simulate this to some extend, but I have to make them via > arrays of objects and have to control them so that they follow the grid > when it's scrolled etc. > > If they could be pinned to a grid cell, it would be easier to manage. > > Regards > Rolf > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- Have a look at the sourrce code for the TableView control. From memory that is what it does to create the "cell editor". hth b -- Me From d4t4full at gmail.com Wed Aug 22 20:16:01 2018 From: d4t4full at gmail.com (ML) Date: Wed, 22 Aug 2018 15:16:01 -0300 Subject: [Gambas-user] Question about GridViews In-Reply-To: <20180823030549.a435d9b57b1dfbf60b1e9614@gmail.com> References: <2b5003b5-360c-7d8c-cded-9d130a86852e@osnanet.de> <20180823030549.a435d9b57b1dfbf60b1e9614@gmail.com> Message-ID: On 22/08/18 14:35, Me wrote: > On Wed, 22 Aug 2018 17:59:26 +0200 > Rolf-Werner Eilert wrote: >> Just a question... >> Is it possible to "attach" or "insert" other elements into a GridView cell? >> For instance, it might be nice to have a combobox in a GridView. Can I add this to the GridView cell's .Data somehow? >> I have one program which uses TextLabels and ToolButtons above GridView cells to simulate this to some extend, but I have to make them via arrays of objects and have to control them so that they follow the grid when it's scrolled etc. >> If they could be pinned to a grid cell, it would be easier to manage. >> Regards >> Rolf > Have a look at the sourrce code for the TableView control. From memory that is what it does to create the "cell editor". > hth > b Long time ago, in a galaxy far far away, I implemented something like this in VB6. I guess a new Gambas Control can be created inheriting from GridView, Textbox and (a collection of) Combo. Make sure the combos are preset to not allow editing. The combo collection maps to one combo per combo-bound-column in the grid: One would set the combo-columns beforehand, and fill these combos with whatever data is needed. For example, a combo-column might be "LANGUAGE", and its combo items would be "ENGLISH", "FRENCH", "SPANISH", "GERMAN", "RUSSIAN", etc., while another combo-column could well be "GENDER" and the items "MALE", "FEMALE", etc. The Textbox is just one and is there for cell-editing of cells in non-combo columns. Then, when the user double-clicks a cell, the control should move and show either the Textbox (defaulting its text to whatever the cell had), or the appropriate combo (with the selected index matching the data in the cell)) from the collection right on top of the target cell, thus allowing "editing". TEXTBOX: When ENTER or any arrow key is pressed (or the mouse clicks away from the textbox, like to another cell), changes are accepted; if ESC is pressed instead, changes are discarded. Then, hide the textbox. COMBO: If the selected item changed, update the cell; otherwise cancel the change. Then hide the combo. A nice touch I did not implement would be to have a TEXTAREA for multiline cell data, but that is just nitpicking. That would be it. From chrisml at deganius.de Wed Aug 22 21:19:29 2018 From: chrisml at deganius.de (Christof Thalhofer) Date: Wed, 22 Aug 2018 21:19:29 +0200 Subject: [Gambas-user] Question about GridViews In-Reply-To: <2b5003b5-360c-7d8c-cded-9d130a86852e@osnanet.de> References: <2b5003b5-360c-7d8c-cded-9d130a86852e@osnanet.de> Message-ID: <054b720b-4b38-e2ee-6d7d-876a6f19c971@deganius.de> Am 22.08.2018 um 17:59 schrieb Rolf-Werner Eilert: > Just a question... > > Is it possible to "attach" or "insert" other elements into a GridView cell? > > For instance, it might be nice to have a combobox in a GridView. Can I > add this to the GridView cell's .Data somehow? > > I have one program which uses TextLabels and ToolButtons above GridView > cells to simulate this to some extend, but I have to make them via > arrays of objects and have to control them so that they follow the grid > when it's scrolled etc. > > If they could be pinned to a grid cell, it would be easier to manage. Please have a look at this: https://gitlab.com/christhal/gb.deg.form This is my own combobox together with a tableview class which is able to integrate the combobox on demand. Maybe the interfaces are a not very "gambassy", this was my first thing when I started using Gambas. I had to write it because there was no real good combobox which fulfilled my needs. But now it works in all my Gambas GUI projects and I can use it to display and edit joined tables of relational databases in GUI. The text editor of the combobox has some minor bugs you can see if you edit the text not at the end but inbetween. Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: OpenPGP digital signature URL: From jussi.lahtinen at gmail.com Wed Aug 22 21:41:50 2018 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Wed, 22 Aug 2018 22:41:50 +0300 Subject: [Gambas-user] JIT crash In-Reply-To: <229aed71-d3d6-cb54-17b4-0ebdb0203cf8@gmail.com> References: <8b9716b8-08c8-3466-208f-b29b2e3a1ac3@gmail.com> <95b439d6-b3b0-0b90-d2e4-42b633a70da7@gmail.com> <55f0285f-05d4-94bc-2be3-36a6f445f101@gmail.com> <229aed71-d3d6-cb54-17b4-0ebdb0203cf8@gmail.com> Message-ID: Yes! I wish I could be more helpful, than just hunting bugs. It's just that I haven't done that kind of programming and the learning curve seems quite steep. You have fixed the bug long before I have understood what is going on... Jussi On Wed, Aug 22, 2018 at 10:38 AM Beno?t Minisini wrote: > Le 20/08/2018 ? 22:27, Jussi Lahtinen a ?crit : > > There is still altered behaviour. Run the project and click on the play > > button. This yields error when JIT is enabled. > > Also there is crash with GambasTester (attached). > > > > Jussi > > > > Is it better with commit > > https://gitlab.com/gambas/gambas/commit/706a605cc33ed5b3ec3f055205c002c1157891df > for MediaPlayer? > > I didn't test GambasTester yet. > > -- > Beno?t Minisini > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Wed Aug 22 21:56:37 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Wed, 22 Aug 2018 21:56:37 +0200 Subject: [Gambas-user] JIT crash In-Reply-To: References: <95b439d6-b3b0-0b90-d2e4-42b633a70da7@gmail.com> <55f0285f-05d4-94bc-2be3-36a6f445f101@gmail.com> <229aed71-d3d6-cb54-17b4-0ebdb0203cf8@gmail.com> Message-ID: Le 22/08/2018 ? 21:41, Jussi Lahtinen a ?crit?: > Yes! > I wish I could be more helpful, than just hunting bugs. It's just that I > haven't done that kind of programming and the learning curve seems quite > steep. > You have fixed the bug long before I have understood what is going on... > > Jussi It's already very helpful to write awful code in GambasTester that makes the JIT compiler misbehave. :-) Regards, -- Beno?t Minisini From jussi.lahtinen at gmail.com Wed Aug 22 22:08:35 2018 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Wed, 22 Aug 2018 23:08:35 +0300 Subject: [Gambas-user] JIT crash In-Reply-To: References: <95b439d6-b3b0-0b90-d2e4-42b633a70da7@gmail.com> <55f0285f-05d4-94bc-2be3-36a6f445f101@gmail.com> <229aed71-d3d6-cb54-17b4-0ebdb0203cf8@gmail.com> Message-ID: Heh! Yes, I'm glad to see it works! I try my best to figure out weird things for the test. Though I am missing something more obvious and practical that triggers a bug... I'll figure it out. Jussi On Wed, Aug 22, 2018 at 10:57 PM Beno?t Minisini wrote: > Le 22/08/2018 ? 21:41, Jussi Lahtinen a ?crit : > > Yes! > > I wish I could be more helpful, than just hunting bugs. It's just that I > > haven't done that kind of programming and the learning curve seems quite > > steep. > > You have fixed the bug long before I have understood what is going on... > > > > Jussi > > It's already very helpful to write awful code in GambasTester that makes > the JIT compiler misbehave. :-) > > Regards, > > -- > Beno?t Minisini > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mckaygerhard at gmail.com Wed Aug 22 22:31:07 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Wed, 22 Aug 2018 16:31:07 -0400 Subject: [Gambas-user] Question about GridViews In-Reply-To: <054b720b-4b38-e2ee-6d7d-876a6f19c971@deganius.de> References: <2b5003b5-360c-7d8c-cded-9d130a86852e@osnanet.de> <054b720b-4b38-e2ee-6d7d-876a6f19c971@deganius.de> Message-ID: ah of course, i forgott the components of https://gitlab.com/christhal/gb.deg.form that Cristof said! Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2018-08-22 15:19 GMT-04:00 Christof Thalhofer : > Am 22.08.2018 um 17:59 schrieb Rolf-Werner Eilert: > > Just a question... > > > > Is it possible to "attach" or "insert" other elements into a GridView > cell? > > > > For instance, it might be nice to have a combobox in a GridView. Can I > > add this to the GridView cell's .Data somehow? > > > > I have one program which uses TextLabels and ToolButtons above GridView > > cells to simulate this to some extend, but I have to make them via > > arrays of objects and have to control them so that they follow the grid > > when it's scrolled etc. > > > > If they could be pinned to a grid cell, it would be easier to manage. > > Please have a look at this: > https://gitlab.com/christhal/gb.deg.form > > This is my own combobox together with a tableview class which is able to > integrate the combobox on demand. > > Maybe the interfaces are a not very "gambassy", this was my first thing > when I started using Gambas. I had to write it because there was no real > good combobox which fulfilled my needs. But now it works in all my > Gambas GUI projects and I can use it to display and edit joined tables > of relational databases in GUI. > > The text editor of the combobox has some minor bugs you can see if you > edit the text not at the end but inbetween. > > > Alles Gute > > Christof Thalhofer > > -- > Dies ist keine Signatur > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jussi.lahtinen at gmail.com Thu Aug 23 00:11:27 2018 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Thu, 23 Aug 2018 01:11:27 +0300 Subject: [Gambas-user] JIT crash In-Reply-To: References: <95b439d6-b3b0-0b90-d2e4-42b633a70da7@gmail.com> <55f0285f-05d4-94bc-2be3-36a6f445f101@gmail.com> <229aed71-d3d6-cb54-17b4-0ebdb0203cf8@gmail.com> Message-ID: Here is some fine code, which produces crash. See CrashJIT6 sub (moreover how it is called) from the attached project. Jussi On Wed, Aug 22, 2018 at 11:08 PM Jussi Lahtinen wrote: > Heh! Yes, I'm glad to see it works! I try my best to figure out weird > things for the test. > Though I am missing something more obvious and practical that triggers a > bug... I'll figure it out. > > Jussi > > On Wed, Aug 22, 2018 at 10:57 PM Beno?t Minisini wrote: > >> Le 22/08/2018 ? 21:41, Jussi Lahtinen a ?crit : >> > Yes! >> > I wish I could be more helpful, than just hunting bugs. It's just that >> I >> > haven't done that kind of programming and the learning curve seems >> quite >> > steep. >> > You have fixed the bug long before I have understood what is going on... >> > >> > Jussi >> >> It's already very helpful to write awful code in GambasTester that makes >> the JIT compiler misbehave. :-) >> >> Regards, >> >> -- >> Beno?t Minisini >> >> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: GambasTestercmd-0.10.8.tar.gz Type: application/gzip Size: 26817 bytes Desc: not available URL: From jussi.lahtinen at gmail.com Thu Aug 23 01:14:20 2018 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Thu, 23 Aug 2018 02:14:20 +0300 Subject: [Gambas-user] Bug Message-ID: There seems to be very recently introduced bug in the interpreter. See attached project. Jussi -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: GambasTestercmd-0.10.10.tar.gz Type: application/gzip Size: 26856 bytes Desc: not available URL: From g4mba5 at gmail.com Thu Aug 23 03:05:44 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Thu, 23 Aug 2018 03:05:44 +0200 Subject: [Gambas-user] Bug In-Reply-To: References: Message-ID: Le 23/08/2018 ? 01:14, Jussi Lahtinen a ?crit?: > There seems to be very recently introduced bug in the interpreter. > See attached project. > > > Jussi > This is not a bug (the class TestClass1 has no symbol "y"), but a misleading error message. -- Beno?t Minisini From jussi.lahtinen at gmail.com Thu Aug 23 03:22:02 2018 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Thu, 23 Aug 2018 04:22:02 +0300 Subject: [Gambas-user] Bug In-Reply-To: References: Message-ID: The sub is called with TestClass2 even when TestClass1 is asked. Also this way there is no error message at all! Private Sub Crash(o1 As TestClass1) Dim ii As Integer = o1.x Dim jj As Integer = o1.y() End Jussi On Thu, Aug 23, 2018 at 4:06 AM Beno?t Minisini wrote: > Le 23/08/2018 ? 01:14, Jussi Lahtinen a ?crit : > > There seems to be very recently introduced bug in the interpreter. > > See attached project. > > > > > > Jussi > > > > This is not a bug (the class TestClass1 has no symbol "y"), but a > misleading error message. > > -- > Beno?t Minisini > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From chrisml at deganius.de Thu Aug 23 05:50:08 2018 From: chrisml at deganius.de (Christof Thalhofer) Date: Thu, 23 Aug 2018 05:50:08 +0200 Subject: [Gambas-user] Question about GridViews In-Reply-To: References: <2b5003b5-360c-7d8c-cded-9d130a86852e@osnanet.de> <054b720b-4b38-e2ee-6d7d-876a6f19c971@deganius.de> Message-ID: <8a355424-4184-f4cf-dafd-576d4dbbc583@deganius.de> Am 22.08.2018 um 22:31 schrieb PICCORO McKAY Lenz: > ah of course, i forgott the components of > https://gitlab.com/christhal/gb.deg.form > > that Cristof said! :-) I made it public yesterday. As MS took over Github I transferred my projects to Gitlab and there they were private. But now they are public again. Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: OpenPGP digital signature URL: From g4mba5 at gmail.com Thu Aug 23 11:16:48 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Thu, 23 Aug 2018 11:16:48 +0200 Subject: [Gambas-user] Bug In-Reply-To: References: Message-ID: Le 23/08/2018 ? 03:22, Jussi Lahtinen a ?crit?: > The sub is called with TestClass2 even when TestClass1 is asked. Also > this way there is no error message at all! > > Private Sub Crash(o1 As TestClass1) > > ?Dim ii As Integer = o1.x > ?Dim jj As Integer = o1.y() > > End > > Jussi > Of course: as you define an _unknown method in TestClass2, this method is returned when accessing an unknown symbol (hence the error when you don't call it). I will try to see if I can make the error more explicit by detecting that special case. -- Beno?t Minisini From bagonergi at gmail.com Thu Aug 23 14:26:45 2018 From: bagonergi at gmail.com (Gianluigi) Date: Thu, 23 Aug 2018 14:26:45 +0200 Subject: [Gambas-user] Control FileProperties In-Reply-To: <1e05df4c-3cb7-f9e9-788c-d44bd3e99a0c@gambas-buch.de> References: <1e05df4c-3cb7-f9e9-788c-d44bd3e99a0c@gambas-buch.de> Message-ID: Il giorno mer 22 ago 2018 alle ore 17:58 Hans Lehmann ha scritto: > Hello, > > the Add( Panel As Control, Title As String ) method of the FileProperties > control inserts an existing container or control into a new tab of the > FileProperties control. Panel is the control that is inserted and Title is > the title of the new tab. This also works without any problems. > > > > Unfortunately, I can't find a way to remove this additional tab because > there is no Remove method for the FileProperties control. > > Who can help me? > > With kind regards > > Hans > > Hi Hans, if you're looking for a way to preview each type of file in addition to the image files, I think you should work directly on the Properties component of gb.form. I had a look but I saw that it is very complicated, I do not know if I would be able to work on it, unfortunately currently I do not have time to study it. Good luck! Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: lfeblkgfoacnndea.png Type: image/png Size: 82993 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: lfeblkgfoacnndea.png Type: image/png Size: 82993 bytes Desc: not available URL: From james at lixce.com Thu Aug 23 06:55:35 2018 From: james at lixce.com (james at lixce.com) Date: Thu, 23 Aug 2018 04:55:35 GMT Subject: [Gambas-user] gb.qt5.webkit Cookies Message-ID: Has anyone been able to store and read cookies with qt5.webkit? I'm iterating through WebView1.Cookies and writting each field and a key to a file when I close the form. Public Sub CookieJar_Store() Dim cFile As File Dim macaroon As Cookie File.Save("/home/james/macaroons.txt", "") cFile = Open "/home/james/macaroons.txt" For Write Output To cFile For Each macaroon In WebView1.Cookies Print "Domain: " & macaroon.Domain Print "Expire: " & macaroon.ExpirationDate Print "HttpON: " & macaroon.HttpOnly Print "Name: " & macaroon.Name Print "Path: " & macaroon.Path Print "Secure: " & macaroon.Secure Print "Session: " & macaroon.Session Print "Value: " & macaroon.Value Next Output To Default Close cFile End Then when on open I read them back into an array, then copy that array to WebView1.Cookies (kind ov verbose,trying to figure out waht is happening Public Sub CookieJar_Fill() Dim cFile As File Dim sLine As String Dim macaroon As New Cookie Dim myCookies As New Cookie[] If Not Exist("/home/james/macaroons.txt") Then Return cFile = Open "/home/james/macaroons.txt" For Input While Not Eof(cFile) Line Input #cFile, sLine 'sLine = Replace(sLine, "\n", "") If sLine Begins "Domain: " Then macaroon.Domain = String.Right(sLine, -8) Endif If sLine Begins "Expire: " Then macaroon.ExpirationDate = String.Right(sLine, -8) Endif If sLine Begins "HttpON: " Then macaroon.HttpOnly = String.Right(sLine, -8) Endif If sLine Begins "Name: " Then macaroon.Name = String.Right(sLine, -6) Endif If sLine Begins "Path: " Then macaroon.Path = String.Right(sLine, -6) Endif If sLine Begins "Secure: " Then macaroon.Secure = String.Right(sLine, -8) Endif If sLine Begins "Value: " Then macaroon.Value =String.Right(sLine, -7) myCookies.Add(macaroon) Endif Wend Close cFile WebView1.Cookies = myCookies Print "Cookie Count: " & WebView1.Cookies.Count End When I Print the cookies to the console using a sub similar to the CookieJar_Store, after loading, they look the same as the text file (minus the keys of course). But Google, Amazon, NFCU refuse to accept them, the sites act the same as if there are no cookies at all. I don't think I need to store the session cookies but makes no difference if I don't. I have looked at the WebBrowser example and Gentleman Borwser but niether of them do anything with cookies. There is an old project called Aredia that is written in Gambas but I cannot figure out what they were doing with cookies. So, anyone figured out a way to save and restore cookies in gb.qt5.webkit. Thanks, -j From t.lee.davidson at gmail.com Thu Aug 23 16:07:09 2018 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Thu, 23 Aug 2018 10:07:09 -0400 Subject: [Gambas-user] Control FileProperties In-Reply-To: <1e05df4c-3cb7-f9e9-788c-d44bd3e99a0c@gambas-buch.de> References: <1e05df4c-3cb7-f9e9-788c-d44bd3e99a0c@gambas-buch.de> Message-ID: I don't have time at the moment to try it. But, can you simply destroy the re-parented Panel, ie. Panel.Delete? ___ Lee On 08/22/2018 11:57 AM, Hans Lehmann wrote: > Hello, > > the Add( Panel As Control, Title As String ) method of the FileProperties control inserts an existing container or control into > a new tab of the FileProperties control. Panel is the control that is inserted and Title is the title of the new tab. This also > works without any problems. > > > > Unfortunately, I can't find a way to remove this additional tab because there is no Remove method for the FileProperties control. > > Who can help me? > > With kind regards > > Hans > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > From t.lee.davidson at gmail.com Thu Aug 23 16:28:47 2018 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Thu, 23 Aug 2018 10:28:47 -0400 Subject: [Gambas-user] gb.qt5.webkit Cookies In-Reply-To: <20180823125602.4DBA920006BA@h08.hostsharing.net> References: <20180823125602.4DBA920006BA@h08.hostsharing.net> Message-ID: I haven't experimented with the cookie array as you have, so this is just a shot in the dark. Is it possible that this is a character encoding issue? Perhaps the cookies are being saved & restored in a different encoding than those sites expect. ___ Lee On 08/23/2018 12:55 AM, james at lixce.com wrote: > Has anyone been able to store and read cookies with qt5.webkit? > > I'm iterating through WebView1.Cookies and writting each field and a key to a file when I close the form. > > Public Sub CookieJar_Store() > Dim cFile As File > Dim macaroon As Cookie > > File.Save("/home/james/macaroons.txt", "") > cFile = Open "/home/james/macaroons.txt" For Write > Output To cFile > For Each macaroon In WebView1.Cookies > Print "Domain: " & macaroon.Domain > Print "Expire: " & macaroon.ExpirationDate > Print "HttpON: " & macaroon.HttpOnly > Print "Name: " & macaroon.Name > Print "Path: " & macaroon.Path > Print "Secure: " & macaroon.Secure > Print "Session: " & macaroon.Session > Print "Value: " & macaroon.Value > Next > > Output To Default > Close cFile > End > > Then when on open I read them back into an array, then copy that array to WebView1.Cookies > (kind ov verbose,trying to figure out waht is happening > Public Sub CookieJar_Fill() > > Dim cFile As File > Dim sLine As String > Dim macaroon As New Cookie > Dim myCookies As New Cookie[] > > If Not Exist("/home/james/macaroons.txt") Then Return > > cFile = Open "/home/james/macaroons.txt" For Input > > While Not Eof(cFile) > > Line Input #cFile, sLine > 'sLine = Replace(sLine, "\n", "") > If sLine Begins "Domain: " Then > macaroon.Domain = String.Right(sLine, -8) > Endif > If sLine Begins "Expire: " Then > macaroon.ExpirationDate = String.Right(sLine, -8) > Endif > If sLine Begins "HttpON: " Then > macaroon.HttpOnly = String.Right(sLine, -8) > Endif > If sLine Begins "Name: " Then > macaroon.Name = String.Right(sLine, -6) > Endif > If sLine Begins "Path: " Then > macaroon.Path = String.Right(sLine, -6) > Endif > If sLine Begins "Secure: " Then > macaroon.Secure = String.Right(sLine, -8) > Endif > If sLine Begins "Value: " Then > macaroon.Value =String.Right(sLine, -7) > myCookies.Add(macaroon) > Endif > Wend > > Close cFile > > WebView1.Cookies = myCookies > > Print "Cookie Count: " & WebView1.Cookies.Count > End > > When I Print the cookies to the console using a sub similar to the CookieJar_Store, after loading, they look the same as the text file (minus the keys of course). But Google, Amazon, NFCU refuse to accept them, the sites act the same as if there are no cookies at all. I don't think I need to store the session cookies but makes no difference if I don't. > > I have looked at the WebBrowser example and Gentleman Borwser but niether of them do anything with cookies. There is an old project called Aredia that is written in Gambas but I cannot figure out what they were doing with cookies. > > So, anyone figured out a way to save and restore cookies in gb.qt5.webkit. > > Thanks, -j > > > > > > > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > From mckaygerhard at gmail.com Thu Aug 23 16:38:03 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Thu, 23 Aug 2018 10:38:03 -0400 Subject: [Gambas-user] Question about GridViews In-Reply-To: <8a355424-4184-f4cf-dafd-576d4dbbc583@deganius.de> References: <2b5003b5-360c-7d8c-cded-9d130a86852e@osnanet.de> <054b720b-4b38-e2ee-6d7d-876a6f19c971@deganius.de> <8a355424-4184-f4cf-dafd-576d4dbbc583@deganius.de> Message-ID: El mi?., 22 de ago. de 2018 a la(s) 23:51, Christof Thalhofer ( chrisml at deganius.de) escribi?: > I made it public yesterday. As MS took over Github I transferred my > projects to Gitlab and there they were private. > i also moved to gitlab, but let only empty repos at github side, to do not took the name brand to hijacking and confusing > > But now they are public again. > > > Alles Gute > > Christof Thalhofer > > -- > Dies ist keine Signatur > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jussi.lahtinen at gmail.com Thu Aug 23 17:09:21 2018 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Thu, 23 Aug 2018 18:09:21 +0300 Subject: [Gambas-user] Bug In-Reply-To: References: Message-ID: Phuuh... yes, my mistake. I didn't remember the unknown method. Jussi On Thu, Aug 23, 2018 at 12:17 PM Beno?t Minisini wrote: > Le 23/08/2018 ? 03:22, Jussi Lahtinen a ?crit : > > The sub is called with TestClass2 even when TestClass1 is asked. Also > > this way there is no error message at all! > > > > Private Sub Crash(o1 As TestClass1) > > > > Dim ii As Integer = o1.x > > Dim jj As Integer = o1.y() > > > > End > > > > Jussi > > > > Of course: as you define an _unknown method in TestClass2, this method > is returned when accessing an unknown symbol (hence the error when you > don't call it). > > I will try to see if I can make the error more explicit by detecting > that special case. > > -- > Beno?t Minisini > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jussi.lahtinen at gmail.com Thu Aug 23 21:31:29 2018 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Thu, 23 Aug 2018 22:31:29 +0300 Subject: [Gambas-user] Bug In-Reply-To: References: Message-ID: OK, here is what caused the confusion. There is discrepancy in the behaviour depending whether JIT is used or not. When GB_NO_JIT = 0 everything runs fine (as set right now), but when JIT is in use it will report null object. I think JIT is working correctly. Jussi On Thu, Aug 23, 2018 at 6:09 PM Jussi Lahtinen wrote: > Phuuh... yes, my mistake. I didn't remember the unknown method. > > > Jussi > > On Thu, Aug 23, 2018 at 12:17 PM Beno?t Minisini wrote: > >> Le 23/08/2018 ? 03:22, Jussi Lahtinen a ?crit : >> > The sub is called with TestClass2 even when TestClass1 is asked. Also >> > this way there is no error message at all! >> > >> > Private Sub Crash(o1 As TestClass1) >> > >> > Dim ii As Integer = o1.x >> > Dim jj As Integer = o1.y() >> > >> > End >> > >> > Jussi >> > >> >> Of course: as you define an _unknown method in TestClass2, this method >> is returned when accessing an unknown symbol (hence the error when you >> don't call it). >> >> I will try to see if I can make the error more explicit by detecting >> that special case. >> >> -- >> Beno?t Minisini >> >> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: GambasTestercmd-0.10.12.tar.gz Type: application/gzip Size: 26999 bytes Desc: not available URL: From g4mba5 at gmail.com Thu Aug 23 21:53:55 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Thu, 23 Aug 2018 21:53:55 +0200 Subject: [Gambas-user] Bug In-Reply-To: References: Message-ID: Le 23/08/2018 ? 21:31, Jussi Lahtinen a ?crit?: > OK, here is what caused the confusion. There is discrepancy in the > behaviour depending whether JIT is used or not. > When GB_NO_JIT = 0 everything runs fine (as set right now), but when JIT > is in use it will report null object. I think JIT is working correctly. > > Jussi > No, the interpreter is fine. It's JIT that misbehaves. -- Beno?t Minisini From jussi.lahtinen at gmail.com Thu Aug 23 22:10:15 2018 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Thu, 23 Aug 2018 23:10:15 +0300 Subject: [Gambas-user] Bug In-Reply-To: References: Message-ID: So, overdriving applies down to the root of the branches of the inheritance tree. That is handy and I use it quite a lot to improve type safety (in contrast to using object type). Glad to hear no changes needed. Some aspects of OO are still bit confusing to me. Jussi On Thu, Aug 23, 2018 at 10:54 PM Beno?t Minisini wrote: > Le 23/08/2018 ? 21:31, Jussi Lahtinen a ?crit : > > OK, here is what caused the confusion. There is discrepancy in the > > behaviour depending whether JIT is used or not. > > When GB_NO_JIT = 0 everything runs fine (as set right now), but when JIT > > is in use it will report null object. I think JIT is working correctly. > > > > Jussi > > > > No, the interpreter is fine. It's JIT that misbehaves. > > -- > Beno?t Minisini > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From chrisml at deganius.de Sat Aug 25 12:28:29 2018 From: chrisml at deganius.de (Christof Thalhofer) Date: Sat, 25 Aug 2018 12:28:29 +0200 Subject: [Gambas-user] Release of Gambas 3.11.4 In-Reply-To: References: <1c279004-c052-aab1-0b9d-6cb4956aa0cd@gmail.com> Message-ID: Am 13.08.2018 um 15:50 schrieb PICCORO McKAY Lenz: > we need a mayor vision of the gambas usage, it's great but it's not only > mysql! ODBC is a standard interface to different databases. But each database vendor has to provide a ODBC-driver to use its database together with ODBC. So if Gambas ODBC works with Postgresql and Mysql as Beno?t says, it is a clear sign that Gambas ODBC is completely ok. You should ask the database vendor to provide a correct ODBC-driver for your OS. Here is a list of ODBC drivers for different DBs: http://www.unixodbc.org/drivers.html If something is buggy you normally can log SQL statments on the database side and so see the difference between what is sent by your program to the ODBC-driver and what commands the database got from the ODBC-driver. And this is what I think about ODBC: Is is awful and slow and mostly a pain in the ass. It is often a pain because the vendors of proprietary databases sometimes do strange things due to marketing strategies. As an alternative you could write a component for example like gb.db.sapdb by yourself, as long as the vendor keeps its api stable ... and you have the skills. Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: OpenPGP digital signature URL: From g4mba5 at gmail.com Sat Aug 25 12:47:42 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sat, 25 Aug 2018 12:47:42 +0200 Subject: [Gambas-user] Release of Gambas 3.11.4 In-Reply-To: References: <1c279004-c052-aab1-0b9d-6cb4956aa0cd@gmail.com> Message-ID: Le 25/08/2018 ? 12:28, Christof Thalhofer a ?crit?: > Am 13.08.2018 um 15:50 schrieb PICCORO McKAY Lenz: > >> we need a mayor vision of the gambas usage, it's great but it's not only >> mysql! > > ODBC is a standard interface to different databases. But each database > vendor has to provide a ODBC-driver to use its database together with ODBC. > > So if Gambas ODBC works with Postgresql and Mysql as Beno?t says, it is > a clear sign that Gambas ODBC is completely ok. You should ask the > database vendor to provide a correct ODBC-driver for your OS. Here is a > list of ODBC drivers for different DBs: > > http://www.unixodbc.org/drivers.html > > If something is buggy you normally can log SQL statments on the database > side and so see the difference between what is sent by your program to > the ODBC-driver and what commands the database got from the ODBC-driver. > > And this is what I think about ODBC: Is is awful and slow and mostly a > pain in the ass. It is often a pain because the vendors of proprietary > databases sometimes do strange things due to marketing strategies. > > As an alternative you could write a component for example like > gb.db.sapdb by yourself, as long as the vendor keeps its api stable ... > and you have the skills. > > > Alles Gute > > Christof Thalhofer > I would be more balanced. People must understand that SQL is a poor standard that does not cover everything you need to talk to database, and that ODBC, which is the same idea than the Gambas database component, is an interface that mostly tells you what ou are allowed or not allowed to do with the underlying database driver. Consequently, ODBC is as poor as SQL, and does not solve the differences between database systems at all (which gb.db tries at most as possible). I guess that some database systems miss some ODBC features that may make the Gambas ODBC driver misbehave. But without being able to connect to these databases, I can't guess. ZxMarce (I don't know his real name), tried to workaround the limitations of some ODBC drivers it encountered (see his comments in the source code). I don't know if this may fail sometimes for other ODBC drivers. I guess someone should start looking here. Regards, -- Beno?t Minisini From mckaygerhard at gmail.com Sun Aug 26 05:57:57 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Sat, 25 Aug 2018 23:57:57 -0400 Subject: [Gambas-user] Release of Gambas 3.11.4 In-Reply-To: References: <1c279004-c052-aab1-0b9d-6cb4956aa0cd@gmail.com> Message-ID: El s?b., 25 de ago. de 2018 a la(s) 06:29, Christof Thalhofer ( chrisml at deganius.de) escribi?: > So if Gambas ODBC works with Postgresql and Mysql as Beno?t says, it is > a clear sign that Gambas ODBC is completely ok. with gambas 3.11.0 does not work any ODBC, corrected in 3.11.2 after some of my reports with gambas 3.10.0 ALL ODBC drivers works perfectly! that resumes all! -------------- next part -------------- An HTML attachment was scrubbed... URL: From shordi at gmail.com Sun Aug 26 12:50:55 2018 From: shordi at gmail.com (=?UTF-8?Q?Jorge_Carri=C3=B3n?=) Date: Sun, 26 Aug 2018 12:50:55 +0200 Subject: [Gambas-user] Question about GridViews In-Reply-To: <2b5003b5-360c-7d8c-cded-9d130a86852e@osnanet.de> References: <2b5003b5-360c-7d8c-cded-9d130a86852e@osnanet.de> Message-ID: I have a control named TableEdit in Gamba's Farm that pretends to do that in a gridview filled with a Table from a Database. Depending the Field's type it automatically offers (in Edit mode, of course) a textbox, valuebox, checkbox or textArea). Also can attach a especified control (like dirbox, buttonbox, combobox, etc.) in a EditWith property who expect a collection with the Field Name-Control pair. Has wordwrap properties with row.height adaptative. Hope it helps. Best Regards. El mi?., 22 ago. 2018 a las 17:59, Rolf-Werner Eilert () escribi?: > Just a question... > > Is it possible to "attach" or "insert" other elements into a GridView cell? > > For instance, it might be nice to have a combobox in a GridView. Can I > add this to the GridView cell's .Data somehow? > > I have one program which uses TextLabels and ToolButtons above GridView > cells to simulate this to some extend, but I have to make them via > arrays of objects and have to control them so that they follow the grid > when it's scrolled etc. > > If they could be pinned to a grid cell, it would be easier to manage. > > Regards > Rolf > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From rwe-sse at osnanet.de Mon Aug 27 08:56:39 2018 From: rwe-sse at osnanet.de (Rolf-Werner Eilert) Date: Mon, 27 Aug 2018 08:56:39 +0200 Subject: [Gambas-user] Help offline Message-ID: The help server is offline this morning. I just wanted to look up something, no way. Checked the website, the pages are there but the database is down. When I am in holiday (summer holiday, mainly) I use to take my laptop with Gambas and code a bit. In the Swedish wilderness, internet only comes via mobile connection and is kinda unreliable at some times. So I stumbled over the "help is not available" problem ever so often. Couldn't we make offline help a simple add-in when downloading, such as an additional package, to get rid of this problem? Regards Rolf From rwe-sse at osnanet.de Mon Aug 27 11:10:18 2018 From: rwe-sse at osnanet.de (Rolf-Werner Eilert) Date: Mon, 27 Aug 2018 11:10:18 +0200 Subject: [Gambas-user] Reading screen into image/picture Message-ID: <5f1af88b-bd29-5221-2ee2-04cf17881220@osnanet.de> Is there a chance to read a small portion of the screen into an image or picture? What I am looking for is sort of a screenshot function. Thanks for any hint! Regards Rolf From g4mba5 at gmail.com Mon Aug 27 13:57:34 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Mon, 27 Aug 2018 13:57:34 +0200 Subject: [Gambas-user] Help offline In-Reply-To: References: Message-ID: Le 27/08/2018 ? 08:56, Rolf-Werner Eilert a ?crit?: > The help server is offline this morning. I just wanted to look up > something, no way. Checked the website, the pages are there but the > database is down. > > When I am in holiday (summer holiday, mainly) I use to take my laptop > with Gambas and code a bit. In the Swedish wilderness, internet only > comes via mobile connection and is kinda unreliable at some times. So I > stumbled over the "help is not available" problem ever so often. I restarted the web server, and I finally updated the offline help with the last version. > > Couldn't we make offline help a simple add-in when downloading, such as > an additional package, to get rid of this problem? I don't understand what you mean. I plan to update the offline help automatically (every day or every week). Regards, -- Beno?t Minisini From g4mba5 at gmail.com Mon Aug 27 13:58:42 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Mon, 27 Aug 2018 13:58:42 +0200 Subject: [Gambas-user] Update of the bug tracker Message-ID: Hi, I'm currently updating the bugtracker with the last version of the softare it is based on (the application I develop for my company). So its look will be weird until I fix everything. Sorry for the inconvenience. -- Beno?t Minisini From shordi at gmail.com Mon Aug 27 18:04:11 2018 From: shordi at gmail.com (=?UTF-8?Q?Jorge_Carri=C3=B3n?=) Date: Mon, 27 Aug 2018 18:04:11 +0200 Subject: [Gambas-user] A string[].sort issue Message-ID: Hello I have problems ordering a string [] with the conventions of the Spanish language. It seems that, depending to the predefined constants chosen, it places the accented letters (?????) at the end of the non-accented letters or, at most, at the end of the words with that letter. It also seems to ignore the white space character inside the words. Can someone confirm if it's my computer or is it a language thing or is it a Gambas bug? I attach a small project that illustrates what I want to say. [image: Captura de pantalla de 2018-08-27 18-01-40.png] regards [System] Gambas=3.11.4 OperatingSystem=Linux Kernel=4.15.0-33-generic Architecture=x86_64 Distribution=Linux Mint 19 Tara Desktop=CINNAMON Theme=Gtk Language=es_ES.UTF-8 Memory=16001M [Libraries] Cairo=libcairo.so.2.11510.0 Curl=libcurl.so.4.5.0 DBus=libdbus-1.so.3.19.4 GStreamer=libgstreamer-1.0.so.0.1401.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] CINNAMON_VERSION=3.8.8 DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus DEFAULTS_PATH=/usr/share/gconf/cinnamon.default.path DESKTOP_SESSION=cinnamon DISPLAY=:0 GB_GUI=gb.qt4 GDMSESSION=cinnamon GDM_LANG=es_ES GIO_LAUNCHED_DESKTOP_FILE=/.cinnamon/panel-launchers/cinnamon-custom-launcher-1.desktop GIO_LAUNCHED_DESKTOP_FILE_PID=5296 GJS_DEBUG_OUTPUT=stderr GJS_DEBUG_TOPICS=JS ERROR;JS LOG GNOME_DESKTOP_SESSION_ID=this-is-deprecated GPG_AGENT_INFO=/run/user/1000/gnupg/S.gpg-agent:0:1 GTK_MODULES=gail:atk-bridge GTK_OVERLAY_SCROLLING=1 HOME= LANG=es_ES.UTF-8 LANGUAGE=es_ES.UTF-8 LOGNAME= MANDATORY_PATH=/usr/share/gconf/cinnamon.mandatory.path PATH=.:/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games PWD= QT_ACCESSIBILITY=1 QT_QPA_PLATFORMTHEME=qt5ct SESSION_MANAGER=local/:@/tmp/.ICE-unix/1259,unix/:/tmp/.ICE-unix/1259 SHELL=/bin/bash SHLVL=0 SSH_AGENT_PID=1323 SSH_AUTH_SOCK=/run/user/1000/keyring/ssh TZ=:/etc/localtime USER= XAUTHORITY=/.Xauthority XDG_CONFIG_DIRS=/etc/xdg/xdg-cinnamon:/etc/xdg XDG_CURRENT_DESKTOP=X-Cinnamon XDG_DATA_DIRS=/usr/share/cinnamon:/usr/share/gnome:/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/local/share:/usr/share XDG_GREETER_DATA_DIR=/var/lib/lightdm-data/ XDG_RUNTIME_DIR=/run/user/1000 XDG_SEAT=seat0 XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0 XDG_SESSION_DESKTOP=cinnamon XDG_SESSION_ID=c2 XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0 XDG_SESSION_TYPE=x11 XDG_VTNR=7 -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Captura de pantalla de 2018-08-27 18-01-40.png Type: image/png Size: 46348 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Sorting-0.0.1.tar.gz Type: application/gzip Size: 11699 bytes Desc: not available URL: From t.lee.davidson at gmail.com Mon Aug 27 18:05:07 2018 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Mon, 27 Aug 2018 12:05:07 -0400 Subject: [Gambas-user] Reading screen into image/picture In-Reply-To: <5f1af88b-bd29-5221-2ee2-04cf17881220@osnanet.de> References: <5f1af88b-bd29-5221-2ee2-04cf17881220@osnanet.de> Message-ID: <10347432-56a4-c7ad-298c-8651f641a55a@gmail.com> Shell out to Scrot or ImageMagick's Import utility ? ___ Lee On 08/27/2018 05:10 AM, Rolf-Werner Eilert wrote: > Is there a chance to read a small portion of the screen into an image or picture? > > What I am looking for is sort of a screenshot function. > > Thanks for any hint! > > Regards > Rolf > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- From t.lee.davidson at gmail.com Mon Aug 27 18:08:44 2018 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Mon, 27 Aug 2018 12:08:44 -0400 Subject: [Gambas-user] Help offline In-Reply-To: References: Message-ID: <30590026-3539-4b6a-7f15-72a8df735317@gmail.com> On 08/27/2018 07:57 AM, Beno?t Minisini wrote: > Le 27/08/2018 ? 08:56, Rolf-Werner Eilert a ?crit?: [snip] >> >> Couldn't we make offline help a simple add-in when downloading, such as an additional package, to get rid of this problem? > > I don't understand what you mean. I plan to update the offline help automatically (every day or every week). > If I recall correctly, a while back I had to manually install the offline help. Is this done automatically now? ___ Lee From taboege at gmail.com Mon Aug 27 18:12:24 2018 From: taboege at gmail.com (Tobias Boege) Date: Mon, 27 Aug 2018 18:12:24 +0200 Subject: [Gambas-user] Reading screen into image/picture In-Reply-To: <5f1af88b-bd29-5221-2ee2-04cf17881220@osnanet.de> References: <5f1af88b-bd29-5221-2ee2-04cf17881220@osnanet.de> Message-ID: <20180827161224.GD3358@highrise.localdomain> On Mon, 27 Aug 2018, Rolf-Werner Eilert wrote: > Is there a chance to read a small portion of the screen into an image or > picture? > > What I am looking for is sort of a screenshot function. > The GUI components have a Desktop.Screenshot method. -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From t.lee.davidson at gmail.com Mon Aug 27 18:35:15 2018 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Mon, 27 Aug 2018 12:35:15 -0400 Subject: [Gambas-user] A string[].sort issue In-Reply-To: References: Message-ID: <111fb67f-5dad-524b-332d-13b09135cb31@gmail.com> I got the same Ordered result as you did. ___ Lee [System] Gambas=3.11.90 4145ccd2f (master) OperatingSystem=Linux Kernel=4.4.143-65-default Architecture=x86_64 Distribution=openSUSE Leap 42.3 Desktop=KDE5 Theme=QtCurve Language=en_US.UTF-8 Memory=3951M On 08/27/2018 12:04 PM, Jorge Carri?n wrote: > Hello > I have problems ordering a string [] with the conventions of the Spanish language. It seems that, depending to the predefined > constants chosen, it places the accented letters (?????) at the end of the non-accented letters or, at most, at the end of the > words with that letter. It also seems to ignore the white space character inside the words. Can someone confirm if it's my > computer or is it a language thing or is it a Gambas bug? > I attach a small project that illustrates what I want to say. From rwe-sse at osnanet.de Mon Aug 27 19:14:08 2018 From: rwe-sse at osnanet.de (Rolf-Werner Eilert) Date: Mon, 27 Aug 2018 19:14:08 +0200 Subject: [Gambas-user] Reading screen into image/picture In-Reply-To: <10347432-56a4-c7ad-298c-8651f641a55a@gmail.com> References: <5f1af88b-bd29-5221-2ee2-04cf17881220@osnanet.de> <10347432-56a4-c7ad-298c-8651f641a55a@gmail.com> Message-ID: <87361e06-9f2e-ebd6-6eca-39491e7cfaa8@osnanet.de> Am 27.08.2018 um 18:05 schrieb T Lee Davidson: > Shell out to Scrot or ImageMagick's Import utility ? Ok, but might be too slow for what I intend to do. Anyway, thanks so much! Regards Rolf From rwe-sse at osnanet.de Mon Aug 27 19:14:40 2018 From: rwe-sse at osnanet.de (Rolf-Werner Eilert) Date: Mon, 27 Aug 2018 19:14:40 +0200 Subject: [Gambas-user] Reading screen into image/picture In-Reply-To: <20180827161224.GD3358@highrise.localdomain> References: <5f1af88b-bd29-5221-2ee2-04cf17881220@osnanet.de> <20180827161224.GD3358@highrise.localdomain> Message-ID: <48be8cbf-8932-6ab7-7041-5dad9446a38b@osnanet.de> Am 27.08.2018 um 18:12 schrieb Tobias Boege: > On Mon, 27 Aug 2018, Rolf-Werner Eilert wrote: >> Is there a chance to read a small portion of the screen into an image or >> picture? >> >> What I am looking for is sort of a screenshot function. >> > > The GUI components have a Desktop.Screenshot method. > Yes, that could be the solution for me, I'll check for that tomorrow. Regards Rolf From vuott at tiscali.it Mon Aug 27 21:26:35 2018 From: vuott at tiscali.it (vuott at tiscali.it) Date: Mon, 27 Aug 2018 21:26:35 +0200 Subject: [Gambas-user] Reading screen into image/picture In-Reply-To: <20180827161224.GD3358@highrise.localdomain> References: <5f1af88b-bd29-5221-2ee2-04cf17881220@osnanet.de> <20180827161224.GD3358@highrise.localdomain> Message-ID: <49d60c60b96d495314c1207bc93e0b7a@tiscali.it> .GetScreenshot( ) Method of "DesktpWindow" Class is similar. vuott Il 27.08.2018 18:12 Tobias Boege ha scritto: > On Mon, 27 Aug 2018, Rolf-Werner Eilert wrote: > >> Is there a chance to read a small portion of the screen into an image or picture? What I am looking for is sort of a screenshot function. > > The GUI components have a Desktop.Screenshot method. > > -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk ----[ Gambas mailing-list is hosted by https://www.hostsharing.net [1] ]---- Con MyOpen hai Giga, SMS e i minuti che vuoi da 3? al mese, per sempre. Cambi gratis quando e come vuoi e in pi? hai 10? di credito omaggio! SCOPRI DI PIU? http://tisca.li/myopen -------------- next part -------------- An HTML attachment was scrubbed... URL: From vuott at tiscali.it Tue Aug 28 12:27:51 2018 From: vuott at tiscali.it (vuott at tiscali.it) Date: Tue, 28 Aug 2018 12:27:51 +0200 Subject: [Gambas-user] Reading screen into image/picture In-Reply-To: <49d60c60b96d495314c1207bc93e0b7a@tiscali.it> References: <5f1af88b-bd29-5221-2ee2-04cf17881220@osnanet.de> <20180827161224.GD3358@highrise.localdomain> <49d60c60b96d495314c1207bc93e0b7a@tiscali.it> Message-ID: <27d1d2612bdb76d45f747b35c9c3804e@tiscali.it> You could also use some resources from the gb.media component. Private pl As MediaPipeline Public Sub Form_Open() Dim src, sca, con, png, snk As MediaControl pl = New MediaPipeline src = New MediaControl(pl, "ximagesrc") src["xid"] = CLong(0) ' _Imposta la dimensione della schermata:_ src["startx"] = 0 src["starty"] = 0 src["endx"] = Screen.W src["endy"] = Screen.H src["use-damage"] = False sca = New MediaControl(pl, "videoscale") sca["method"] = 0 con = New MediaControl(pl, "videoconvert") png = New MediaControl(pl, "pngenc") snk = New MediaControl(pl, "filesink") snk["location"] = "/tmp/screenshot.png" src.LinkTo(sca) sca.LinkTo(con) con.LinkTo(png) png.LinkTo(snk) End Public Sub Button1_Click() Wait 2 ' _Take a "screenshot":_ pl.Play() pl.Stop() End regards vuott Il 27.08.2018 21:26 vuott at tiscali.it ha scritto: > .GetScreenshot( ) Method of "DesktpWindow" Class is similar. > vuott > > Il 27.08.2018 18:12 Tobias Boege ha scritto: > >> On Mon, 27 Aug 2018, Rolf-Werner Eilert wrote: >> >>> Is there a chance to read a small portion of the screen into an image or picture? What I am looking for is sort of a screenshot function. >> >> The GUI components have a Desktop.Screenshot method. >> >> -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk ----[ Gambas mailing-list is hosted by https://www.hostsharing.net [1] ]---- > > Con MyOpen hai Giga, SMS e i minuti che vuoi da 3EUR al mese, per sempre. Cambi gratis quando e come vuoi e in pi? hai 10EUR di credito omaggio! > SCOPRI DI PIU' http://tisca.li/myopen [2] Con MyOpen hai Giga, SMS e i minuti che vuoi da 3? al mese, per sempre. Cambi gratis quando e come vuoi e in pi? hai 10? di credito omaggio! SCOPRI DI PIU? http://tisca.li/myopen -------------- next part -------------- An HTML attachment was scrubbed... URL: From rwe-sse at osnanet.de Tue Aug 28 15:40:31 2018 From: rwe-sse at osnanet.de (Rolf-Werner Eilert) Date: Tue, 28 Aug 2018 15:40:31 +0200 Subject: [Gambas-user] Reading screen into image/picture In-Reply-To: <27d1d2612bdb76d45f747b35c9c3804e@tiscali.it> References: <5f1af88b-bd29-5221-2ee2-04cf17881220@osnanet.de> <20180827161224.GD3358@highrise.localdomain> <49d60c60b96d495314c1207bc93e0b7a@tiscali.it> <27d1d2612bdb76d45f747b35c9c3804e@tiscali.it> Message-ID: <0f9de4ea-a33b-09de-c04d-1b4d4128f01b@osnanet.de> Indeed I had this idea, but it would be too much. I was thinking of a very fast and simple way to take a small portion of the screen as a still photo. Nevertheless,thank you for pointing me to this! Rolf Am 28.08.2018 um 12:27 schrieb vuott at tiscali.it: > You could also use some resources from the gb.media component. > > Private pl As MediaPipeline > > > Public Sub Form_Open() > > Dim src, sca, con, png, snk As MediaControl > > pl = New MediaPipeline > src = New MediaControl(pl, "ximagesrc") > > src["xid"] = CLong(0) > ' /Imposta la dimensione della schermata:/ > src["startx"] = 0 > src["starty"] = 0 > src["endx"] = Screen.W > src["endy"] = Screen.H > src["use-damage"] = False > sca = New MediaControl(pl, "videoscale") > sca["method"] = 0 > con = New MediaControl(pl, "videoconvert") > png = New MediaControl(pl, "pngenc") > snk = New MediaControl(pl, "filesink") > snk["location"] = "/tmp/screenshot.png" > > src.LinkTo(sca) > sca.LinkTo(con) > con.LinkTo(png) > png.LinkTo(snk) > > End > > > Public Sub Button1_Click() > > Wait 2 > > ' /Take a "screenshot":/ > pl.Play() > > pl.Stop() > > End > > > > > regards > vuott > > > > > > > > Il 27.08.2018 21:26 vuott at tiscali.it ha scritto: > >> .GetScreenshot( ) Method of "DesktpWindow" Class is similar. >> vuott >> >> Il 27.08.2018 18:12 Tobias Boege ha scritto: >> >> On Mon, 27 Aug 2018, Rolf-Werner Eilert wrote: >> >> Is there a chance to read a small portion of the screen into >> an image or picture? What I am looking for is sort of a >> screenshot function. >> >> The GUI components have a Desktop.Screenshot method. >> >> -- "There's an old saying: Don't change anything... ever!" -- Mr. >> Monk ----[ Gambas mailing-list is hosted by >> https://www.hostsharing.net ]---- >> >> >> >> >> Con MyOpen hai Giga, SMS e i minuti che vuoi da 3? al mese, per >> sempre. Cambi gratis quando e come vuoi e in pi? hai 10? di credito >> omaggio! >> SCOPRI DI PIU? http://tisca.li/myopen >> > > > > Con MyOpen hai Giga, SMS e i minuti che vuoi da 3? al mese, per sempre. > Cambi gratis quando e come vuoi e in pi? hai 10? di credito omaggio! > SCOPRI DI PIU? http://tisca.li/myopen > > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > From jussi.lahtinen at gmail.com Wed Aug 29 01:15:50 2018 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Wed, 29 Aug 2018 02:15:50 +0300 Subject: [Gambas-user] JIT crash In-Reply-To: References: <95b439d6-b3b0-0b90-d2e4-42b633a70da7@gmail.com> <55f0285f-05d4-94bc-2be3-36a6f445f101@gmail.com> <229aed71-d3d6-cb54-17b4-0ebdb0203cf8@gmail.com> Message-ID: Benoit, are you working on this crash (attachment)? Just checking, because you are usually very quick... Jussi On Thu, Aug 23, 2018 at 1:11 AM Jussi Lahtinen wrote: > Here is some fine code, which produces crash. See CrashJIT6 sub (moreover > how it is called) from the attached project. > > Jussi > > On Wed, Aug 22, 2018 at 11:08 PM Jussi Lahtinen > wrote: > >> Heh! Yes, I'm glad to see it works! I try my best to figure out weird >> things for the test. >> Though I am missing something more obvious and practical that triggers a >> bug... I'll figure it out. >> >> Jussi >> >> On Wed, Aug 22, 2018 at 10:57 PM Beno?t Minisini >> wrote: >> >>> Le 22/08/2018 ? 21:41, Jussi Lahtinen a ?crit : >>> > Yes! >>> > I wish I could be more helpful, than just hunting bugs. It's just that >>> I >>> > haven't done that kind of programming and the learning curve seems >>> quite >>> > steep. >>> > You have fixed the bug long before I have understood what is going >>> on... >>> > >>> > Jussi >>> >>> It's already very helpful to write awful code in GambasTester that makes >>> the JIT compiler misbehave. :-) >>> >>> Regards, >>> >>> -- >>> Beno?t Minisini >>> >>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >>> >> -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: GambasTestercmd-0.10.12.tar.gz Type: application/gzip Size: 26976 bytes Desc: not available URL: From g4mba5 at gmail.com Wed Aug 29 02:22:51 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Wed, 29 Aug 2018 02:22:51 +0200 Subject: [Gambas-user] Help offline In-Reply-To: <30590026-3539-4b6a-7f15-72a8df735317@gmail.com> References: <30590026-3539-4b6a-7f15-72a8df735317@gmail.com> Message-ID: Le 27/08/2018 ? 18:08, T Lee Davidson a ?crit?: > On 08/27/2018 07:57 AM, Beno?t Minisini wrote: >> Le 27/08/2018 ? 08:56, Rolf-Werner Eilert a ?crit?: > [snip] >>> >>> Couldn't we make offline help a simple add-in when downloading, such as an additional package, to get rid of this problem? >> >> I don't understand what you mean. I plan to update the offline help automatically (every day or every week). >> > > If I recall correctly, a while back I had to manually install the offline help. Is this done automatically now? > > > ___ > Lee > Hi, From now on, the offline documentation is automatically generated every sunday at midnight (if it has been modified since). You can download it from the IDE configuration dialog, in the help tab. You have a red message when an updated documentation is detected. You still have to trigger the download manually by clicking on the button. I don't want it to be automatic, I'm afraid of too many downloads on the server. :-) Enjoy. -- Beno?t Minisini From chrisml at deganius.de Wed Aug 29 09:51:25 2018 From: chrisml at deganius.de (Christof Thalhofer) Date: Wed, 29 Aug 2018 09:51:25 +0200 Subject: [Gambas-user] Help offline In-Reply-To: References: <30590026-3539-4b6a-7f15-72a8df735317@gmail.com> Message-ID: <12501bea-15f1-45ba-9e9b-a318f8c49cf5@deganius.de> Am 29.08.2018 um 02:22 schrieb Beno?t Minisini: > You still have to trigger the download manually by clicking on the > button. I don't want it to be automatic, I'm afraid of too many > downloads on the server. :-) > > Enjoy. Currently I have a lot to do, maybe until the end of this year. But after that we could think about transferring the Gambas Website to HS where the mailinglist is hosted. Maybe it would also be cool to ship wiki.tar.bz2 as a distribution package like "gambas3-doc" or "gambas3-help" so that the dl-rates were not too heavy. Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: OpenPGP digital signature URL: From g4mba5 at gmail.com Wed Aug 29 10:14:31 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Wed, 29 Aug 2018 10:14:31 +0200 Subject: [Gambas-user] Help offline In-Reply-To: <12501bea-15f1-45ba-9e9b-a318f8c49cf5@deganius.de> References: <30590026-3539-4b6a-7f15-72a8df735317@gmail.com> <12501bea-15f1-45ba-9e9b-a318f8c49cf5@deganius.de> Message-ID: <69e63461-c7c9-46b4-7fb5-233309836be1@gmail.com> Le 29/08/2018 ? 09:51, Christof Thalhofer a ?crit?: > Am 29.08.2018 um 02:22 schrieb Beno?t Minisini: > >> You still have to trigger the download manually by clicking on the >> button. I don't want it to be automatic, I'm afraid of too many >> downloads on the server. :-) >> >> Enjoy. > > Currently I have a lot to do, maybe until the end of this year. But > after that we could think about transferring the Gambas Website to HS > where the mailinglist is hosted. Yep. > > Maybe it would also be cool to ship wiki.tar.bz2 as a distribution > package like "gambas3-doc" or "gambas3-help" so that the dl-rates were > not too heavy. Otherwise I can put the wiki behind CloudFlare. Regards, -- Beno?t Minisini From g4mba5 at gmail.com Wed Aug 29 11:25:46 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Wed, 29 Aug 2018 11:25:46 +0200 Subject: [Gambas-user] JIT crash In-Reply-To: References: <95b439d6-b3b0-0b90-d2e4-42b633a70da7@gmail.com> <55f0285f-05d4-94bc-2be3-36a6f445f101@gmail.com> <229aed71-d3d6-cb54-17b4-0ebdb0203cf8@gmail.com> Message-ID: <3d4139f5-a553-0409-d43f-6218711264a8@gmail.com> Le 29/08/2018 ? 01:15, Jussi Lahtinen a ?crit?: > Benoit, are you working on this crash (attachment)? Just checking, > because you are usually very quick... > > > Jussi The crash is fixed in commit https://gitlab.com/gambas/gambas/commit/7a680d738b1c195a1beca72c3be79283e460a617, but there is another one. -- Beno?t Minisini From bagonergi at gmail.com Wed Aug 29 11:49:10 2018 From: bagonergi at gmail.com (Gianluigi) Date: Wed, 29 Aug 2018 11:49:10 +0200 Subject: [Gambas-user] Error on PPA for daily Message-ID: Hi Sebastian, on Ubuntu 18.04.1 installing Gambas3 from ppa Daily (gambas-team/gambas-daily), you get it mistake for missing component gb.jit. >From ppa stable (gambas-team/gambas3) works everything (3.11.4). Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From mckaygerhard at gmail.com Wed Aug 29 14:15:44 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Wed, 29 Aug 2018 08:15:44 -0400 Subject: [Gambas-user] Help offline In-Reply-To: References: Message-ID: 2018-08-27 7:57 GMT-04:00 Beno?t Minisini : > Couldn't we make offline help a simple add-in when downloading, such as an >> additional package, to get rid of this problem? >> > > I don't understand what you mean. I plan to update the offline help > automatically (every day or every week). > i ask for that mechanish too, the current offline help are not usable at all! as example, we have the examples, now in gambas farm! if we are offline, cannot get any example, same problem with offline-help now you understand benoit? constants update are a partial solution! same problem we have with the examples, due now are "online" at gambas farm! > > Regards, > > -- > Beno?t Minisini > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mckaygerhard at gmail.com Wed Aug 29 17:08:47 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Wed, 29 Aug 2018 11:08:47 -0400 Subject: [Gambas-user] Update of the bug tracker In-Reply-To: References: Message-ID: i think it looks very nice, clean, simple and plain! permits to me focus on the information! Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2018-08-27 7:58 GMT-04:00 Beno?t Minisini : > Hi, > > I'm currently updating the bugtracker with the last version of the softare > it is based on (the application I develop for my company). > > So its look will be weird until I fix everything. > > Sorry for the inconvenience. > > -- > Beno?t Minisini > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From charlie at cogier.com Wed Aug 29 17:57:23 2018 From: charlie at cogier.com (Charlie Ogier) Date: Wed, 29 Aug 2018 16:57:23 +0100 Subject: [Gambas-user] A string[].sort issue In-Reply-To: References: Message-ID: <43c2deaf-954a-6f47-81df-a81fc3b59647@cogier.com> Hi Jorge, Your computer is fine. I also had the same problem when I ran your program on Mint 19 (Language=en_GB.UTF-8). I tried several ideas to sort the problem. Finally I came up with this solution, see attached. Charlie Translation by https://www.deepl.com Hola Jorge, Tu computadora est? bien. Tambi?n tuve el mismo problema cuando ejecut? su programa en Mint 19 (Language=en_GB.UTF-8). Intent? varias ideas para solucionar el problema. Finalmente se me ocurri? esta soluci?n, ver adjunto. Charlie On 27/08/18 17:04, Jorge Carri?n wrote: > Hello > I have problems ordering a string [] with the conventions of the > Spanish language. It seems that, depending to the predefined constants > chosen, it places the accented letters (?????) at the end of the > non-accented letters or, at most, at the end of the words with that > letter. It also seems to ignore the white space character inside the > words. Can someone confirm if it's my computer or is it a language > thing or is it a Gambas bug? > I attach a small project that illustrates what I want to say. > Captura de pantalla de 2018-08-27 18-01-40.png > > regards > > [System] > Gambas=3.11.4 > OperatingSystem=Linux > Kernel=4.15.0-33-generic > Architecture=x86_64 > Distribution=Linux Mint 19 Tara > Desktop=CINNAMON > Theme=Gtk > Language=es_ES.UTF-8 > Memory=16001M > > [Libraries] > Cairo=libcairo.so.2.11510.0 > Curl=libcurl.so.4.5.0 > DBus=libdbus-1.so.3.19.4 > GStreamer=libgstreamer-1.0.so.0.1401.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] > CINNAMON_VERSION=3.8.8 > DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus > DEFAULTS_PATH=/usr/share/gconf/cinnamon.default.path > DESKTOP_SESSION=cinnamon > DISPLAY=:0 > GB_GUI=gb.qt4 > GDMSESSION=cinnamon > GDM_LANG=es_ES > GIO_LAUNCHED_DESKTOP_FILE=/.cinnamon/panel-launchers/cinnamon-custom-launcher-1.desktop > GIO_LAUNCHED_DESKTOP_FILE_PID=5296 > GJS_DEBUG_OUTPUT=stderr > GJS_DEBUG_TOPICS=JS ERROR;JS LOG > GNOME_DESKTOP_SESSION_ID=this-is-deprecated > GPG_AGENT_INFO=/run/user/1000/gnupg/S.gpg-agent:0:1 > GTK_MODULES=gail:atk-bridge > GTK_OVERLAY_SCROLLING=1 > HOME= > LANG=es_ES.UTF-8 > LANGUAGE=es_ES.UTF-8 > LOGNAME= > MANDATORY_PATH=/usr/share/gconf/cinnamon.mandatory.path > PATH=.:/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games > PWD= > QT_ACCESSIBILITY=1 > QT_QPA_PLATFORMTHEME=qt5ct > SESSION_MANAGER=local/:@/tmp/.ICE-unix/1259,unix/:/tmp/.ICE-unix/1259 > SHELL=/bin/bash > SHLVL=0 > SSH_AGENT_PID=1323 > SSH_AUTH_SOCK=/run/user/1000/keyring/ssh > TZ=:/etc/localtime > USER= > XAUTHORITY=/.Xauthority > XDG_CONFIG_DIRS=/etc/xdg/xdg-cinnamon:/etc/xdg > XDG_CURRENT_DESKTOP=X-Cinnamon > XDG_DATA_DIRS=/usr/share/cinnamon:/usr/share/gnome:/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/local/share:/usr/share > XDG_GREETER_DATA_DIR=/var/lib/lightdm-data/ > XDG_RUNTIME_DIR=/run/user/1000 > XDG_SEAT=seat0 > XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0 > XDG_SESSION_DESKTOP=cinnamon > XDG_SESSION_ID=c2 > XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0 > XDG_SESSION_TYPE=x11 > XDG_VTNR=7 > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Sorting_061.jpg Type: image/jpeg Size: 71372 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Captura de pantalla de 2018-08-27 18-01-40.png Type: image/png Size: 46348 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Sorting.tar.gz Type: application/gzip Size: 14369 bytes Desc: not available URL: From g4mba5 at gmail.com Wed Aug 29 19:58:39 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Wed, 29 Aug 2018 19:58:39 +0200 Subject: [Gambas-user] A string[].sort issue In-Reply-To: References: Message-ID: Le 27/08/2018 ? 18:04, Jorge Carri?n a ?crit?: > Hello > I have problems ordering a string [] with the conventions of the Spanish > language. It seems that, depending to the predefined constants chosen, > it places the accented letters (?????) at the end of the non-accented > letters or, at most, at the end of the words with that letter. It also > seems to ignore the white space character inside the words. Can someone > confirm if it's my computer or is it a language thing or is it a Gambas bug? > I attach a small project that illustrates what I want to say. > Captura de pantalla de 2018-08-27 18-01-40.png > > regards > When you sort with gb.Language, you are using the comparison function of the glibc that is based on the "collation" of the current language. Apparently spaces are ignored (and I get the same sort with the French language), but I can't do anything against that. It's the glibc! Regards, -- Beno?t Minisini From shordi at gmail.com Wed Aug 29 21:13:11 2018 From: shordi at gmail.com (=?UTF-8?Q?Jorge_Carri=C3=B3n?=) Date: Wed, 29 Aug 2018 21:13:11 +0200 Subject: [Gambas-user] A string[].sort issue In-Reply-To: <43c2deaf-954a-6f47-81df-a81fc3b59647@cogier.com> References: <43c2deaf-954a-6f47-81df-a81fc3b59647@cogier.com> Message-ID: Thank you Charlie I've wrote my own solution for the issue (and got another from gambas-es.org forum), but your's is about 7 times faster than mine! I think I'll use yours. Unfortunately both solutions have to provide a list of special characters of the language, so they are not valid standard solutions for any language. Best Regards El mi?., 29 ago. 2018 a las 17:58, Charlie Ogier () escribi?: > Hi Jorge, > > Your computer is fine. I also had the same problem when I ran your program > on Mint 19 (Language=en_GB.UTF-8). I tried several ideas to sort the > problem. Finally I came up with this solution, see attached. > > Charlie > > Translation by https://www.deepl.com > > Hola Jorge, > > Tu computadora est? bien. Tambi?n tuve el mismo problema cuando ejecut? su > programa en Mint 19 (Language=en_GB.UTF-8). Intent? varias ideas para > solucionar el problema. Finalmente se me ocurri? esta soluci?n, ver adjunto. > > Charlie > > > > On 27/08/18 17:04, Jorge Carri?n wrote: > > Hello > I have problems ordering a string [] with the conventions of the Spanish > language. It seems that, depending to the predefined constants chosen, it > places the accented letters (?????) at the end of the non-accented letters > or, at most, at the end of the words with that letter. It also seems to > ignore the white space character inside the words. Can someone confirm if > it's my computer or is it a language thing or is it a Gambas bug? > I attach a small project that illustrates what I want to say. > [image: Captura de pantalla de 2018-08-27 18-01-40.png] > > regards > > [System] > Gambas=3.11.4 > OperatingSystem=Linux > Kernel=4.15.0-33-generic > Architecture=x86_64 > Distribution=Linux Mint 19 Tara > Desktop=CINNAMON > Theme=Gtk > Language=es_ES.UTF-8 > Memory=16001M > > [Libraries] > Cairo=libcairo.so.2.11510.0 > Curl=libcurl.so.4.5.0 > DBus=libdbus-1.so.3.19.4 > GStreamer=libgstreamer-1.0.so.0.1401.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] > CINNAMON_VERSION=3.8.8 > DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus > DEFAULTS_PATH=/usr/share/gconf/cinnamon.default.path > DESKTOP_SESSION=cinnamon > DISPLAY=:0 > GB_GUI=gb.qt4 > GDMSESSION=cinnamon > GDM_LANG=es_ES > > GIO_LAUNCHED_DESKTOP_FILE=/.cinnamon/panel-launchers/cinnamon-custom-launcher-1.desktop > GIO_LAUNCHED_DESKTOP_FILE_PID=5296 > GJS_DEBUG_OUTPUT=stderr > GJS_DEBUG_TOPICS=JS ERROR;JS LOG > GNOME_DESKTOP_SESSION_ID=this-is-deprecated > GPG_AGENT_INFO=/run/user/1000/gnupg/S.gpg-agent:0:1 > GTK_MODULES=gail:atk-bridge > GTK_OVERLAY_SCROLLING=1 > HOME= > LANG=es_ES.UTF-8 > LANGUAGE=es_ES.UTF-8 > LOGNAME= > MANDATORY_PATH=/usr/share/gconf/cinnamon.mandatory.path > > PATH=.:/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games > PWD= > QT_ACCESSIBILITY=1 > QT_QPA_PLATFORMTHEME=qt5ct > > SESSION_MANAGER=local/:@/tmp/.ICE-unix/1259,unix/:/tmp/.ICE-unix/1259 > SHELL=/bin/bash > SHLVL=0 > SSH_AGENT_PID=1323 > SSH_AUTH_SOCK=/run/user/1000/keyring/ssh > TZ=:/etc/localtime > USER= > XAUTHORITY=/.Xauthority > XDG_CONFIG_DIRS=/etc/xdg/xdg-cinnamon:/etc/xdg > XDG_CURRENT_DESKTOP=X-Cinnamon > > XDG_DATA_DIRS=/usr/share/cinnamon:/usr/share/gnome:/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/local/share:/usr/share > XDG_GREETER_DATA_DIR=/var/lib/lightdm-data/ > XDG_RUNTIME_DIR=/run/user/1000 > XDG_SEAT=seat0 > XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0 > XDG_SESSION_DESKTOP=cinnamon > XDG_SESSION_ID=c2 > XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0 > XDG_SESSION_TYPE=x11 > XDG_VTNR=7 > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Sorting_061.jpg Type: image/jpeg Size: 71372 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Captura de pantalla de 2018-08-27 18-01-40.png Type: image/png Size: 46348 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Captura de pantalla de 2018-08-27 18-01-40.png Type: image/png Size: 46348 bytes Desc: not available URL: From shordi at gmail.com Wed Aug 29 21:16:29 2018 From: shordi at gmail.com (=?UTF-8?Q?Jorge_Carri=C3=B3n?=) Date: Wed, 29 Aug 2018 21:16:29 +0200 Subject: [Gambas-user] A string[].sort issue In-Reply-To: References: Message-ID: Ok. Thanks for the answer Benoit. I have coded a solution to the problem (and got another one better on this list!). Gambas rules! Best Regards El mi?., 29 ago. 2018 a las 19:59, Beno?t Minisini () escribi?: > Le 27/08/2018 ? 18:04, Jorge Carri?n a ?crit : > > Hello > > I have problems ordering a string [] with the conventions of the Spanish > > language. It seems that, depending to the predefined constants chosen, > > it places the accented letters (?????) at the end of the non-accented > > letters or, at most, at the end of the words with that letter. It also > > seems to ignore the white space character inside the words. Can someone > > confirm if it's my computer or is it a language thing or is it a Gambas > bug? > > I attach a small project that illustrates what I want to say. > > Captura de pantalla de 2018-08-27 18-01-40.png > > > > regards > > > > When you sort with gb.Language, you are using the comparison function of > the glibc that is based on the "collation" of the current language. > > Apparently spaces are ignored (and I get the same sort with the French > language), but I can't do anything against that. It's the glibc! > > Regards, > > -- > Beno?t Minisini > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From chrisml at deganius.de Thu Aug 30 17:46:12 2018 From: chrisml at deganius.de (Christof Thalhofer) Date: Thu, 30 Aug 2018 17:46:12 +0200 Subject: [Gambas-user] Help offline In-Reply-To: <69e63461-c7c9-46b4-7fb5-233309836be1@gmail.com> References: <30590026-3539-4b6a-7f15-72a8df735317@gmail.com> <12501bea-15f1-45ba-9e9b-a318f8c49cf5@deganius.de> <69e63461-c7c9-46b4-7fb5-233309836be1@gmail.com> Message-ID: <33d2842d-4c2a-f0e7-fcec-294debce1694@deganius.de> Am 29.08.2018 um 10:14 schrieb Beno?t Minisini: >> Maybe it would also be cool to ship wiki.tar.bz2 as a distribution >> package like "gambas3-doc" or "gambas3-help" so that the dl-rates were >> not too heavy. > > Otherwise I can put the wiki behind CloudFlare. Wow, cool. I thought, CloudFlare is quite expensive ... ? Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: OpenPGP digital signature URL: From g4mba5 at gmail.com Thu Aug 30 17:53:05 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Thu, 30 Aug 2018 17:53:05 +0200 Subject: [Gambas-user] Help offline In-Reply-To: <33d2842d-4c2a-f0e7-fcec-294debce1694@deganius.de> References: <30590026-3539-4b6a-7f15-72a8df735317@gmail.com> <12501bea-15f1-45ba-9e9b-a318f8c49cf5@deganius.de> <69e63461-c7c9-46b4-7fb5-233309836be1@gmail.com> <33d2842d-4c2a-f0e7-fcec-294debce1694@deganius.de> Message-ID: <95d56948-c9e6-64fb-5483-6decdb2725af@gmail.com> Le 30/08/2018 ? 17:46, Christof Thalhofer a ?crit?: > Am 29.08.2018 um 10:14 schrieb Beno?t Minisini: > >>> Maybe it would also be cool to ship wiki.tar.bz2 as a distribution >>> package like "gambas3-doc" or "gambas3-help" so that the dl-rates were >>> not too heavy. >> >> Otherwise I can put the wiki behind CloudFlare. > > Wow, cool. I thought, CloudFlare is quite expensive ... ? > > > Alles Gute > > Christof Thalhofer > It's free for basic usage. I guess it's like google, you will find the NSA or the CIA behind them if you search a bit. :-) -- Beno?t Minisini From mckaygerhard at gmail.com Thu Aug 30 18:10:15 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Thu, 30 Aug 2018 12:10:15 -0400 Subject: [Gambas-user] Help offline In-Reply-To: <95d56948-c9e6-64fb-5483-6decdb2725af@gmail.com> References: <30590026-3539-4b6a-7f15-72a8df735317@gmail.com> <12501bea-15f1-45ba-9e9b-a318f8c49cf5@deganius.de> <69e63461-c7c9-46b4-7fb5-233309836be1@gmail.com> <33d2842d-4c2a-f0e7-fcec-294debce1694@deganius.de> <95d56948-c9e6-64fb-5483-6decdb2725af@gmail.com> Message-ID: 2018-08-30 11:53 GMT-04:00 Beno?t Minisini : I guess it's like google, you will find the NSA or the CIA behind them if > you search a bit. :-) KA KA KA KA KA KA X-D > > > -- > Beno?t Minisini > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From sebikul at gmail.com Thu Aug 30 18:16:43 2018 From: sebikul at gmail.com (=?UTF-8?Q?Sebasti=C3=A1n_Kulesz?=) Date: Thu, 30 Aug 2018 13:16:43 -0300 Subject: [Gambas-user] Error on PPA for daily In-Reply-To: References: Message-ID: Hi Gianluigi, I've updated all the daily PPAs to use the new jit component. I was waiting in case there were some breaking changes in the middle. Please confirm if it is working for you with the latest build. Regards On Wed, Aug 29, 2018, 06:50 Gianluigi wrote: > Hi Sebastian, > on Ubuntu 18.04.1 installing Gambas3 from ppa Daily > (gambas-team/gambas-daily), you get it mistake for missing component gb.jit. > From ppa stable (gambas-team/gambas3) works everything (3.11.4). > > Regards > Gianluigi > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From chrisml at deganius.de Thu Aug 30 21:41:42 2018 From: chrisml at deganius.de (Christof Thalhofer) Date: Thu, 30 Aug 2018 21:41:42 +0200 Subject: [Gambas-user] Help offline In-Reply-To: <95d56948-c9e6-64fb-5483-6decdb2725af@gmail.com> References: <30590026-3539-4b6a-7f15-72a8df735317@gmail.com> <12501bea-15f1-45ba-9e9b-a318f8c49cf5@deganius.de> <69e63461-c7c9-46b4-7fb5-233309836be1@gmail.com> <33d2842d-4c2a-f0e7-fcec-294debce1694@deganius.de> <95d56948-c9e6-64fb-5483-6decdb2725af@gmail.com> Message-ID: Am 30.08.2018 um 17:53 schrieb Beno?t Minisini: > It's free for basic usage. I guess it's like google, you will find the > NSA or the CIA behind them if you search a bit. :-) Yeah. :) And/or vendor lockin. If you rely on it, they will find a way to make you pay ... after a while. Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: OpenPGP digital signature URL: From bagonergi at gmail.com Fri Aug 31 11:34:01 2018 From: bagonergi at gmail.com (Gianluigi) Date: Fri, 31 Aug 2018 11:34:01 +0200 Subject: [Gambas-user] Error on PPA for daily In-Reply-To: References: Message-ID: Hi Sebastian, everything is ok, as you can see from here :-): http://www.gambas-it.org/smf/index.php?topic=6510.msg44309#msg44309 Regards Gianluigi Il giorno gio 30 ago 2018 alle ore 18:17 Sebasti?n Kulesz ha scritto: > Hi Gianluigi, > > I've updated all the daily PPAs to use the new jit component. I was > waiting in case there were some breaking changes in the middle. > > Please confirm if it is working for you with the latest build. > > Regards > > On Wed, Aug 29, 2018, 06:50 Gianluigi wrote: > >> Hi Sebastian, >> on Ubuntu 18.04.1 installing Gambas3 from ppa Daily >> (gambas-team/gambas-daily), you get it mistake for missing component gb.jit. >> From ppa stable (gambas-team/gambas3) works everything (3.11.4). >> >> Regards >> Gianluigi >> >> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >> > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From sebikul at gmail.com Fri Aug 31 15:24:59 2018 From: sebikul at gmail.com (=?UTF-8?Q?Sebasti=C3=A1n_Kulesz?=) Date: Fri, 31 Aug 2018 10:24:59 -0300 Subject: [Gambas-user] Error on PPA for daily In-Reply-To: References: Message-ID: Awesome! Thanks for the feedback. If you find any other issue please let me know! Regards On Fri, Aug 31, 2018, 06:35 Gianluigi wrote: > Hi Sebastian, > everything is ok, as you can see from here :-): > http://www.gambas-it.org/smf/index.php?topic=6510.msg44309#msg44309 > > Regards > > Gianluigi > > Il giorno gio 30 ago 2018 alle ore 18:17 Sebasti?n Kulesz < > sebikul at gmail.com> ha scritto: > >> Hi Gianluigi, >> >> I've updated all the daily PPAs to use the new jit component. I was >> waiting in case there were some breaking changes in the middle. >> >> Please confirm if it is working for you with the latest build. >> >> Regards >> >> On Wed, Aug 29, 2018, 06:50 Gianluigi wrote: >> >>> Hi Sebastian, >>> on Ubuntu 18.04.1 installing Gambas3 from ppa Daily >>> (gambas-team/gambas-daily), you get it mistake for missing component gb.jit. >>> From ppa stable (gambas-team/gambas3) works everything (3.11.4). >>> >>> Regards >>> Gianluigi >>> >>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >>> >> >> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >> > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From charlie at cogier.com Fri Aug 31 16:51:44 2018 From: charlie at cogier.com (Charlie Ogier) Date: Fri, 31 Aug 2018 15:51:44 +0100 Subject: [Gambas-user] A string[].sort issue In-Reply-To: References: <43c2deaf-954a-6f47-81df-a81fc3b59647@cogier.com> Message-ID: Hi Jorge, A friend of mine, Matt Collins, has also produced some code to solve your problem. You can test it for speed, let us know which is faster. See attached. Charlie On 29/08/18 20:13, Jorge Carri?n wrote: > Thank you Charlie > > I've wrote my own solution for the issue (and got another from > gambas-es.org forum), but your's is about 7 > times faster than mine! I think I'll use yours. > Unfortunately both solutions have to provide a list of special > characters of the language, so they are not valid standard solutions > for any language. > > Best Regards > > El mi?., 29 ago. 2018 a las 17:58, Charlie Ogier ( >) escribi?: > > Hi Jorge, > > Your computer is fine. I also had the same problem when I ran your > program on Mint 19 (Language=en_GB.UTF-8). I tried several ideas > to sort the problem. Finally I came up with this solution, see > attached. > > Charlie > > Translation by https://www.deepl.com > > Hola Jorge, > > Tu computadora est? bien. Tambi?n tuve el mismo problema cuando > ejecut? su programa en Mint 19 (Language=en_GB.UTF-8). Intent? > varias ideas para solucionar el problema. Finalmente se me ocurri? > esta soluci?n, ver adjunto. > > Charlie > > > > On 27/08/18 17:04, Jorge Carri?n wrote: >> Hello >> I have problems ordering a string [] with the conventions of the >> Spanish language. It seems that, depending to the predefined >> constants chosen, it places the accented letters (?????) at the >> end of the non-accented letters or, at most, at the end of the >> words with that letter. It also seems to ignore the white space >> character inside the words. Can someone confirm if it's my >> computer or is it a language thing or is it a Gambas bug? >> I attach a small project that illustrates what I want to say. >> Captura de pantalla de 2018-08-27 18-01-40.png >> >> regards >> >> [System] >> Gambas=3.11.4 >> OperatingSystem=Linux >> Kernel=4.15.0-33-generic >> Architecture=x86_64 >> Distribution=Linux Mint 19 Tara >> Desktop=CINNAMON >> Theme=Gtk >> Language=es_ES.UTF-8 >> Memory=16001M >> >> [Libraries] >> Cairo=libcairo.so.2.11510.0 >> Curl=libcurl.so.4.5.0 >> DBus=libdbus-1.so.3.19.4 >> GStreamer=libgstreamer-1.0.so.0.1401.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] >> CINNAMON_VERSION=3.8.8 >> DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus >> DEFAULTS_PATH=/usr/share/gconf/cinnamon.default.path >> DESKTOP_SESSION=cinnamon >> DISPLAY=:0 >> GB_GUI=gb.qt4 >> GDMSESSION=cinnamon >> GDM_LANG=es_ES >> GIO_LAUNCHED_DESKTOP_FILE=/.cinnamon/panel-launchers/cinnamon-custom-launcher-1.desktop >> GIO_LAUNCHED_DESKTOP_FILE_PID=5296 >> GJS_DEBUG_OUTPUT=stderr >> GJS_DEBUG_TOPICS=JS ERROR;JS LOG >> GNOME_DESKTOP_SESSION_ID=this-is-deprecated >> GPG_AGENT_INFO=/run/user/1000/gnupg/S.gpg-agent:0:1 >> GTK_MODULES=gail:atk-bridge >> GTK_OVERLAY_SCROLLING=1 >> HOME= >> LANG=es_ES.UTF-8 >> LANGUAGE=es_ES.UTF-8 >> LOGNAME= >> MANDATORY_PATH=/usr/share/gconf/cinnamon.mandatory.path >> PATH=.:/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games >> PWD= >> QT_ACCESSIBILITY=1 >> QT_QPA_PLATFORMTHEME=qt5ct >> SESSION_MANAGER=local/:@/tmp/.ICE-unix/1259,unix/:/tmp/.ICE-unix/1259 >> SHELL=/bin/bash >> SHLVL=0 >> SSH_AGENT_PID=1323 >> SSH_AUTH_SOCK=/run/user/1000/keyring/ssh >> TZ=:/etc/localtime >> USER= >> XAUTHORITY=/.Xauthority >> XDG_CONFIG_DIRS=/etc/xdg/xdg-cinnamon:/etc/xdg >> XDG_CURRENT_DESKTOP=X-Cinnamon >> XDG_DATA_DIRS=/usr/share/cinnamon:/usr/share/gnome:/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/local/share:/usr/share >> XDG_GREETER_DATA_DIR=/var/lib/lightdm-data/ >> XDG_RUNTIME_DIR=/run/user/1000 >> XDG_SEAT=seat0 >> XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0 >> XDG_SESSION_DESKTOP=cinnamon >> XDG_SESSION_ID=c2 >> XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0 >> XDG_SESSION_TYPE=x11 >> XDG_VTNR=7 >> >> >> ----[ Gambas mailing-list is hosted byhttps://www.hostsharing.net ]---- > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net > ]---- > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Sorting.tar.gz Type: application/gzip Size: 15133 bytes Desc: not available URL: From shordi at gmail.com Fri Aug 31 19:27:43 2018 From: shordi at gmail.com (=?UTF-8?Q?Jorge_Carri=C3=B3n?=) Date: Fri, 31 Aug 2018 19:27:43 +0200 Subject: [Gambas-user] A string[].sort issue In-Reply-To: References: <43c2deaf-954a-6f47-81df-a81fc3b59647@cogier.com> Message-ID: Thank You Charlie. I've tested it and can confirm that the fastest method is... yours! I've attached a little project with the test. It works with the four methods I've got, Tincho (a friend from gambas-es.org), Shodi (mine), Charlie and Matt. It works with a 10.000 lines listbox. [image: Captura de pantalla de 2018-08-31 19-19-54.png] The speed order is Charli, Matt, Shordi, Tincho. The simplest (and crude) is mine, the fastest is yours, the longest is Tincho's and the most sofisticated is Matt's. Four brains one problem... Best regards El vie., 31 ago. 2018 a las 17:42, Charlie Ogier () escribi?: > Hi Jorge, > > A friend of mine, Matt Collins, has also produced some code to solve your > problem. You can test it for speed, let us know which is faster. See > attached. > > Charlie > > On 29/08/18 20:13, Jorge Carri?n wrote: > > Thank you Charlie > > I've wrote my own solution for the issue (and got another from > gambas-es.org forum), but your's is about 7 times faster than mine! I > think I'll use yours. > Unfortunately both solutions have to provide a list of special characters > of the language, so they are not valid standard solutions for any language. > > Best Regards > > El mi?., 29 ago. 2018 a las 17:58, Charlie Ogier () > escribi?: > >> Hi Jorge, >> >> Your computer is fine. I also had the same problem when I ran your >> program on Mint 19 (Language=en_GB.UTF-8). I tried several ideas to sort >> the problem. Finally I came up with this solution, see attached. >> >> Charlie >> >> Translation by https://www.deepl.com >> >> Hola Jorge, >> >> Tu computadora est? bien. Tambi?n tuve el mismo problema cuando ejecut? >> su programa en Mint 19 (Language=en_GB.UTF-8). Intent? varias ideas para >> solucionar el problema. Finalmente se me ocurri? esta soluci?n, ver adjunto. >> >> Charlie >> >> >> >> On 27/08/18 17:04, Jorge Carri?n wrote: >> >> Hello >> I have problems ordering a string [] with the conventions of the Spanish >> language. It seems that, depending to the predefined constants chosen, >> it places the accented letters (?????) at the end of the non-accented >> letters or, at most, at the end of the words with that letter. It also >> seems to ignore the white space character inside the words. Can someone >> confirm if it's my computer or is it a language thing or is it a Gambas bug? >> I attach a small project that illustrates what I want to say. >> [image: Captura de pantalla de 2018-08-27 18-01-40.png] >> >> regards >> >> [System] >> Gambas=3.11.4 >> OperatingSystem=Linux >> Kernel=4.15.0-33-generic >> Architecture=x86_64 >> Distribution=Linux Mint 19 Tara >> Desktop=CINNAMON >> Theme=Gtk >> Language=es_ES.UTF-8 >> Memory=16001M >> >> [Libraries] >> Cairo=libcairo.so.2.11510.0 >> Curl=libcurl.so.4.5.0 >> DBus=libdbus-1.so.3.19.4 >> GStreamer=libgstreamer-1.0.so.0.1401.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] >> CINNAMON_VERSION=3.8.8 >> DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus >> DEFAULTS_PATH=/usr/share/gconf/cinnamon.default.path >> DESKTOP_SESSION=cinnamon >> DISPLAY=:0 >> GB_GUI=gb.qt4 >> GDMSESSION=cinnamon >> GDM_LANG=es_ES >> >> GIO_LAUNCHED_DESKTOP_FILE=/.cinnamon/panel-launchers/cinnamon-custom-launcher-1.desktop >> GIO_LAUNCHED_DESKTOP_FILE_PID=5296 >> GJS_DEBUG_OUTPUT=stderr >> GJS_DEBUG_TOPICS=JS ERROR;JS LOG >> GNOME_DESKTOP_SESSION_ID=this-is-deprecated >> GPG_AGENT_INFO=/run/user/1000/gnupg/S.gpg-agent:0:1 >> GTK_MODULES=gail:atk-bridge >> GTK_OVERLAY_SCROLLING=1 >> HOME= >> LANG=es_ES.UTF-8 >> LANGUAGE=es_ES.UTF-8 >> LOGNAME= >> MANDATORY_PATH=/usr/share/gconf/cinnamon.mandatory.path >> >> PATH=.:/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games >> PWD= >> QT_ACCESSIBILITY=1 >> QT_QPA_PLATFORMTHEME=qt5ct >> >> SESSION_MANAGER=local/:@/tmp/.ICE-unix/1259,unix/:/tmp/.ICE-unix/1259 >> SHELL=/bin/bash >> SHLVL=0 >> SSH_AGENT_PID=1323 >> SSH_AUTH_SOCK=/run/user/1000/keyring/ssh >> TZ=:/etc/localtime >> USER= >> XAUTHORITY=/.Xauthority >> XDG_CONFIG_DIRS=/etc/xdg/xdg-cinnamon:/etc/xdg >> XDG_CURRENT_DESKTOP=X-Cinnamon >> >> XDG_DATA_DIRS=/usr/share/cinnamon:/usr/share/gnome:/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/local/share:/usr/share >> XDG_GREETER_DATA_DIR=/var/lib/lightdm-data/ >> XDG_RUNTIME_DIR=/run/user/1000 >> XDG_SEAT=seat0 >> XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0 >> XDG_SESSION_DESKTOP=cinnamon >> XDG_SESSION_ID=c2 >> XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0 >> XDG_SESSION_TYPE=x11 >> XDG_VTNR=7 >> >> >> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >> >> >> >> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >> > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Captura de pantalla de 2018-08-31 19-19-54.png Type: image/png Size: 135989 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: SortingArray-0.0.2.tar.gz Type: application/gzip Size: 74984 bytes Desc: not available URL: From chrisml at deganius.de Fri Aug 31 20:17:45 2018 From: chrisml at deganius.de (Christof Thalhofer) Date: Fri, 31 Aug 2018 20:17:45 +0200 Subject: [Gambas-user] A string[].sort issue In-Reply-To: <43c2deaf-954a-6f47-81df-a81fc3b59647@cogier.com> References: <43c2deaf-954a-6f47-81df-a81fc3b59647@cogier.com> Message-ID: <2b869f31-4475-8b33-8043-7b9ccc237014@deganius.de> Hello Charlie, Am 29.08.2018 um 17:57 schrieb Charlie Ogier: > Your computer is fine. I also had the same problem when I ran your > program on Mint 19 (Language=en_GB.UTF-8). I tried several ideas to sort > the problem. Finally I came up with this solution, see attached. "Dim sFixList1 As String[] = ["?", "?", "?", "?", "?", "?", "?"]" As a german I miss ? and ?. And I think there are a lot of other letters in other languages which could be sorted also, here are some examples: https://en.wikipedia.org/wiki/Slovak_orthography ? ? ? ? ? or https://en.wikipedia.org/wiki/Danish_orthography ? ? ? https://en.wikipedia.org/wiki/Albanian_alphabet ? ? https://en.wikipedia.org/wiki/Icelandic_orthography ? ? ? ? :-) Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: OpenPGP digital signature URL: From shordi at gmail.com Fri Aug 31 20:31:28 2018 From: shordi at gmail.com (=?UTF-8?Q?Jorge_Carri=C3=B3n?=) Date: Fri, 31 Aug 2018 20:31:28 +0200 Subject: [Gambas-user] A string[].sort issue In-Reply-To: <2b869f31-4475-8b33-8043-7b9ccc237014@deganius.de> References: <43c2deaf-954a-6f47-81df-a81fc3b59647@cogier.com> <2b869f31-4475-8b33-8043-7b9ccc237014@deganius.de> Message-ID: Yes, that is the problem. I had written my own solution before posting the problem, but I did not like having to provide the special characters of my language (Spanish), I was looking for a more universal solution but Benoit made it clear that it does not exist, so the only solution is to give the characters to the function (or class) that make the sort. The bad news is that if you expand the number of characters, you slow down the function ... maybe it is possible make it be selected according to the installed language, but I do not know if it's worth it. Best Regards El vie., 31 ago. 2018 a las 20:18, Christof Thalhofer () escribi?: > Hello Charlie, > > Am 29.08.2018 um 17:57 schrieb Charlie Ogier: > > > Your computer is fine. I also had the same problem when I ran your > > program on Mint 19 (Language=en_GB.UTF-8). I tried several ideas to sort > > the problem. Finally I came up with this solution, see attached. > > "Dim sFixList1 As String[] = ["?", "?", "?", "?", "?", "?", "?"]" > > As a german I miss ? and ?. And I think there are a lot of other letters > in other languages which could be sorted also, here are some examples: > > https://en.wikipedia.org/wiki/Slovak_orthography > > ? ? ? ? ? > > or https://en.wikipedia.org/wiki/Danish_orthography > > ? ? ? > > https://en.wikipedia.org/wiki/Albanian_alphabet > > ? ? > > https://en.wikipedia.org/wiki/Icelandic_orthography > > ? ? ? ? > > :-) > > > Alles Gute > > Christof Thalhofer > > -- > Dies ist keine Signatur > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bagonergi at gmail.com Fri Aug 31 22:46:05 2018 From: bagonergi at gmail.com (Gianluigi) Date: Fri, 31 Aug 2018 22:46:05 +0200 Subject: [Gambas-user] Install Gambas from PPA Message-ID: Hi Sebastian, I wanted to ask you a technical question: Who has Debian, can to install from PPA? For example, can we in Debian 9.5.0 Stretch to install from PPA Gambas3 3.11.4? If yes, how? I know that for example to compiling, the libraries to be installed in Ubuntu 18.04 are not exactly the same as Debian 9.5.0, although for the majority they are the same. Thank you very much Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: