Re: [LAD] C - Change in memory causing seg.fault (but why?)

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Muffinman <news@...>
Cc: <linux-audio-dev@...>
Date: Thursday, November 8, 2012 - 9:02 pm

On Thu, Nov 8, 2012 at 3:42 PM, Muffinman wrote:

> I'm working on a little app utilizing 'lasound' and I've got bassically

You never allocate memory for the pointer long *outvl after you create
it, but then try to point to a value. You need to use malloc() to
initialize the memory for that pointer before you can use it.

Brett W. McCoy --
"In the rhythm of music a secret is hidden; If I were to divulge it,
it would overturn the world."
-- Jelaleddin Rumi
Linux-audio-dev mailing list

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [LAD] C - Change in memory causing seg.fault (but why?), Brett McCoy, (Thu Nov 8, 9:02 pm)