Thanks Steven, When I have some time I'll try to make a simplified version that causes the crash and send it to you. It is actually the same project I sent you before for testing my problems with Blue and the API. I built Csond from CVS recently and started having this problem with the UDO calls. The first time the problematic Csound instrument is triggered by pressing one key in my MIDI controller, the instruments works fine but if I release the note and press it again (waiting a few seconds in between) then it crashes with the mfree() error. If I press one key and keep it down, then press a second one it doesn't crash, but then if I release the second key without releasing the first, and press that second key again then it crashes. If I remove the call to the UDO it never crashes. I'm sure is not the UDO since, as I said in my previous email, I simplified it so it only assigns a value to a k-rate variable, and still the instrument crashes. I hope this information can give you or someone else an idea of what could be wrong. Cheers, Hector On Wed, Oct 29, 2008 at 3:04 AM, Steven Yi wrote: > Hi Hector, > > The mfree error message means Csound tried to free up memory but > couldn't. It could possibly be buggy code. Could you post the test > CSD here? (or email me offlist if you'd rather do that) > > Thanks! > steven > > > On Tue, Oct 28, 2008 at 10:02 AM, Hector Centeno wrote: >> Hi, >> >> I'm trying to debug a orchestra that keeps crashing with this error message: >> >> Csound tidy up: Segmentation fault >> *** internal error: mfree() called with invalid pointer (0x84cdb40) >> >> The orchestra is being used in realtime and the error seems to happen >> when a UDO is called by a midi triggered instrument. I simplified the >> UDO in order to debug it so it just asigns a value to a k-rate >> variable (originally the UDO would do operations on tables) and the >> only change seems to be that the crash happens after a larger number >> of instances of that instrument are triggered. If I comment the call >> to the UDO then it stops crashing. The whole project is large (several >> instruments, over 30 tables, lots of PV processing) so I wonder if I'm >> hitting some limit here. I have 2 gigs of RAM and the system reports >> using only 21% of it. >> >> What could be the cause of such invalid pointer error? >> >> Thanks, >> >> >> Hector >> >> >> Send bugs reports to this list. >> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound" >> > > > Send bugs reports to this list. > To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound" >