Re: [LAD] Segfault when trying to dereference __midi_event.buffer (c++ newbie question)

From: Shani Hadiyanto Pribadi <shanipribadi@email-addr-hidden>
Date: Wed Nov 21 2012 - 14:49:36 EET

That's it. Apparently the cause of segfault is dereferencing the pointer
when there's no data.
After adding checks for available data the segfault does not happen anymore.

It never occured to me that was the cause because on the C version,
accessing the pointer when there's no data
returns 0x6a but didn't segfault.

_______________________________________________
Linux-audio-dev mailing list
Linux-audio-dev@email-addr-hidden
http://lists.linuxaudio.org/listinfo/linux-audio-dev
Received on Wed Nov 21 16:15:03 2012

This archive was generated by hypermail 2.1.8 : Wed Nov 21 2012 - 16:15:03 EET