overflow of gReturnValue

Cees de Groot cg at cdegroot.com
Thu Mar 3 13:51:21 UTC 2005


Hi,

I found out why playing Gremlin on the tree control crashes at times -  
Squeak code doesn't get a chance of fetching return values, and this  
overflows gReturnValue.

In my custom build, I increased the size of the array to 1000 instead of  
10, hoping that my users don't have the stamina to keep clicking around  
like wild monkeys for such a long time. However, I feel a more permantent  
fix is in order (maybe dynamic growing/shrinking of the array - we're  
living in 'user time' in this code, so the performance hit of using  
something more advanced than an unchecked array won't be that large, I  
think)...

On a related note: shouldn't the set/getReturnValue code belong in a  
critical section? Or is everything with wx still handled in a single  
native thread?



More information about the Wxsqueak mailing list