<div dir="ltr"><div>Can you provide the project or small demonstration project, which reproduces the problem?</div><div><br></div><div>Jussi<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Feb 15, 2019 at 5:53 PM philippe <<a href="mailto:philippe.valarcher@free.fr">philippe.valarcher@free.fr</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><u></u>
<div style="font-family:"Ubuntu";font-size:10pt;font-weight:400;font-style:normal">
<p style="margin:0px;text-indent:0px">Bonjour,</p>
<p style="margin:0px;text-indent:0px"> </p>
<p style="margin:0px;text-indent:0px">this function causes a segmentation error (11) and I do not understand why.</p>
<p style="margin:0px;text-indent:0px">Can we help?</p>
<p style="margin:0px;text-indent:0px"> </p>
<p style="margin:0px;text-indent:0px"> </p>
<p style="margin:0px;text-indent:0px">Public Function TestServeur() As Boolean 'test des paramètres de compte</p>
<p style="margin:0px;text-indent:0px"> </p>
<p style="margin:0px;text-indent:0px"> </p>
<p style="margin:0px;text-indent:0px">Dim POP1 As Pop3Client</p>
<p style="margin:0px;text-indent:0px">Dim rep As Boolean</p>
<p style="margin:0px;text-indent:0px"> </p>
<p style="margin:0px;text-indent:0px"> </p>
<p style="margin:0px;text-indent:0px">POP1 = New Pop3Client</p>
<p style="margin:0px;text-indent:0px">POP1.host = txtServer.Text</p>
<p style="margin:0px;text-indent:0px">POP1.User = txtUser.text</p>
<p style="margin:0px;text-indent:0px">POP1.Password = txtPass.text</p>
<p style="margin:0px;text-indent:0px">POP1.port = txtPort.text</p>
<p style="margin:0px;text-indent:0px">POP1.Encrypt = IIf(chkSSL.value, 1, 0)</p>
<p style="margin:0px;text-indent:0px"> </p>
<p style="margin:0px;text-indent:0px">Try POP1.Open</p>
<p style="margin:0px;text-indent:0px"> </p>
<p style="margin:0px;text-indent:0px">If Not Error Then</p>
<p style="margin:0px;text-indent:0px">  POP1.Close</p>
<p style="margin:0px;text-indent:0px">  Message.Warning(("La connexion au serveur ") & " < " & POP1.host & " > " &</p>
<p style="margin:0px;text-indent:0px">(" est efficiente."))</p>
<p style="margin:0px;text-indent:0px">  rep = True</p>
<p style="margin:0px;text-indent:0px">Else</p>
<p style="margin:0px;text-indent:0px">  Message.Warning(("La connexion au serveur ") & " < " & POP1.host & " > " &</p>
<p style="margin:0px;text-indent:0px">(" a échouée."))</p>
<p style="margin:0px;text-indent:0px">  rep = False</p>
<p style="margin:0px;text-indent:0px">Endif</p>
<p style="margin:0px;text-indent:0px"> </p>
<p style="margin:0px;text-indent:0px">POP1 = Null</p>
<p style="margin:0px;text-indent:0px">Return rep</p>
<p style="margin:0px;text-indent:0px"> </p>
<p style="margin:0px;text-indent:0px">End</p>
<p style="margin:0px;text-indent:0px"> </p>
<p style="margin:0px;text-indent:0px"> </p>
<p style="margin:0px;text-indent:0px">this error happens when after returning the function we click on any tab of the Fmain.form if the data entered in the tab accounts are wrong (any) so when the pop account is either inateignable or does not exist.</p>
<p style="margin:0px;text-indent:0px"> </p>
<p style="margin:0px;text-indent:0px">Here are informations about my system</p>
<p style="margin:0px;text-indent:0px"> </p>
<p style="margin:0px;text-indent:0px">[System]</p>
<p style="margin:0px;text-indent:0px">Gambas=3.12.2</p>
<p style="margin:0px;text-indent:0px">OperatingSystem=Linux</p>
<p style="margin:0px;text-indent:0px">Kernel=4.4.0-142-generic</p>
<p style="margin:0px;text-indent:0px">Architecture=x86_64</p>
<p style="margin:0px;text-indent:0px">Distribution=Ubuntu 14.04.5 LTS</p>
<p style="margin:0px;text-indent:0px">Desktop=KDE4</p>
<p style="margin:0px;text-indent:0px">Theme=Oxygen</p>
<p style="margin:0px;text-indent:0px">Language=fr_FR.UTF-8</p>
<p style="margin:0px;text-indent:0px">Memory=3750M</p>
<p style="margin:0px;text-indent:0px"> </p>
<p style="margin:0px;text-indent:0px">[Libraries]</p>
<p style="margin:0px;text-indent:0px">Cairo=libcairo.so.2.11301.0</p>
<p style="margin:0px;text-indent:0px">Curl=libcurl.so.4.3.0</p>
<p style="margin:0px;text-indent:0px">DBus=libdbus-1.so.3.7.6</p>
<p style="margin:0px;text-indent:0px">GStreamer=libgstreamer-0.10.so.0.30.0</p>
<p style="margin:0px;text-indent:0px">GStreamer=libgstreamer-1.0.so.0.204.0</p>
<p style="margin:0px;text-indent:0px">GTK+2=libgtk-x11-2.0.so.0.2400.23</p>
<p style="margin:0px;text-indent:0px">GTK+3=libgtk-3.so.0.1000.8</p>
<p style="margin:0px;text-indent:0px">OpenGL=libGL.so.1.2.0</p>
<p style="margin:0px;text-indent:0px">Poppler=libpoppler.so.44.0.0</p>
<p style="margin:0px;text-indent:0px">QT4=libQtCore.so.4.8.6</p>
<p style="margin:0px;text-indent:0px">QT5=libQt5Core.so.5.2.1</p>
<p style="margin:0px;text-indent:0px">SDL=libSDL-1.2.so.0.11.4</p>
<p style="margin:0px;text-indent:0px">SQLite=libsqlite3.so.0.8.6</p>
<p style="margin:0px;text-indent:0px"> </p>
<p style="margin:0px;text-indent:0px">[Environment]</p>
<p style="margin:0px;text-indent:0px">DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-M5hGiTFcPT</p>
<p style="margin:0px;text-indent:0px">DEFAULTS_PATH=/usr/share/gconf/kde-plasma.default.path</p>
<p style="margin:0px;text-indent:0px">DESKTOP_SESSION=kde-plasma</p>
<p style="margin:0px;text-indent:0px">DISPLAY=:0</p>
<p style="margin:0px;text-indent:0px">GB_GUI=gb.qt4</p>
<p style="margin:0px;text-indent:0px">GDMSESSION=kde-plasma</p>
<p style="margin:0px;text-indent:0px">GDM_LANG=fr_FR</p>
<p style="margin:0px;text-indent:0px">GNOME_KEYRING_CONTROL=/run/user/1000/keyring-rQaXng</p>
<p style="margin:0px;text-indent:0px">GNOME_KEYRING_PID=</p>
<p style="margin:0px;text-indent:0px">GPG_AGENT_INFO=/tmp/gpg-6qFtoB/S.gpg-agent:2622:1</p>
<p style="margin:0px;text-indent:0px">GS_LIB=<home>/.fonts</p>
<p style="margin:0px;text-indent:0px">GTK2_RC_FILES=/etc/gtk-2.0/gtkrc:<home>/.gtkrc-2.0:<home>/.kde/share/config/gtkrc-2.0</p>
<p style="margin:0px;text-indent:0px">GTK_RC_FILES=/etc/gtk/gtkrc:<home>/.gtkrc:<home>/.kde/share/config/gtkrc</p>
<p style="margin:0px;text-indent:0px">HOME=<home></p>
<p style="margin:0px;text-indent:0px">IM_CONFIG_PHASE=1</p>
<p style="margin:0px;text-indent:0px">INSTANCE=</p>
<p style="margin:0px;text-indent:0px">JOB=dbus</p>
<p style="margin:0px;text-indent:0px">KDE_FULL_SESSION=true</p>
<p style="margin:0px;text-indent:0px">KDE_MULTIHEAD=false</p>
<p style="margin:0px;text-indent:0px">KDE_SESSION_UID=1000</p>
<p style="margin:0px;text-indent:0px">KDE_SESSION_VERSION=4</p>
<p style="margin:0px;text-indent:0px">LANG=fr_FR.UTF-8</p>
<p style="margin:0px;text-indent:0px">LANGUAGE=fr_FR.UTF-8</p>
<p style="margin:0px;text-indent:0px">LC_ADDRESS=fr_FR.UTF-8</p>
<p style="margin:0px;text-indent:0px">LC_IDENTIFICATION=fr_FR.UTF-8</p>
<p style="margin:0px;text-indent:0px">LC_MEASUREMENT=fr_FR.UTF-8</p>
<p style="margin:0px;text-indent:0px">LC_MONETARY=fr_FR.UTF-8</p>
<p style="margin:0px;text-indent:0px">LC_NAME=fr_FR.UTF-8</p>
<p style="margin:0px;text-indent:0px">LC_NUMERIC=fr_FR.UTF-8</p>
<p style="margin:0px;text-indent:0px">LC_PAPER=fr_FR.UTF-8</p>
<p style="margin:0px;text-indent:0px">LC_TELEPHONE=fr_FR.UTF-8</p>
<p style="margin:0px;text-indent:0px">LC_TIME=fr_FR.UTF-8</p>
<p style="margin:0px;text-indent:0px">LOGNAME=<user></p>
<p style="margin:0px;text-indent:0px">MANDATORY_PATH=/usr/share/gconf/kde-plasma.mandatory.path</p>
<p style="margin:0px;text-indent:0px">PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin</p>
<p style="margin:0px;text-indent:0px">PWD=<home></p>
<p style="margin:0px;text-indent:0px">QT_PLUGIN_PATH=<home>/.kde/lib/kde4/plugins/:/usr/lib/kde4/plugins/</p>
<p style="margin:0px;text-indent:0px">QT_QPA_PLATFORMTHEME=appmenu-qt5</p>
<p style="margin:0px;text-indent:0px">SELINUX_INIT=YES</p>
<p style="margin:0px;text-indent:0px">SESSION=kde-plasma</p>
<p style="margin:0px;text-indent:0px">SESSIONTYPE=</p>
<p style="margin:0px;text-indent:0px">SESSION_MANAGER=local/<hostname>:@/tmp/.ICE-unix/2761,unix/<hostname>:/tmp/.ICE-unix/2761</p>
<p style="margin:0px;text-indent:0px">SHELL=/bin/bash</p>
<p style="margin:0px;text-indent:0px">SHLVL=0</p>
<p style="margin:0px;text-indent:0px">SSH_AUTH_SOCK=/run/user/1000/keyring-rQaXng/ssh</p>
<p style="margin:0px;text-indent:0px">TEXTDOMAIN=im-config</p>
<p style="margin:0px;text-indent:0px">TEXTDOMAINDIR=/usr/share/locale/</p>
<p style="margin:0px;text-indent:0px">TZ=:/etc/localtime</p>
<p style="margin:0px;text-indent:0px">UPSTART_EVENTS=started xsession</p>
<p style="margin:0px;text-indent:0px">UPSTART_INSTANCE=</p>
<p style="margin:0px;text-indent:0px">UPSTART_JOB=startkde</p>
<p style="margin:0px;text-indent:0px">UPSTART_SESSION=unix:abstract=/com/ubuntu/upstart-session/1000/2105</p>
<p style="margin:0px;text-indent:0px">USER=<user></p>
<p style="margin:0px;text-indent:0px">XAUTHORITY=/tmp/kde-<user>/xauth-1000-_0</p>
<p style="margin:0px;text-indent:0px">XCURSOR_SIZE=0</p>
<p style="margin:0px;text-indent:0px">XCURSOR_THEME=oxy-zion</p>
<p style="margin:0px;text-indent:0px">XDG_CONFIG_DIRS=/etc/xdg/xdg-kde-plasma:/usr/share/upstart/xdg:/etc/xdg</p>
<p style="margin:0px;text-indent:0px">XDG_CURRENT_DESKTOP=KDE</p>
<p style="margin:0px;text-indent:0px">XDG_DATA_DIRS=/usr/share:/usr/share/kde-plasma:/usr/local/share:/usr/share:/var/lib/snapd/desktop</p>
<p style="margin:0px;text-indent:0px">XDG_GREETER_DATA_DIR=/var/lib/lightdm-data/<user></p>
<p style="margin:0px;text-indent:0px">XDG_RUNTIME_DIR=/run/user/1000</p>
<p style="margin:0px;text-indent:0px">XDG_SEAT=seat0</p>
<p style="margin:0px;text-indent:0px">XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0</p>
<p style="margin:0px;text-indent:0px">XDG_SESSION_ID=c1</p>
<p style="margin:0px;text-indent:0px">XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0</p>
<p style="margin:0px;text-indent:0px">XDG_VTNR=7</p>
<p style="margin:0px;text-indent:0px"> </p>
<p style="margin:0px;text-indent:0px"> </p>
<p style="margin:0px;text-indent:0px">Je vais y arriver, Benoît. (en français, dans le texte)<br>-- </p>
<p style="margin:0px;text-indent:0px"> </p>
<p style="margin:0px;text-indent:0px">Cordialement Philippe Valarcher</p>
<p style="margin:0px;text-indent:0px"><a href="mailto:philippe.valarcher@free.fr" target="_blank">philippe.valarcher@free.fr</a></p>
<p style="margin:0px;text-indent:0px">GNU/Linux Kubuntu 14.04.05 64 Bits</p>
<p style="margin:0px;text-indent:0px"> </p>
<p style="margin:0px;text-indent:0px"><img src="cid:168f3897cb7914847d31"></p>
<p style="margin:0px;text-indent:0px">Unus Ex Altera</p>
<p style="margin:0px;text-indent:0px"> </p></div><br>
----[ Gambas mailing-list is hosted by <a href="https://www.hostsharing.net" rel="noreferrer" target="_blank">https://www.hostsharing.net</a> ]----<br>
</blockquote></div>