Re: [Gambas-user] Problem with READ on a UDP socket

2008-11-04 Thread Gareth Bult
Erm, Ok .. I was expecting a buffer layer between socket library and Gambas .. 
but that aside, If I'm expecting a binary packet via a UDP socket, for example;

type - 1 byte
number - 4 bytes
size - 2 bytes
payload - up to 1024, dictated by size

Can anyone tell me in Gambas how I would go about transferring data from the 
packet to Gambas Variables?

READ #$udp,data,lof($udp)

Would give me the contents of the packet as a string, but I can't seem to see 
an effective / efficient way of breaking it down from there .. anyone ?

tia
Gareth.



- Original Message -
From: Benoit Minisini [EMAIL PROTECTED]
To: mailing list for gambas users gambas-user@lists.sourceforge.net
Sent: Tuesday, 4 November, 2008 2:35:21 PM GMT +00:00 GMT Britain, Ireland, 
Portugal
Subject: Re: [Gambas-user] Problem with READ on a UDP socket

On mardi 4 novembre 2008, Gareth Bult wrote:
 Hi,

 I think I reported this quite a while ago but it still seems to be a
 problem ... using READ to try to acquire less than the entire available
 buffer doesn't seem to work .. and if I read the entire buffer, there's no
 obvious way to break the packet down into it's constituent parts ...

 Anyone any ideas?
 (and anyone any idea where the other 24 bytes are going ??)

 PRIVATE $udp AS UdpSocket

 PUBLIC SUB _new()

 $udp = NEW UdpSocket AS Socket
 $udp.Bind(2000)

 END

 PUBLIC SUB Socket_Read()

 DIM cmd AS Byte
 DIM siz AS Long

 PRINT Lof($udp)
 READ #$udp, cmd, 1
 PRINT Lof($udp)
 'READ #$udp, siz, 8 = generates error if uncommented

 END

 $shell echo R0011Hello World 123 |nc -u localhost 2000

 25
 0 === should be 24!

After having investigated, it seems that this is a property of the UDP 
sockets.

According to the manual page, when you read a message from a socket, If a 
message is too long to fit in the supplied buffer, excess bytes may be 
discarded depending on the type of socket the message is received from.

You should not have this behaviour if you use a TCP socket.

But note that Gambas could be more user-friendly by maintaining an internal 
message buffer for UDP sockets, so that successive READs in the same event 
handler work as you expected. I will think about that.

Regards,


-- 
Benoit Minisini

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user

-- 
Managing Director, Encryptec Limited
Tel: 0845 5082719, Mob: 0785 3305393
Email: [EMAIL PROTECTED] 
Statements made are at all times subject to Encryptec's Terms and Conditions of 
Business, which are available upon request.

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Problem with READ on a UDP socket

2008-11-04 Thread Benoit Minisini
On mardi 4 novembre 2008, Gareth Bult wrote:
 Erm, Ok .. I was expecting a buffer layer between socket library and Gambas
 .. but that aside, If I'm expecting a binary packet via a UDP socket, for
 example;

 type - 1 byte
 number - 4 bytes
 size - 2 bytes
 payload - up to 1024, dictated by size

 Can anyone tell me in Gambas how I would go about transferring data from
 the packet to Gambas Variables?

 READ #$udp,data,lof($udp)

 Would give me the contents of the packet as a string, but I can't seem to
 see an effective / efficient way of breaking it down from there .. anyone ?

 tia
 Gareth.


Without that buffer, it is brain-fucking:

DIM sData AS String
DIM pBuffer AS Pointer
DIM iType AS Byte
DIM iNumber AS Integer
...

READ #$udp, sData, Lof($udp)
pBuffer = Alloc(len(sData))
WRITE #pBuffer, sData, len(sData)

READ #pBuffer, iType
READ #pBuffer, iNumber
...

Free(pBuffer)

I will try to fix that in Gambas 3, then backporting all gb.net fixes to 
Gambas 2 once they are done.

Regards,

-- 
Benoit Minisini

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Databrowser.gridview events.?

2008-11-04 Thread Benoit Minisini
On mardi 4 novembre 2008, moon_walker wrote:
 Hi all,

 i would like to ask if there is an event raised if i click a row in the
 databrowser?
 Another question if i can catch the events of the control buttons of the
 databrowser?
 (movefirst, save, etc...)

 This is not working:

 PUBLIC SUB DataBrowser1_MouseDown()

   Message.Info(catched)

 END

 Thanks
 and regards from hungary.

 Attila

DataBrowser's goal is just browsing.

If you need more control, you have to create your own one, by using a 
DataView, and buttons that call DataView methods.

The DataView control has an 'Activate' event that is raised each time the 
current record change (It should have been named 'Change' or 'Click' 
instead).

If this is not what you need, you will have to catch events on the DataView 
GridView yourself, by using its GridView property. That property returns the 
underlying GridView control. Then you use the Observer class to catch the 
events.

Regards,

-- 
Benoit Minisini

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Problem with READ on a UDP socket

2008-11-04 Thread Gareth Bult
Without that buffer, it is brain-fucking:

No, I can live with that solution.. :-)

It was using a pointer as a stream that I missed .. 

Many thanks,
Gareth.

- Original Message -
From: Benoit Minisini [EMAIL PROTECTED]
To: mailing list for gambas users gambas-user@lists.sourceforge.net
Sent: Tuesday, 4 November, 2008 3:51:14 PM GMT +00:00 GMT Britain, Ireland, 
Portugal
Subject: Re: [Gambas-user] Problem with READ on a UDP socket

On mardi 4 novembre 2008, Gareth Bult wrote:
 Erm, Ok .. I was expecting a buffer layer between socket library and Gambas
 .. but that aside, If I'm expecting a binary packet via a UDP socket, for
 example;

 type - 1 byte
 number - 4 bytes
 size - 2 bytes
 payload - up to 1024, dictated by size

 Can anyone tell me in Gambas how I would go about transferring data from
 the packet to Gambas Variables?

 READ #$udp,data,lof($udp)

 Would give me the contents of the packet as a string, but I can't seem to
 see an effective / efficient way of breaking it down from there .. anyone ?

 tia
 Gareth.


Without that buffer, it is brain-fucking:

DIM sData AS String
DIM pBuffer AS Pointer
DIM iType AS Byte
DIM iNumber AS Integer
...

READ #$udp, sData, Lof($udp)
pBuffer = Alloc(len(sData))
WRITE #pBuffer, sData, len(sData)

READ #pBuffer, iType
READ #pBuffer, iNumber
...

Free(pBuffer)

I will try to fix that in Gambas 3, then backporting all gb.net fixes to 
Gambas 2 once they are done.

Regards,

-- 
Benoit Minisini

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user

-- 
Managing Director, Encryptec Limited
Tel: 0845 5082719, Mob: 0785 3305393
Email: [EMAIL PROTECTED] 
Statements made are at all times subject to Encryptec's Terms and Conditions of 
Business, which are available upon request.

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] How to make a treeview un-clickeable

2008-11-04 Thread Benoit Minisini
On mardi 4 novembre 2008, M0E Lnx wrote:
 Can anyone suggest a way to do this?

 I have a treeview which I intend to use as a simple list of tasks to
 perform. The treeview selection and pictures and stuff are controlled and
 affected by other objects in the form.

 What I need is a way to keep the user from clicking on different items
 on the treeview, because the seleced = true proerty changes when the
 user clicks on it.

 I really dont want to use the treeview.enabled = false method. This
 grays out the entire trieeview.
 I need it to look alive, but yet be locked for any clicking


TreeView.Mode = TreeView.None ?

-- 
Benoit Minisini

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Multiple instances of Gambas ...

2008-11-04 Thread Gareth Bult
Ok,

Now I'm confused .. firstly on Ubuntu, try as I might I can't get a core dump 
.. will have to work on this.

In the meantime, if it helps ..

I have 4 screens .. I start Gambas on screen 3 .. then gambas2 will work 
quite happily on screens 2,3 and 4 , but will give the dump as quoted if 
started on screen 1... although I'm sure it wasn't working on 2 and 4 earlier.

Will have to experiment, will come back to you, possibly after a reboot ...

Gareth.

- Original Message -
From: Benoit Minisini [EMAIL PROTECTED]
To: mailing list for gambas users gambas-user@lists.sourceforge.net
Sent: Tuesday, 4 November, 2008 4:14:39 PM GMT +00:00 GMT Britain, Ireland, 
Portugal
Subject: Re: [Gambas-user] Multiple instances of Gambas ...

On mardi 4 novembre 2008, Gareth Bult wrote:
 Hi,

 Again, would love to, unfortunately I just picked Gambas up for a small
 project and I've forgotten all the ins and outs of debugging, is there a
 URL you can point me at with the relevant instructions ?

 Gareth.


On the web site, in the troubleshooting section.

Anyway, you can get a backtrace by allowing core dumps, and running gdb on 
them.

$ ulimit -c 32000

$ ./gambas2.gambas
...

*crash*
...core dump

$ gdb gbx2 core dump file
...
(gdb) bt

Regards,

-- 
Benoit Minisini

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user

-- 
Managing Director, Encryptec Limited
Tel: 0845 5082719, Mob: 0785 3305393
Email: [EMAIL PROTECTED] 
Statements made are at all times subject to Encryptec's Terms and Conditions of 
Business, which are available upon request.

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Multiple instances of Gambas ...

2008-11-04 Thread Gareth Bult
Hi,

Again, would love to, unfortunately I just picked Gambas up for a small project 
and I've forgotten all the ins and outs of debugging, is there a URL you can 
point me at with the relevant instructions ?

Gareth.

- Original Message -
From: Benoit Minisini [EMAIL PROTECTED]
To: mailing list for gambas users gambas-user@lists.sourceforge.net
Sent: Tuesday, 4 November, 2008 12:47:24 PM GMT +00:00 GMT Britain, Ireland, 
Portugal
Subject: Re: [Gambas-user] Multiple instances of Gambas ...

On mardi 4 novembre 2008, Gareth Bult wrote:
 Hi,

 I used to be able to run multiple instances of Gambas which was really
 handy for multiple component projects, however when I run a second instance
 now it dumps out immediately with the trace listed below. I've tried this
 on the standard Ubuntu 8.10 distro, and on the stable 2.9 compiled from
 source, same results. Any ideas?


I don't have this problem there (Mandriva 2009.0).

Can you provide a true backtrace of the crash, with debugging information 
enabled?

-- 
Benoit Minisini

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user

-- 
Managing Director, Encryptec Limited
Tel: 0845 5082719, Mob: 0785 3305393
Email: [EMAIL PROTECTED] 
Statements made are at all times subject to Encryptec's Terms and Conditions of 
Business, which are available upon request.

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Problem with READ on a UDP socket

2008-11-04 Thread Benoit Minisini
On mardi 4 novembre 2008, Benoit Minisini wrote:
 On mardi 4 novembre 2008, Gareth Bult wrote:
  Hi,
 
  I think I reported this quite a while ago but it still seems to be a
  problem ... using READ to try to acquire less than the entire available
  buffer doesn't seem to work .. and if I read the entire buffer, there's
  no obvious way to break the packet down into it's constituent parts ...
 
  Anyone any ideas?
  (and anyone any idea where the other 24 bytes are going ??)
 
  PRIVATE $udp AS UdpSocket
 
  PUBLIC SUB _new()
 
  $udp = NEW UdpSocket AS Socket
  $udp.Bind(2000)
 
  END
 
  PUBLIC SUB Socket_Read()
 
  DIM cmd AS Byte
  DIM siz AS Long
 
  PRINT Lof($udp)
  READ #$udp, cmd, 1
  PRINT Lof($udp)
  'READ #$udp, siz, 8 = generates error if uncommented
 
  END
 
  $shell echo R0011Hello World 123 |nc -u localhost 2000
 
  25
  0 === should be 24!

 Can you try your code with Gambas 3?

 I have changed many things in the gb.net component there, but I didn't
 backported them to Gambas 2. If it fixes your problem, I will do!

 Regards,

I tested your little code, and I confirm that any read entirely voids the 
internal socket buffer. I will investigate...

-- 
Benoit Minisini

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Multiple instances of Gambas ...

2008-11-04 Thread Benoit Minisini
On mardi 4 novembre 2008, Gareth Bult wrote:
 Hi,

 I used to be able to run multiple instances of Gambas which was really
 handy for multiple component projects, however when I run a second instance
 now it dumps out immediately with the trace listed below. I've tried this
 on the standard Ubuntu 8.10 distro, and on the stable 2.9 compiled from
 source, same results. Any ideas?


I don't have this problem there (Mandriva 2009.0).

Can you provide a true backtrace of the crash, with debugging information 
enabled?

-- 
Benoit Minisini

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] How to make a treeview un-clickeable

2008-11-04 Thread M0E Lnx
THanks

On Tue, Nov 4, 2008 at 10:58 AM, Benoit Minisini
[EMAIL PROTECTED] wrote:
 On mardi 4 novembre 2008, M0E Lnx wrote:
 Can anyone suggest a way to do this?

 I have a treeview which I intend to use as a simple list of tasks to
 perform. The treeview selection and pictures and stuff are controlled and
 affected by other objects in the form.

 What I need is a way to keep the user from clicking on different items
 on the treeview, because the seleced = true proerty changes when the
 user clicks on it.

 I really dont want to use the treeview.enabled = false method. This
 grays out the entire trieeview.
 I need it to look alive, but yet be locked for any clicking


 TreeView.Mode = TreeView.None ?

 --
 Benoit Minisini

 -
 This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
 Build the coolest Linux based applications with Moblin SDK  win great prizes
 Grand prize is a trip for two to an Open Source event anywhere in the world
 http://moblin-contest.org/redirect.php?banner_id=100url=/
 ___
 Gambas-user mailing list
 Gambas-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/gambas-user


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] Web Services: Working with WSDL

2008-11-04 Thread birchy

I'm fairly new to Gambas and really like it's improvements over VB6, however
i'm finding that documentation and source code examples are quite poor. Many
of my projects are web related and involve either scraping information from
a web page or working with SOAP protocols. So this brings me a couple of
questions:
1) What is the best way to download and parse HTML? I'm currently using
HttpClient to download the HTML and then parsing it manually via a function
that uses Instr() and Mid().
2) Both Java and .Net are able to auto-generate code from a WSDL file. Does
Gambas have this feature in one of its libraries?
-- 
View this message in context: 
http://www.nabble.com/Web-Services%3A-Working-with-WSDL-tp20328779p20328779.html
Sent from the gambas-user mailing list archive at Nabble.com.


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] Multiple instances of Gambas ...

2008-11-04 Thread Gareth Bult
Hi, 

I used to be able to run multiple instances of Gambas which was really handy 
for multiple component projects, however when I run a second instance now it 
dumps out immediately with the trace listed below. I've tried this on the 
standard Ubuntu 8.10 distro, and on the stable 2.9 compiled from source, same 
results. Any ideas? 

$ /usr/bin/gambas2 
*** glibc detected *** /usr/bin/gambas2: double free or corruption (out): 
0x09526138 *** 
=== Backtrace: = 
/lib/tls/i686/cmov/libc.so.6[0xb76f53f4] 
/lib/tls/i686/cmov/libc.so.6(cfree+0x96)[0xb76f7456] 
/usr/lib/libstdc++.so.6(_ZdlPv+0x21)[0xb7372031] 
/usr/lib/libqt-mt.so.3(_ZN6QGList6removeEPv+0x61)[0xb7d8cfc1] 
/usr/lib/libqt-mt.so.3(_ZN12QApplication16sendPostedEventsEP7QObjecti+0x26b)[0xb7a537bb]
 
/usr/lib/libqt-mt.so.3(_ZN7QWidget4showEv+0x3b4)[0xb7aefc94] 
/usr/lib/libqt-mt.so.3(_ZN11QMainWindow4showEv+0x35)[0xb7bb0d45] 
/usr/lib/gambas2/gb.qt.so[0xb6fc9cf3] 
/usr/lib/gambas2/gb.qt.so[0xb6fc9d97] 
/usr/bin/gambas2[0x804e738] 
/usr/bin/gambas2[0x804efe9] 
/usr/bin/gambas2[0x805144d] 
/usr/bin/gambas2[0x804f327] 
/usr/bin/gambas2[0x804f5fd] 
/usr/bin/gambas2[0x80629ac] 
/lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xe5)[0xb769c685] 
/usr/bin/gambas2[0x804ae11] 
=== Memory map:  
08048000-08071000 r-xp  fe:07 552037 /usr/bin/gbx2 
08071000-08072000 r--p 00028000 fe:07 552037 /usr/bin/gbx2 
08072000-08077000 rw-p 00029000 fe:07 552037 /usr/bin/gbx2 
08077000-08079000 rw-p 08077000 00:00 0 
09249000-0959e000 rw-p 09249000 00:00 0 [heap] 
b690-b6921000 rw-p b690 00:00 0 
b6921000-b6a0 ---p b6921000 00:00 0 
b6a3c000-b6ac5000 r--p  fe:07 681877 
/usr/share/fonts/truetype/ttf-dejavu/DejaVuSans-Bold.ttf 
b6ac5000-b6ae9000 r-xp  fe:07 764489 
/usr/lib/qt3/plugins/inputmethods/libqsimple.so 
b6ae9000-b6aea000 rw-p 00024000 fe:07 764489 
/usr/lib/qt3/plugins/inputmethods/libqsimple.so 
b6aea000-b6aee000 r-xp  fe:07 764488 
/usr/lib/qt3/plugins/inputmethods/libqimsw-none.so 
b6aee000-b6aef000 rw-p 3000 fe:07 764488 
/usr/lib/qt3/plugins/inputmethods/libqimsw-none.so 
b6aef000-b6b17000 r-xp  fe:07 552161 /usr/lib/libkdefx.so.4.2.0 
b6b17000-b6b18000 ---p 00028000 fe:07 552161 /usr/lib/libkdefx.so.4.2.0 
b6b18000-b6b19000 r--p 00028000 fe:07 552161 /usr/lib/libkdefx.so.4.2.0 
b6b19000-b6b1a000 rw-p 00029000 fe:07 552161 /usr/lib/libkdefx.so.4.2.0 
b6b1a000-b6b38000 r-xp  fe:07 1025825 
/usr/lib/kde3/plugins/styles/plastik.so 
b6b38000-b6b39000 r--p 0001d000 fe:07 1025825 
/usr/lib/kde3/plugins/styles/plastik.so 
b6b39000-b6b3a000 rw-p 0001e000 fe:07 1025825 
/usr/lib/kde3/plugins/styles/plastik.so 
b6b3a000-b6b69000 r-xp  fe:07 551035 /usr/lib/liblcms.so.1.0.16 
b6b69000-b6b6a000 r--p 0002e000 fe:07 551035 /usr/lib/liblcms.so.1.0.16 
b6b6a000-b6b6b000 rw-p 0002f000 fe:07 551035 /usr/lib/liblcms.so.1.0.16 
b6b6b000-b6b6e000 rw-p b6b6b000 00:00 0 
b6b6e000-b6bd9000 r-xp  fe:07 551068 /usr/lib/libmng.so.1.1.0.9 
b6bd9000-b6bdc000 rw-p 0006a000 fe:07 551068 /usr/lib/libmng.so.1.1.0.9 
b6bdd000-b6be8000 r-xp  fe:07 764490 
/usr/lib/qt3/plugins/inputmethods/libqxim.so 
b6be8000-b6be9000 rw-p a000 fe:07 764490 
/usr/lib/qt3/plugins/inputmethods/libqxim.so 
b6be9000-b6bf2000 r-xp  fe:07 764487 
/usr/lib/qt3/plugins/inputmethods/libqimsw-multi.so 
b6bf2000-b6bf3000 rw-p 8000 fe:07 764487 
/usr/lib/qt3/plugins/inputmethods/libqimsw-multi.so 
b6bf3000-b6bf4000 r--p  fe:07 815046 
/usr/share/locale-langpack/en_GB/LC_MESSAGES/libc.mo 
b6bf4000-b6bf8000 r-xp  fe:07 764485 
/usr/lib/qt3/plugins/imageformats/libqmng.so 
b6bf8000-b6bf9000 rw-p 3000 fe:07 764485 
/usr/lib/qt3/plugins/imageformats/libqmng.so 
b6bf9000-b6c8e000 r--p  fe:07 681878 
/usr/share/fonts/truetype/ttf-dejavu/DejaVuSans.ttf 
b6c8e000-b6c94000 r--s  fe:07 17507 
/var/cache/fontconfig/945677eb7aeaf62f1d50efc3fb3ec7d8-x86.cache-2 
b6c94000-b6c95000 r--s  fe:07 17511 
/var/cache/fontconfig/99e8ed0e538f840c565b6ed5dad60d56-x86.cache-2 
b6c95000-b6c98000 r--s  fe:07 17508 
/var/cache/fontconfig/e383d7ea5fbe662a33d9b44caf393297-x86.cache-2 
b6c98000-b6c99000 r--s  fe:07 17504 
/var/cache/fontconfig/fd9505950c048a77dc4b710eb6a628ed-x86.cache-2 
b6c99000-b6c9a000 r--s  fe:07 17501 
/var/cache/fontconfig/a2ab74764b07279e7c36ddb1d302cf26-x86.cache-2 
b6c9a000-b6c9b000 r--s  fe:07 17484 
/var/cache/fontconfig/4c73fe0c47614734b17d736dbde7580a-x86.cache-2 
b6c9b000-b6c9d000 r--s  fe:07 17483 
/var/cache/fontconfig/646addb8444faa74ee138aa00ab0b6a0-x86.cache-2 
b6c9d000-b6ca r--s  fe:07 17482 
/var/cache/fontconfig/a755afe4a08bf5b97852ceb7400b47bc-x86.cache-2 
b6ca-b6ca7000 r--s  fe:07 17481 
/var/cache/fontconfig/6d41288fd70b0be22e8c3a91e032eec0-x86.cache-2 
b6ca7000-b6caa000 r--s  fe:07 17480 
/var/cache/fontconfig/de156ccd2eddbdc19d37a45b8b2aac9c-x86.cache-2 

Re: [Gambas-user] tableview catch event in edit mode

2008-11-04 Thread Doriano Blengino
Jaroslav Svec ha scritto:
 1) Is there possibility to catch Key.Code of tableview in edit mode? 
 It works for me only outside edit mode (using tableview_keypress).
No.
Tableview is composed of two native controls: a gridview and a 
(textbox or combobox).
When tableview enters edit mode a new, hidden control (the textbox) 
takes control. The tableview component doesn't care to raise events when 
they come from the textbox.
You can reimplement tableview, or modify it.

 2) If I use tableview.cancel() inside tableview_change() it does nothing.
 3) If I use tableview.cancel() inside tableview_save() the form which 
 owns tableview crashes.

 Tableview.cancel() should stop editing cell and return to browse mode. 
 Is it right?
 How can I use tableview.cancel()?
Sorry, don't know enough about these three questions. Surely Benoit can 
tell more.


Regards,
Doriano.



-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Multiple instances of Gambas ...

2008-11-04 Thread Jose J. Rodriguez
On 11/4/08, Gareth Bult [EMAIL PROTECTED] wrote:
  I have 4 screens .. I start Gambas on screen 3 .. then gambas2 will work 
 quite happily on screens 2,3 and 4 , but will give the dump as quoted if 
 started on screen 1... although I'm sure it wasn't working on 2 and 4 earlier.


FWIW, I just ran 2 instances of the Gambas2 IDE on virtual desktop
(VD) 1, then 2 on VD2, then tried it the other way around, with no
problems. Using Vector Linux 5.9.1 SOHO, KDE 3.5.9 and Gambas2-2.9.

Regards,
Joe1962

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Multiple instances of Gambas ...

2008-11-04 Thread M0E Lnx
Nice ;)


On Tue, Nov 4, 2008 at 2:23 PM, Jose J. Rodriguez [EMAIL PROTECTED] wrote:
 On 11/4/08, Gareth Bult [EMAIL PROTECTED] wrote:
  I have 4 screens .. I start Gambas on screen 3 .. then gambas2 will work 
 quite happily on screens 2,3 and 4 , but will give the dump as quoted if 
 started on screen 1... although I'm sure it wasn't working on 2 and 4 
 earlier.


 FWIW, I just ran 2 instances of the Gambas2 IDE on virtual desktop
 (VD) 1, then 2 on VD2, then tried it the other way around, with no
 problems. Using Vector Linux 5.9.1 SOHO, KDE 3.5.9 and Gambas2-2.9.

 Regards,
 Joe1962

 -
 This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
 Build the coolest Linux based applications with Moblin SDK  win great prizes
 Grand prize is a trip for two to an Open Source event anywhere in the world
 http://moblin-contest.org/redirect.php?banner_id=100url=/
 ___
 Gambas-user mailing list
 Gambas-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/gambas-user


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] Mysql query question

2008-11-04 Thread Ron
Hi,

I'm replacing my buggy mysql query's for correct ones...

All is well except for this one...

DIM sTable as String = remarks_tags

Main.hDB.Exec(SELECT text FROM   sTable   ORDER BY rand() LIMIT 1)
This works ok...

Replaced by...

Main.hDB.Exec(SELECT text FROM 1 ORDER BY rand() LIMIT 1, sTable)

Which results in an SQL query syntax error, is this correct behavior?

Any ideas?

Regards,
Ron_2nd

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] skiptaskbar question???????

2008-11-04 Thread Wellington de Souza Pinto

Hi!

in gambas2.9 svn

I create one form without border, skiptaskbar = true, mask = true with
transparent background image and one textbox control with setfocus in textbox.

when i run the program the form is not focus and not textbox too. I need click
in form to show the focus of textbox.

If i change the skiptaskbar = false the program work fine.

I need in my program one form with skiptaskbar = true, no border, transparent
background via mask = true. Is my login form.

Any ideia?

---
|/  Wellington de Souza Pinto
C o o ]  [EMAIL PROTECTED]
 ^
-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-
___
Para fazer uma ligação DDD pra perto ou pra longe, faz um 21. A Embratel tem
tarifas muito baratas esperando por você. Aproveite!


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Problem with READ on a UDP socket

2008-11-04 Thread Benoit Minisini
On mardi 4 novembre 2008, Gareth Bult wrote:
 Hi,

 I think I reported this quite a while ago but it still seems to be a
 problem ... using READ to try to acquire less than the entire available
 buffer doesn't seem to work .. and if I read the entire buffer, there's no
 obvious way to break the packet down into it's constituent parts ...

 Anyone any ideas?
 (and anyone any idea where the other 24 bytes are going ??)

 PRIVATE $udp AS UdpSocket

 PUBLIC SUB _new()

 $udp = NEW UdpSocket AS Socket
 $udp.Bind(2000)

 END

 PUBLIC SUB Socket_Read()

 DIM cmd AS Byte
 DIM siz AS Long

 PRINT Lof($udp)
 READ #$udp, cmd, 1
 PRINT Lof($udp)
 'READ #$udp, siz, 8 = generates error if uncommented

 END

 $shell echo R0011Hello World 123 |nc -u localhost 2000

 25
 0 === should be 24!

Can you try your code with Gambas 3?

I have changed many things in the gb.net component there, but I didn't 
backported them to Gambas 2. If it fixes your problem, I will do!

Regards,

-- 
Benoit Minisini

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] Problem with READ on a UDP socket

2008-11-04 Thread Gareth Bult
Hi, 

I think I reported this quite a while ago but it still seems to be a problem 
... using READ to try to acquire less than the entire available buffer doesn't 
seem to work .. and if I read the entire buffer, there's no obvious way to 
break the packet down into it's constituent parts ... 

Anyone any ideas? 
(and anyone any idea where the other 24 bytes are going ??) 

PRIVATE $udp AS UdpSocket 

PUBLIC SUB _new() 

$udp = NEW UdpSocket AS Socket 
$udp.Bind(2000) 

END 

PUBLIC SUB Socket_Read() 

DIM cmd AS Byte 
DIM siz AS Long 

PRINT Lof($udp) 
READ #$udp, cmd, 1 
PRINT Lof($udp) 
'READ #$udp, siz, 8 = generates error if uncommented 

END 

$shell echo R0011Hello World 123 |nc -u localhost 2000 

25 
0 === should be 24! 



-- 
Managing Director, Encryptec Limited 
Tel: 0845 5082719, Mob: 0785 3305393 
Email: [EMAIL PROTECTED] 
Statements made are at all times subject to Encryptec's Terms and Conditions of 
Business, which are available upon request. 
-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Multiple instances of Gambas ...

2008-11-04 Thread Benoit Minisini
On mardi 4 novembre 2008, Gareth Bult wrote:
 Hi,

 Again, would love to, unfortunately I just picked Gambas up for a small
 project and I've forgotten all the ins and outs of debugging, is there a
 URL you can point me at with the relevant instructions ?

 Gareth.


On the web site, in the troubleshooting section.

Anyway, you can get a backtrace by allowing core dumps, and running gdb on 
them.

$ ulimit -c 32000

$ ./gambas2.gambas
...

*crash*
...core dump

$ gdb gbx2 core dump file
...
(gdb) bt

Regards,

-- 
Benoit Minisini

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] skiptaskbar question???????

2008-11-04 Thread Benoit Minisini
On mardi 4 novembre 2008, Wellington de Souza Pinto wrote:
 Hi!

 in gambas2.9 svn

 I create one form without border, skiptaskbar = true, mask = true with
 transparent background image and one textbox control with setfocus in
 textbox.

 when i run the program the form is not focus and not textbox too. I need
 click in form to show the focus of textbox.

 If i change the skiptaskbar = false the program work fine.

 I need in my program one form with skiptaskbar = true, no border,
 transparent background via mask = true. Is my login form.

 Any ideia?


Can you send me your form in a small project (with the picture mask, and 
everything needed  to display it)?

-- 
Benoit Minisini

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Web Services: Working with WSDL

2008-11-04 Thread Benoit Minisini
On mardi 4 novembre 2008, birchy wrote:
 I'm fairly new to Gambas and really like it's improvements over VB6,
 however i'm finding that documentation and source code examples are quite
 poor. Many of my projects are web related and involve either scraping
 information from a web page or working with SOAP protocols. So this brings
 me a couple of questions:
 1) What is the best way to download and parse HTML? I'm currently using
 HttpClient to download the HTML and then parsing it manually via a function
 that uses Instr() and Mid().
 2) Both Java and .Net are able to auto-generate code from a WSDL file. Does
 Gambas have this feature in one of its libraries?

What is WSDL?

-- 
Benoit Minisini

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Mysql query question

2008-11-04 Thread Benoit Minisini
On mardi 4 novembre 2008, Ron wrote:
 Hi,

 I'm replacing my buggy mysql query's for correct ones...

 All is well except for this one...

 DIM sTable as String = remarks_tags

 Main.hDB.Exec(SELECT text FROM   sTable   ORDER BY rand() LIMIT 1)
 This works ok...

 Replaced by...

 Main.hDB.Exec(SELECT text FROM 1 ORDER BY rand() LIMIT 1, sTable)

 Which results in an SQL query syntax error, is this correct behavior?

 Any ideas?

 Regards,
 Ron_2nd


1, 2... are there for quoting SQL values, not SQL table or field names. 

Moreover, if you want to insert a table or field name in a SQL request, you 
should use the DB.Quote() function:

Main.hDB.Exec(SELECT text FROM   DB.Quote(sTable)   ORDER BY rand() LIMIT 
1)

Regards,

-- 
Benoit Minisini

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Web Services: Working with WSDL

2008-11-04 Thread birchy



Benoit Minisini wrote:
 What is WSDL?

http://en.wikipedia.org/wiki/Web_Services_Description_Language

I am very surprised that you've not heard of this. It is now very commonly
used as an API by websites that offer a programming interface. Some of the
larger ones are Google, Amazon, Paypal, Betfair, etc.


-- 
View this message in context: 
http://www.nabble.com/Web-Services%3A-Working-with-WSDL-tp20328779p20333544.html
Sent from the gambas-user mailing list archive at Nabble.com.


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Web Services: Working with WSDL

2008-11-04 Thread Benoit Minisini
On mercredi 5 novembre 2008, birchy wrote:
 Benoit Minisini wrote:
  What is WSDL?

 http://en.wikipedia.org/wiki/Web_Services_Description_Language

 I am very surprised that you've not heard of this. 

I'm not very fond of this sort of things.

 It is now very commonly 
 used as an API by websites that offer a programming interface. Some of the
 larger ones are Google, Amazon, Paypal, Betfair, etc.

When you are talking about generating code, you mean creating class proxies 
for the methods described by the WSDL XML syntax? Or accessing them 
transparently as Gambas classes and methods, the WSDL conversion being done 
on the fly and transparently?

-- 
Benoit Minisini

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] Problem with broadcasting UDP sockets - was Re: Problem with READ on a UDP socket

2008-11-04 Thread Benoit Minisini
On mardi 4 novembre 2008, Werner wrote:

 also, receiving udp broadcasts works only for one application. Any
 additional gambas application on the same machine throws
 a Cannot bind to that socket error.

 Best Regards
 Werner


Can you provide a little example that shows the problem?

-- 
Benoit Minisini

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Problem with READ on a UDP socket

2008-11-04 Thread Benoit Minisini
On mardi 4 novembre 2008, Gareth Bult wrote:
 Without that buffer, it is brain-fucking:

 No, I can live with that solution.. :-)

 It was using a pointer as a stream that I missed ..

 Many thanks,
 Gareth.


I have implemented a buffered UdpSocket in the revision #1669 of Gambas 3. If 
you could try it, it would be great!

Regards,

-- 
Benoit Minisini

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Mysql query question

2008-11-04 Thread Ron
Benoit Minisini wrote:
 On mardi 4 novembre 2008, Ron wrote:
   
 Hi,

 I'm replacing my buggy mysql query's for correct ones...

 All is well except for this one...

 DIM sTable as String = remarks_tags

 Main.hDB.Exec(SELECT text FROM   sTable   ORDER BY rand() LIMIT 1)
 This works ok...

 Replaced by...

 Main.hDB.Exec(SELECT text FROM 1 ORDER BY rand() LIMIT 1, sTable)

 Which results in an SQL query syntax error, is this correct behavior?

 Any ideas?

 Regards,
 Ron_2nd

 

 1, 2... are there for quoting SQL values, not SQL table or field names. 

 Moreover, if you want to insert a table or field name in a SQL request, you 
 should use the DB.Quote() function:

 Main.hDB.Exec(SELECT text FROM   DB.Quote(sTable)   ORDER BY rand() 
 LIMIT 
 1)

   

Ok got it, works ok now.

Thanks.



-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Problem with broadcasting UDP sockets - was Re: Problem with READ on a UDP socket

2008-11-04 Thread Doriano Blengino
Werner ha scritto:
 Benoit Minisini wrote:
   
 On mardi 4 novembre 2008, Werner wrote:
   
 
 also, receiving udp broadcasts works only for one application. Any
 additional gambas application on the same machine throws
 a Cannot bind to that socket error.

 Best Regards
 Werner

 
   
 Can you provide a little example that shows the problem?

   
 
 will do, but it might take a week or two. Obviously, more than one
 computer is needed and I'm a bit short right now.
   
The behaviour of cannot bind to that socket could be correct. On a 
single machine there can be only one process listening on a given port. 
So, if an application binds to a port, no other applications (neither 
another instance of the same) can bind to that port again.
This can be possible if the machine has more than one interface, say 
127.0.0.1 and 192.168.1.1. Then two programs can listen on the same 
port, but on different interfaces.


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user