[PD] msgfile bug

Ed Kelly morph_2016 at yahoo.co.uk
Tue Sep 4 17:02:42 CEST 2007


Hi all,

this one's for IOhannes, (hey :D)

The msgfile bug I found was this: When you do a [goto $1 ( followed by a [replace $1 ( message to an empty msgfile, PD crashes. Obviously it's trying to modify data that doesn't exist, but it would be nice to have an exception handler for this.

Of course, if you fill the msgfile with lines it won't happen, and if PD doesn't crash you'll never know the replace didn't work. Perhaps it could fill all empty lines up to the one you're trying to replace with 0s?

Or perhaps it could just not crash PD ;)

Here's a patch...
Ed




Lone Shark "Aviation" out now on http://www.pyramidtransmissions.com
http://www.myspace.com/sharktracks
       
---------------------------------
 Yahoo! Answers - Get better answers from someone who knows. Tryit now.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20070904/a27912b6/attachment.htm>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: msgfile-crash.pd
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20070904/a27912b6/attachment.txt>


More information about the Pd-list mailing list