Re: STRANGE SEGFAULT



>The code "seems" ok, so I have tested diferent solutions, in the last, I have 
>decided to lock memory using mlockall(), when using it, application runs ok, 
>I have no much experience on direct system call programming so I can't 
>understand this segfault. 

if you don't understand this segfault, i suggest you stay away from
mlockall() for a fairly long period of time (units of weeks or
months). mlockall() has absolutely *nothing* to do with your problem.

>The application is running 2 threads , the first for the gtk_main loop, and 
>the second runs a sound  writer to /dev/dsp loop.

did you read the FAQ entry about threads? www.gtk.org

--p



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]