Hi all,
Often, when I get an error, such as for example "inlet: no method for 'list'", and I do a "Find last error", I get the message: ...sorry, I couldn't find the source of last error
Can anybody explain which situations can cause PD to be unable to find the error? It may (or may not) give me some clue about the kinf of error.
Thank you in advance, Matteo Sisti Sette -- Email.it, the professional e-mail, gratis per te: http://www.email.it/f
Sponsor: Monitor LCD 17 160 - Cdr Memorex da 0,16 - Multifunzione Canon 63,94 - Stampa foto digitale da 0,06 Custodia dvd da 0,11. Questo e molto altro ancora su atomicshop.it Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=6578&d=20070608
Matteo.sistisette wrote:
Hi all,
Often, when I get an error, such as for example "inlet: no method for 'list'", and I do a "Find last error", I get the message: ...sorry, I couldn't find the source of last error
Can anybody explain which situations can cause PD to be unable to find the error? It may (or may not) give me some clue about the kinf of error.
there are several ways to print out an error in pd (i mean, on the C-side of things) one of them is to just tell the user that what they read is an error. (e.g you could print "hello world" to the console; and you could print "ERROR: hello world" to the console; for pd these are just 2 strings; what makes the 2nd one an error-message is only your interpretation). pd does not track which object's code sends a certain message to the console. so when an object uses this simple kind of error-message, there is no way to track the error back to it's source (or rather: symptom)
then there is a 2nd type of error message, which links a message to a certain object. when an object uses this special kind of error message, you will be able to track the error with the "find last error" menu.
a C-programmer can often choose to use one if these variants; using the 2nd method is a tiny bit more complicated (and requires more typing); this is most likely the reason why people do not explicitely use it. the 2nd reason not to use it is, that you obviously have to know the object (e.g. by holding a reference) that emits the error message in order to attach the error to it. this is often not that simple, at least in the way, pd is implemented.
mfg.asdr IOhannes