perl.xs...RE: problem with newSViv and changing int value by Kort, Eric- January 29, 2008 Nicholas Clark wrote> Sent: Tuesday, January 29, 2008 5:16 AM> To: Kort, Eric> Cc: &39;perl-xsperl.org&39;> Subject: Re: problem with newSViv and changing int value>>> On Mon, Jan 28, 2008 at 05:06:55PM -0500, Kort, Eric wrote:> > Unfortunately, when I attempt to recreate the error I am about to> > describe in a tidy little function, I can&39;t. But within the larger> > context of my image processing routine, I am encountering the> > following...http://www.nntp.perl.org/group/perl.xs/2008/01/msg2442.html Re: problem with newSViv and changing int value by Nicholas Clark- January 29, 2008 On Mon, Jan 28, 2008 at 05:06:55PM -0500, Kort, Eric wrote:> Unfortunately, when I attempt to recreate the error I am about to describe in a tidy little function, I can&39;t. But within the larger context of my image processing routine, I am encountering the following strangeness:> glibc detected perl: munmap_chunk(): invalid pointer: 0x00007fff7f692410 As you seem to be on Linux, have you tried using valgrind on the offendingprogram The cause might actually be somewhere completely...http://www.nntp.perl.org/group/perl.xs/2008/01/msg2441.html problem with newSViv and changing int value by Kort, Eric- January 28, 2008 Unfortunately, when I attempt to recreate the error I am about to describe in a tidy little function, I can&39;t. But within the larger context of my image processing routine, I am encountering the following strangeness:I am trying to update an element of an AV using av_store, and all is well if I do this:int newval;...for(y = 1; y < iGridHeight - 1; y++) for(x = 1; x < iGridWidth - 1; x++) newval = 12; av_store(avGrid, y iGridWidth + x,...http://www.nntp.perl.org/group/perl.xs/2008/01/msg2440.html Re: OVERLOAD by Salvador Fandio- January 17, 2008 Hi> As a workaround, I suggest removing the OVERLOAD stuff from your XS code> and putting something like this in your .pm file:> > package Ogre::Animation;> > use overload> &39;==&39; => sub &Ogre::Animation::cmp ,> fallback => 1;> I think you mean...use overload &39;==&39; => &Ogre::Animation::cmp, fallback => 1;- Salvahttp://www.nntp.perl.org/group/perl.xs/2008/01/msg2439.html |