Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Tetris and javascript



On 23 May 2005, at 19:12, Pierre-Olivier Latour wrote:

So far, we found two bugs in _javascript_:


2) _javascript_s may corrupt memory when writing more than once to the same output e.g.

This is really useful. I've amended my composition to not do this (was only doing it in a couple of places anyway) and it made no difference :-(.  However, taking your information as a starting point I figured that making many changes to a variable taken from an output could trigger the same problem:

(at startup)
myArray = new array
outputs[2]=myArray

(normal processing)
myArray = outputs[2]
<lots of changes to myArray>
outputs[2]=myArray


Changing to this structure:

(normal processing)
tmpArray = new array
for (a=0;a<n;a++) myArray[a]=tmpArray[a]
<lots of changes to myArray>
outputs[2]=myArray

has made my composition really stable. So I'm going to spend a bit more time on it and post to quartzcomps. Thanks again for the bug hints!

Edward
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Quartzcomposer-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quartzcomposer-dev/email@hidden

This email sent to email@hidden

References: 
 >Tetris and javascript (From: Will Thimbleby <email@hidden>)
 >Re: Tetris and javascript (From: Edward Brown <email@hidden>)
 >Re: Tetris and javascript (From: Pierre-Olivier Latour <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.