[Gambas-user] segmentation error (11)

philippe philippe.valarcher at free.fr
Fri Feb 15 16:52:38 CET 2019


Bonjour,

this function causes a segmentation error (11) and I do not understand why.
Can we help?


Public Function TestServeur() As Boolean 'test des paramètres de compte


Dim POP1 As Pop3Client
Dim rep As Boolean


POP1 = New Pop3Client
POP1.host = txtServer.Text
POP1.User = txtUser.text
POP1.Password = txtPass.text
POP1.port = txtPort.text
POP1.Encrypt = IIf(chkSSL.value, 1, 0)

Try POP1.Open

If Not Error Then
	POP1.Close
	Message.Warning(("La connexion au serveur ") & " < " & POP1.host & " > " &
(" est efficiente."))
	rep = True
Else
	Message.Warning(("La connexion au serveur ") & " < " & POP1.host & " > " &
(" a échouée."))
	rep = False
Endif

POP1 = Null
Return rep

End


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.

Here are informations about my system

[System]
Gambas=3.12.2
OperatingSystem=Linux
Kernel=4.4.0-142-generic
Architecture=x86_64
Distribution=Ubuntu 14.04.5 LTS
Desktop=KDE4
Theme=Oxygen
Language=fr_FR.UTF-8
Memory=3750M

[Libraries]
Cairo=libcairo.so.2.11301.0
Curl=libcurl.so.4.3.0
DBus=libdbus-1.so.3.7.6
GStreamer=libgstreamer-0.10.so.0.30.0
GStreamer=libgstreamer-1.0.so.0.204.0
GTK+2=libgtk-x11-2.0.so.0.2400.23
GTK+3=libgtk-3.so.0.1000.8
OpenGL=libGL.so.1.2.0
Poppler=libpoppler.so.44.0.0
QT4=libQtCore.so.4.8.6
QT5=libQt5Core.so.5.2.1
SDL=libSDL-1.2.so.0.11.4
SQLite=libsqlite3.so.0.8.6

[Environment]
DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-M5hGiTFcPT
DEFAULTS_PATH=/usr/share/gconf/kde-plasma.default.path
DESKTOP_SESSION=kde-plasma
DISPLAY=:0
GB_GUI=gb.qt4
GDMSESSION=kde-plasma
GDM_LANG=fr_FR
GNOME_KEYRING_CONTROL=/run/user/1000/keyring-rQaXng
GNOME_KEYRING_PID=
GPG_AGENT_INFO=/tmp/gpg-6qFtoB/S.gpg-agent:2622:1
GS_LIB=<home>/.fonts
GTK2_RC_FILES=/etc/gtk-2.0/gtkrc:<home>/.gtkrc-2.0:<home>/.kde/share/config/gtkrc-2.0
GTK_RC_FILES=/etc/gtk/gtkrc:<home>/.gtkrc:<home>/.kde/share/config/gtkrc
HOME=<home>
IM_CONFIG_PHASE=1
INSTANCE=
JOB=dbus
KDE_FULL_SESSION=true
KDE_MULTIHEAD=false
KDE_SESSION_UID=1000
KDE_SESSION_VERSION=4
LANG=fr_FR.UTF-8
LANGUAGE=fr_FR.UTF-8
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
LC_TIME=fr_FR.UTF-8
LOGNAME=<user>
MANDATORY_PATH=/usr/share/gconf/kde-plasma.mandatory.path
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/
snap/bin
PWD=<home>
QT_PLUGIN_PATH=<home>/.kde/lib/kde4/plugins/:/usr/lib/kde4/plugins/
QT_QPA_PLATFORMTHEME=appmenu-qt5
SELINUX_INIT=YES
SESSION=kde-plasma
SESSIONTYPE=
SESSION_MANAGER=local/<hostname>:@/tmp/.ICE-unix/2761,unix/<hostname>:/tmp/.ICE-
unix/2761
SHELL=/bin/bash
SHLVL=0
SSH_AUTH_SOCK=/run/user/1000/keyring-rQaXng/ssh
TEXTDOMAIN=im-config
TEXTDOMAINDIR=/usr/share/locale/
TZ=:/etc/localtime
UPSTART_EVENTS=started xsession
UPSTART_INSTANCE=
UPSTART_JOB=startkde
UPSTART_SESSION=unix:abstract=/com/ubuntu/upstart-session/1000/2105
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.gambas-basic.org/pipermail/user/attachments/20190215/7ae3880b/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Signature.png
Type: image/png
Size: 19385 bytes
Desc: not available
URL: <https://lists.gambas-basic.org/pipermail/user/attachments/20190215/7ae3880b/attachment-0001.png>


More information about the User mailing list