Hi,
I've developed an pd external but once inserted in pd, if a signal is generated (even if it's not linked to my external), pd gets a seg-fault and closes... how could I debug this ?!?
any ideia of what could be causing this ?!?
dzedzar
External Debugging
Hi,
I've developed an pd external but once inserted in pd, if a signal is generated (even if it's not linked to my external), pd gets a seg-fault and closes... how could I debug this ?!?
any ideia of what could be causing this ?!?
dzedzar
Tried some options?
-d <debug level.
-verbose
-nogui
Those have all been useful to me in the past.
From a code POV try adding some bp watches, especially either side of the first call to pd_new and see if the pointer returned is garbage or not. If some object instance exists and is OK until the audio engine is engaged then something is amiss at the point pd sends a dsp message to every object on the sheet to see if it has an inlet~ method.
*disclaimer: I've never written a pd extern but i just read the HOWTO a few days ago
and its still fresh in my mind. Hopefully someone more experienced will have advice.
Use the Source.
Oops! Looks like something went wrong!