Re: [Gambas-user] Segfault when overriding Variant[]

2012-05-05 Thread tobi
On Sat, 05 May 2012, Benoît Minisini wrote:
 Le 04/05/2012 21:59, tobi a écrit :
  On Tue, 01 May 2012, tobi wrote:
 
  Hu hu. It should be possible to override any class, but please provide a
  project so that I can debug!
 
  --
  Benoît Minisini
 
  --
  Live Security Virtual Conference
  Exclusive live event will cover all the ways today's security and
  threat landscape has changed and how IT managers can respond. Discussions
  will include endpoint security, mobile security and the latest in malware
  threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
  ___
  Gambas-user mailing list
  Gambas-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/gambas-user
 
  Again, the attached project is not created with the IDE, I keep copying 
  the project structure of one
  to another for months ;) But it works fine with gbc3 and gbx3...
 
  Could you reproduce? I don't want to appear unpatient - I already do, I 
  know ;) - but we really want
  to override Variant[] over here to finish a chapter in our book.
 
 
 The bug should have been fixed in revision #4715.
 
 Regards,
 
 -- 
 Benoît Minisini
 
 --
 Live Security Virtual Conference
 Exclusive live event will cover all the ways today's security and 
 threat landscape has changed and how IT managers can respond. Discussions 
 will include endpoint security, mobile security and the latest in malware 
 threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
 ___
 Gambas-user mailing list
 Gambas-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/gambas-user

Works great!
Now I can easily sort a two-dimensional Variant matrix and Hans will finish his 
texts :)

Regards,
Tobi

--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Segfault when overriding Variant[]

2012-05-04 Thread tobi
On Tue, 01 May 2012, tobi wrote:
  
  Hu hu. It should be possible to override any class, but please provide a 
  project so that I can debug!
  
  -- 
  Benoît Minisini
  
  --
  Live Security Virtual Conference
  Exclusive live event will cover all the ways today's security and 
  threat landscape has changed and how IT managers can respond. Discussions 
  will include endpoint security, mobile security and the latest in malware 
  threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
  ___
  Gambas-user mailing list
  Gambas-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/gambas-user
 
 Again, the attached project is not created with the IDE, I keep copying the 
 project structure of one
 to another for months ;) But it works fine with gbc3 and gbx3...

Could you reproduce? I don't want to appear unpatient - I already do, I know ;) 
- but we really want
to override Variant[] over here to finish a chapter in our book.

--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Segfault when overriding Variant[]

2012-05-04 Thread Benoît Minisini
Le 04/05/2012 21:59, tobi a écrit :
 On Tue, 01 May 2012, tobi wrote:

 Hu hu. It should be possible to override any class, but please provide a
 project so that I can debug!

 --
 Benoît Minisini

 --
 Live Security Virtual Conference
 Exclusive live event will cover all the ways today's security and
 threat landscape has changed and how IT managers can respond. Discussions
 will include endpoint security, mobile security and the latest in malware
 threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
 ___
 Gambas-user mailing list
 Gambas-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/gambas-user

 Again, the attached project is not created with the IDE, I keep copying the 
 project structure of one
 to another for months ;) But it works fine with gbc3 and gbx3...

 Could you reproduce? I don't want to appear unpatient - I already do, I know 
 ;) - but we really want
 to override Variant[] over here to finish a chapter in our book.


The bug should have been fixed in revision #4715.

Regards,

-- 
Benoît Minisini

--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] Segfault when overriding Variant[]

2012-05-01 Thread tobi
Hi,

I promptly get a segfault when I try to create an instance of my extended 
Variant[]:

.src/Variant[].class
--8-
' Gambas class file

Export

Public Sub _compare(hV As Variant[]) As Integer
  Return 0
End
--8-

.src/MMain.module
--8-
' Gambas module file

Public Sub Main()
  Dim hV As New Variant[]
End
--8-

I hope that it's possible to override native classes?

Regards,
Tobi

--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Segfault when overriding Variant[]

2012-05-01 Thread tobi
On Tue, 01 May 2012, tobi wrote:
 Hi,
 
 I promptly get a segfault when I try to create an instance of my extended 
 Variant[]:
 
 .src/Variant[].class
 --8-
 ' Gambas class file
 
 Export
 
 Public Sub _compare(hV As Variant[]) As Integer
   Return 0
 End
 --8-
 
 .src/MMain.module
 --8-
 ' Gambas module file
 
 Public Sub Main()
   Dim hV As New Variant[]
 End
 --8-
 
 I hope that it's possible to override native classes?
 
 Regards,
 Tobi

Oh, I should look first and then post...
Segfault comes from
gbx_class.c:1358:
array_type-array_class = class;
but before that in the same function:
CLASS *array_type = (CLASS *)class-array_type;
and look at:
(gdb) print class-array_type
$2 = 12

which is GB_T_VARIANT, as supposed to be since I exported a Variant[].
I think creating that as a pointer is a bug. (Creating arrays of native 
datatypes not expected?)

The article about Gambas object model says that gb.qt Application extends gb 
Application so, I am
allowed to extend native classes!

Regards,
Tobi

--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Segfault when overriding Variant[]

2012-05-01 Thread Benoît Minisini
Le 01/05/2012 10:47, tobi a écrit :
 On Tue, 01 May 2012, tobi wrote:
 Hi,

 I promptly get a segfault when I try to create an instance of my extended 
 Variant[]:

 .src/Variant[].class
 --8-
 ' Gambas class file

 Export

 Public Sub _compare(hV As Variant[]) As Integer
Return 0
 End
 --8-

 .src/MMain.module
 --8-
 ' Gambas module file

 Public Sub Main()
Dim hV As New Variant[]
 End
 --8-

 I hope that it's possible to override native classes?

 Regards,
 Tobi

 Oh, I should look first and then post...
 Segfault comes from
 gbx_class.c:1358:
   array_type-array_class = class;
 but before that in the same function:
   CLASS *array_type = (CLASS *)class-array_type;
 and look at:
 (gdb) print class-array_type
 $2 = 12

 which is GB_T_VARIANT, as supposed to be since I exported a Variant[].
 I think creating that as a pointer is a bug. (Creating arrays of native 
 datatypes not expected?)

 The article about Gambas object model says that gb.qt Application extends gb 
 Application so, I am
 allowed to extend native classes!

 Regards,
 Tobi


Hu hu. It should be possible to override any class, but please provide a 
project so that I can debug!

-- 
Benoît Minisini

--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Segfault when overriding Variant[]

2012-05-01 Thread tobi
On Tue, 01 May 2012, Benoît Minisini wrote:
 Le 01/05/2012 10:47, tobi a écrit :
  On Tue, 01 May 2012, tobi wrote:
  Hi,
 
  I promptly get a segfault when I try to create an instance of my extended 
  Variant[]:
 
  .src/Variant[].class
  --8-
  ' Gambas class file
 
  Export
 
  Public Sub _compare(hV As Variant[]) As Integer
 Return 0
  End
  --8-
 
  .src/MMain.module
  --8-
  ' Gambas module file
 
  Public Sub Main()
 Dim hV As New Variant[]
  End
  --8-
 
  I hope that it's possible to override native classes?
 
  Regards,
  Tobi
 
  Oh, I should look first and then post...
  Segfault comes from
  gbx_class.c:1358:
  array_type-array_class = class;
  but before that in the same function:
  CLASS *array_type = (CLASS *)class-array_type;
  and look at:
  (gdb) print class-array_type
  $2 = 12
 
  which is GB_T_VARIANT, as supposed to be since I exported a Variant[].
  I think creating that as a pointer is a bug. (Creating arrays of native 
  datatypes not expected?)
 
  The article about Gambas object model says that gb.qt Application extends 
  gb Application so, I am
  allowed to extend native classes!
 
  Regards,
  Tobi
 
 
 Hu hu. It should be possible to override any class, but please provide a 
 project so that I can debug!
 
 -- 
 Benoît Minisini
 
 --
 Live Security Virtual Conference
 Exclusive live event will cover all the ways today's security and 
 threat landscape has changed and how IT managers can respond. Discussions 
 will include endpoint security, mobile security and the latest in malware 
 threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
 ___
 Gambas-user mailing list
 Gambas-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/gambas-user

Again, the attached project is not created with the IDE, I keep copying the 
project structure of one
to another for months ;) But it works fine with gbc3 and gbx3...


test4.tar
Description: Unix tar archive
--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user