Re: [Gambas-user] Illegal instruction when calling a C library

2015-11-11 Thread Benoît Minisini
Le 11/11/2015 13:19, martin p cristia a écrit :
> After compiling and installing 3.8.3 (from 3.8.2):
>
> this call...
>
> modLibMatrix8.setCG(cgx, cgy, cgz)
>
> declared as...
>
> Public Extern setCG(x As Float, y As Float, z As Float)
>
> (no modifications in the C  .so library, or in the gambas code)
>
> void setCG(double x, double y, double z)
> {
> // saving CG location for future use
> cg.x = x;
> cg.y = y;
> cg.z = z;
> }
>
> gives
>
> "Illegal instruction"
>

Can you provide a gdb backtrace of the crash?

Did you just upgrade Gambas?

-- 
Benoît Minisini

--
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] New gb.web.form component

2015-11-11 Thread Moviga Technologies
 

This looks interesting. I think if you want to stay on par with HTML5,
you should not use inline CSS though. 

Also, I believe that using flexboxes for layout containers would be a
very good idea :) (take a look here:
https://css-tricks.com/snippets/css/a-guide-to-flexbox/) 

Form controls should also be implemented, but that I believe you have
already planned?! 

Den 10.11.2015 05:19, skrev Benoît Minisini: 

> Hi,
> 
> The gb.web.form is a new component whose goal is easing Web application 
> developement by mainly allowing to use the IDE form editor to define 
> your GUI interface.
> 
> It will use the web browser mainly as a sophisticated terminal. All the 
> application logic will be run on the server. It won't allow you to 
> create an application entirely in javascript that will be run inside the 
> browser (like Google docs for example).
> 
> The GUI is based a hierarchy of classes inheriting WebControl. The web 
> page is defined by a WebForm class. And you have a generic container 
> control, a button control, and a HTML control at the moment.
> 
> Complex javascript run on the browser must be implemented through 
> dedicated web controls. For example, we can imagine a control to put 
> OpenStreetMap inside your web application, a tree view, a grid view...
> 
> How to switch from one web form to another one is not designed yet. At 
> the moment, the url 'http:abcd' is supposed to display 
> the web form whose class name is 'abcd'. There is no way to have 
> different instances of the same web form.
> 
> The application state is stored in the user session. Don't expect to run 
> millions of users at the same time without suffering.
> 
> Do understand that the web application is a CGI script that must build 
> everything from scratch at each request, contrary to a normal 
> application. It has performance impact.
> 
> It is really an embryo at the moment, but you can run the project to 
> display a WebForm1 test form and see how it behaves.
> 
> Just tell me what you think about that, what ideas you have, and so on!
 
--
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] New gb.web.form component

2015-11-11 Thread Benoît Minisini
Le 11/11/2015 16:59, Moviga Technologies a écrit :
>
>
> This looks interesting. I think if you want to stay on par with HTML5,
> you should not use inline CSS though.

I do that because I refresh part of the pages by just sending HTML. If I 
have to separate the style, I would have to send HTML, and a bunch of 
javascript to update the style.

I think I will just add CSS classes so that the user can custom the look 
of the controls with its own style sheet.

In other words, I won't use HTML and CSS the way they are supposed to be 
used. As I said before, I'm using the web browser as a sophisticated 
terminal to put desktop-like applications on the web.

>
> Also, I believe that using flexboxes for layout containers would be a
> very good idea :) (take a look here:
> https://css-tricks.com/snippets/css/a-guide-to-flexbox/)

I already use them.

>
> Form controls should also be implemented, but that I believe you have
> already planned?!

Yes. There is so many things to do!

-- 
Benoît Minisini

--
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] Illegal instruction when calling a C library

2015-11-11 Thread martin p cristia
After compiling and installing 3.8.3 (from 3.8.2):

this call...

   modLibMatrix8.setCG(cgx, cgy, cgz)

declared as...

   Public Extern setCG(x As Float, y As Float, z As Float)

(no modifications in the C  .so library, or in the gambas code)

void setCG(double x, double y, double z)
{
// saving CG location for future use
cg.x = x;
cg.y = y;
cg.z = z;
}

gives

   "Illegal instruction"


[System]
Gambas=3.8.3
OperatingSystem=Linux
Kernel=4.2.0-18-generic
Architecture=x86_64
Distribution=Ubuntu 15.10
Desktop=GNOME
Theme=Gtk
Language=es_ES.UTF-8
Memory=5843M

[Libraries]
Cairo=libcairo.so.2.11400.2
Curl=libcurl.so.4.3.0
DBus=libdbus-1.so.3.14.3
GStreamer=libgstreamer-0.10.so.0.30.0
GStreamer=libgstreamer-1.0.so.0.600.0
GTK+2=libgtk-x11-2.0.so.0.2400.28
GTK+3=libgtk-3.so.0.1600.7
OpenGL=libGL.so.1.2.0
Poppler=libpoppler.so.49.0.0
Poppler=libpoppler.so.52.0.0
QT4=libQtCore.so.4.8.6
QT5=libQt5Core.so.5.4.2
SDL=libSDL-1.2.so.0.11.4

[Environment]
CLUTTER_IM_MODULE=xim
COMPIZ_BIN_PATH=/usr/bin/
COMPIZ_CONFIG_PROFILE=ubuntu
DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-6oD2oA7o1a
DEFAULTS_PATH=/usr/share/gconf/ubuntu.default.path
DESKTOP_SESSION=ubuntu
DISPLAY=:0
GB_GUI=gb.qt4
GDMSESSION=ubuntu
GDM_LANG=es_ES
GIO_LAUNCHED_DESKTOP_FILE=/usr/share/applications/gambas3.desktop
GIO_LAUNCHED_DESKTOP_FILE_PID=1967
GNOME_DESKTOP_SESSION_ID=this-is-deprecated
GNOME_KEYRING_CONTROL=
GNOME_KEYRING_PID=
GTK2_MODULES=overlay-scrollbar
GTK_IM_MODULE=ibus
GTK_MODULES=unity-gtk-module
HOME=
IM_CONFIG_PHASE=1
INSTANCE=
JOB=unity-settings-daemon
LANG=es_ES.UTF-8
LANGUAGE=es_ES:en
LC_ADDRESS=es_AR.UTF-8
LC_IDENTIFICATION=es_AR.UTF-8
LC_MEASUREMENT=es_AR.UTF-8
LC_MONETARY=es_AR.UTF-8
LC_NAME=es_AR.UTF-8
LC_NUMERIC=es_AR.UTF-8
LC_PAPER=es_AR.UTF-8
LC_TELEPHONE=es_AR.UTF-8
LC_TIME=es_AR.UTF-8
LOGNAME=
MANDATORY_PATH=/usr/share/gconf/ubuntu.mandatory.path
PAPERSIZE=a4
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games
PWD=
QT4_IM_MODULE=xim
QT_IM_MODULE=ibus
QT_QPA_PLATFORMTHEME=appmenu-qt5
SESSION=ubuntu
SESSIONTYPE=gnome-session
SHELL=/bin/bash
SHLVL=0
SSH_AUTH_SOCK=/run/user/1000/keyring/ssh
TZ=:/etc/localtime
UPSTART_EVENTS=xsession started
UPSTART_INSTANCE=
UPSTART_JOB=unity7
UPSTART_SESSION=unix:abstract=/com/ubuntu/upstart-session/1000/900
USER=
XAUTHORITY=/.Xauthority
XDG_CONFIG_DIRS=/etc/xdg/xdg-ubuntu:/usr/share/upstart/xdg:/etc/xdg
XDG_CURRENT_DESKTOP=Unity
XDG_DATA_DIRS=/usr/share/ubuntu:/usr/share/gnome:/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=ubuntu
XDG_SESSION_ID=c1
XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0
XDG_SESSION_TYPE=x11
XDG_VTNR=7
XMODIFIERS=@im=ibus

-- 
Saludos

Ing. Martin P Cristia


--
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] [Gambas Bug Tracker] Bug #838: Automatic correction of variable case

2015-11-11 Thread bugtracker
http://gambaswiki.org/bugtracker/edit?object=BUG.838=L21haW4-

Martin CRISTIA reported a new bug.

Summary
---

Automatic correction of variable case

Type : Bug
Priority : Low
Gambas version   : Unknown
Product  : Development Environment


Description
---

Like VB , it would be nice if a declared variable as...

Dim MyVar as Integer

after typing...

myvar = 1  

transforms in...

MyVar = 1

even if the user don't select it from the context list that shows up

:)





--
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] [Gambas Bug Tracker] Bug #839: IDE Crash when delete the code

2015-11-11 Thread bugtracker
http://gambaswiki.org/bugtracker/edit?object=BUG.839=L21haW4-

Zainudin AHMAD added an attachment:

test-OutOfBoundsLongCode-0.0.1.tar.gz



--
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] Illegal instruction when calling a C

2015-11-11 Thread martin p cristia
After removing 3.8.3 installed from sources  with...

$ ./reconf-all

$ ./configure -C

$ make

$ sudo make install

and reinstalling with...

sudo apt-get install gambas3

problem was solved. Have no clue how.

El 11/11/15 a las 19:24, gambas-user-requ...@lists.sourceforge.net escribió:
> Le 11/11/2015 13:19, martin p cristia a ?crit :
>> >After compiling and installing 3.8.3 (from 3.8.2):
>> >
>> >this call...
>> >
>> > modLibMatrix8.setCG(cgx, cgy, cgz)
>> >
>> >declared as...
>> >
>> > Public Extern setCG(x As Float, y As Float, z As Float)
>> >
>> >(no modifications in the C  .so library, or in the gambas code)
>> >
>> >void setCG(double x, double y, double z)
>> >{
>> >// saving CG location for future use
>> >cg.x = x;
>> >cg.y = y;
>> >cg.z = z;
>> >}
>> >
>> >gives
>> >
>> > "Illegal instruction"
>> >
> Can you provide a gdb backtrace of the crash?
>
> Did you just upgrade Gambas?
>
> -- Beno?t Minisini

-- 
Saludos

Ing. Martin P Cristia


--
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Illegal instruction when calling a C

2015-11-11 Thread Benoît Minisini
Le 11/11/2015 23:33, martin p cristia a écrit :
> After removing 3.8.3 installed from sources  with...
>
> $ ./reconf-all
>
> $ ./configure -C
>
> $ make
>
> $ sudo make install
>
> and reinstalling with...
>
> sudo apt-get install gambas3
>
> problem was solved. Have no clue how.
>

You cannot both install gambas3 binary packages and compile it from 
sources : they usually install the same files at the same places, so you 
are actually poisoning your system.

You can avoid that by carefully installing gambas3 from sources using an 
installation prefix different from the one used by the packaging system.

Or you can carefully uninstall every gambas3 package before compiling 
and installing it from sources.

Anyway, if you don't know what you are doing exactly, I'm not amaze that 
you encounter such strange crashes.

Regards,

-- 
Benoît Minisini

--
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] [Gambas Bug Tracker] Bug #839: IDE Crash when delete the code

2015-11-11 Thread bugtracker
http://gambaswiki.org/bugtracker/edit?object=BUG.839=L21haW4-

Zainudin AHMAD reported a new bug.

Summary
---

IDE Crash when delete the code

Type : Bug
Priority : Medium
Gambas version   : 3.8.90 (TRUNK)
Product  : Development Environment


Description
---

this happen if 
 - "automatic word wrap by default" is off (attach pic-1)
 - select the code from down to up (attach pic-2) 
press delete, I get "out of bounds" message. (attach pic-3)


System information
--

[System]
Gambas=3.8.90 r7457
OperatingSystem=Linux
Kernel=3.2.0-88-generic
Architecture=x86
Distribution=Ubuntu 12.04.5 LTS
Desktop=LXDE
Theme=Gtk
Language=en_US.UTF-8
Memory=494M

[Libraries]
Cairo=libcairo.so.2.11000.2
Curl=libcurl.so.4.2.0
DBus=libdbus-1.so.3.5.8
GStreamer=libgstreamer-0.10.so.0.30.0
GStreamer=libgstreamer-1.0.so.0.7.0
GTK+2=libgtk-x11-2.0.so.0.2400.10
GTK+3=libgtk-3.so.0.400.2
OpenGL=libGL.so.96.43.23
Poppler=libpoppler.so.19.0.0
QT4=libQtCore.so.4.8.1
QT5=libQt5Core.so.5.0.2
SDL=libSDL-1.2.so.0.11.3

[Environment]
DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-bS9wnTCZrH,guid=87c5358bb5c3998bf7cb957b0027
DEFAULTS_PATH=/usr/share/gconf/Lubuntu.default.path
DESKTOP_SESSION=Lubuntu
DISPLAY=:0
GB_GUI=gb.qt4
GDMSESSION=Lubuntu
GNOME_KEYRING_CONTROL=/tmp/keyring-9dJvqY
GNOME_KEYRING_PID=1630
HOME=
LANG=en_US.UTF-8
LOGNAME=
MANDATORY_PATH=/usr/share/gconf/Lubuntu.mandatory.path
PATH=/usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
PWD=
SAL_USE_VCLPLUGIN=gtk
SHELL=/bin/bash
SSH_AGENT_PID=1621
SSH_AUTH_SOCK=/tmp/keyring-9dJvqY/ssh
TZ=:/etc/localtime
USER=
XAUTHORITY=/.Xauthority
XDG_CONFIG_DIRS=/etc/xdg/lubuntu/:/etc/xdg/xdg-Lubuntu:/etc/xdg
XDG_CONFIG_HOME=/.config
XDG_CURRENT_DESKTOP=LXDE
XDG_DATA_DIRS=/etc/xdg/lubuntu:/usr/share/Lubuntu:/usr/local/share/:/usr/share/:/usr/share:/usr/share/gdm:/var/lib/menu-xdg
XDG_MENU_PREFIX=lxde-
XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0
XDG_SESSION_COOKIE=2d9710af0959f6893eb828f10008-1447020998.408513-1201412477
XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0
_LXSESSION_PID=1591



--
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] [Gambas Bug Tracker] Bug #839: IDE Crash when delete the code

2015-11-11 Thread bugtracker
http://gambaswiki.org/bugtracker/edit?object=BUG.839=L21haW4-

Zainudin AHMAD added an attachment:

pic-3.png



--
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] [Gambas Bug Tracker] Bug #839: IDE Crash when delete the code

2015-11-11 Thread bugtracker
http://gambaswiki.org/bugtracker/edit?object=BUG.839=L21haW4-

Zainudin AHMAD added an attachment:

pic-1.png



--
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] [Gambas Bug Tracker] Bug #839: IDE Crash when delete the code

2015-11-11 Thread bugtracker
http://gambaswiki.org/bugtracker/edit?object=BUG.839=L21haW4-

Zainudin AHMAD added an attachment:

pic-2.png



--
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user