Re: [Gambas-user] Signal #11 when overriding Variant[] - Bug revived?

2012-06-26 Thread Emil Lenngren
If you use the JIT compiler, you can override native classes with classes
written in Gambas, but not override classes written in gambas with a native
one. I hope that makes sense..

/Emil

2012/6/24 Benoît Minisini 

> Le 24/06/2012 20:46, tobi a écrit :
> >
> > Alright, works.
> > I wonder how a bugfix could disappear but thanks.
> >
> > Regards,
> > Tobi
> >
>
> Because the bug was not really fixed, and the recent changes on the way
> classes are loaded woke it up again.
>
> And beware that it may break again, as you are not supposed to override
> native array classes at the moment. If it appears to work reliably, then
> it will become official in Gambas 3.3.
>
> 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
>
--
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] Signal #11 when overriding Variant[] - Bug revived?

2012-06-24 Thread Benoît Minisini
Le 24/06/2012 20:46, tobi a écrit :
>
> Alright, works.
> I wonder how a bugfix could disappear but thanks.
>
> Regards,
> Tobi
>

Because the bug was not really fixed, and the recent changes on the way 
classes are loaded woke it up again.

And beware that it may break again, as you are not supposed to override 
native array classes at the moment. If it appears to work reliably, then 
it will become official in Gambas 3.3.

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


Re: [Gambas-user] Signal #11 when overriding Variant[] - Bug revived?

2012-06-24 Thread tobi
On Sun, 24 Jun 2012, Benoît Minisini wrote:
> Le 24/06/2012 12:40, tobi a écrit :
> >
> > The demonstration project for our website is attached. I removed the Form 
> > containing a GridView to
> > sort and some stuff and replaced it by a simple module file to test it with 
> > the latest revision,
> > problem still present.
> >
> > Regards,
> > Tobi
> >
> 
> Can you check revision #4856?
> 
> -- 
> 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

Alright, works.
I wonder how a bugfix could disappear but thanks.

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] Signal #11 when overriding Variant[] - Bug revived?

2012-06-24 Thread Benoît Minisini
Le 24/06/2012 12:40, tobi a écrit :
>
> The demonstration project for our website is attached. I removed the Form 
> containing a GridView to
> sort and some stuff and replaced it by a simple module file to test it with 
> the latest revision,
> problem still present.
>
> Regards,
> Tobi
>

Can you check revision #4856?

-- 
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] Signal #11 when overriding Variant[] - Bug revived?

2012-06-24 Thread tobi
On Fri, 22 Jun 2012, Benoît Minisini wrote:
> Le 20/06/2012 21:38, tobi a écrit :
> > Hi Benoît,
> >
> > this afternoon, we discovered that with a newer revision the program I 
> > wrote to demonstrate sorting
> > of multi-dimensioned Variant[] broke. I again get Segfault when exporting 
> > an overridden Variant[]
> > class from my project (wasn't there a discussion about this recently?)
> > When I developed this program, I reported a bug which results in a Segfault 
> > that was fixed in
> > rev#4715. This seemed to be the result of
> >
> > [main/gbx/gbx_class.c]
> > --8<---
> > [...]
> > 1345 CLASS *array_type = (CLASS *)class->array_type;
> > [...]
> > --8<---
> >
> > where array_type gets 0xc (GB_T_VARIANT or something like that) and is used 
> > as a pointer without
> > further checking when overriding the Variant[] class (other native array 
> > classes may suffer from
> > similar problems). I don't know how you made this working for me (just 
> > tried to get back to that
> > revision to see, if something changed in that function but found nothing).
> > Can you remember? - the subject of the mails was "Segfault when overriding 
> > Variant[]" (1st May 2012).
> > Can you tell me something about the state of affairs?
> >
> > Regards,
> > Tobi
> >
> 
> Please send me the project that shows that bug again.
> 
> -- 
> 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

The demonstration project for our website is attached. I removed the Form 
containing a GridView to
sort and some stuff and replaced it by a simple module file to test it with the 
latest revision,
problem still present.

Regards,
Tobi


GridSort2.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


Re: [Gambas-user] Signal #11 when overriding Variant[] - Bug revived?

2012-06-22 Thread Benoît Minisini
Le 20/06/2012 21:38, tobi a écrit :
> Hi Benoît,
>
> this afternoon, we discovered that with a newer revision the program I wrote 
> to demonstrate sorting
> of multi-dimensioned Variant[] broke. I again get Segfault when exporting an 
> overridden Variant[]
> class from my project (wasn't there a discussion about this recently?)
> When I developed this program, I reported a bug which results in a Segfault 
> that was fixed in
> rev#4715. This seemed to be the result of
>
> [main/gbx/gbx_class.c]
> --8<---
> [...]
> 1345 CLASS *array_type = (CLASS *)class->array_type;
> [...]
> --8<---
>
> where array_type gets 0xc (GB_T_VARIANT or something like that) and is used 
> as a pointer without
> further checking when overriding the Variant[] class (other native array 
> classes may suffer from
> similar problems). I don't know how you made this working for me (just tried 
> to get back to that
> revision to see, if something changed in that function but found nothing).
> Can you remember? - the subject of the mails was "Segfault when overriding 
> Variant[]" (1st May 2012).
> Can you tell me something about the state of affairs?
>
> Regards,
> Tobi
>

Please send me the project that shows that bug again.

-- 
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