| No, memory allocated with AuxAlloc can be used like any other memory.
You need to check whether you code is correct. The segfault is probably to do
with some bug you introduced when
accessing the memory.
Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy
Maynooth University
Ireland
> On 9 Nov 2018, at 02:03, DariusPetermann wrote:
>
> Hi All,
>
> I am putting together a simple test opcode and unfortunately running into
> segmentation fault errors that are consistently rising at the very end of
> the performance, as follow:
>
> Score finished in csoundPerform().
> csound command: Segmentation fault
>
> There is nothing complex nor sophisticated about what the opcode is doing
> inside its performance function, however I am using an AUXCH structure as a
> circular buffer and noticed that when getting rid of this part, the error
> wouldn't rise anymore. I have read somewhere that the content of the AUXCH
> structure should be considered as read-only. Is this true ?
>
> If AUXCH is not the way to go for circular buffing operations, that probably
> means I'll have to take care of the alloc/dealloc of my MYFLT buffers
> manually. If this is the case, what is the standard practice for memory
> freeing ? Is there a deinit callback that I should be aware of ?
>
> Regards,
> Darius
>
>
>
> --
> Sent from: http://csound.1045644.n5.nabble.com/Csound-General-f1093014.html
>
> Csound mailing list
> Csound@listserv.heanet.ie
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
> Send bugs reports to
> https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here
Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here |