Setting the dgText locks Revolution

Trevor DeVore lists at mangomultimedia.com
Wed Jan 20 17:08:05 EST 2010


On Jan 20, 2010, at 4:25 PM, Bob Sneidar wrote:

> Bingo! That did the trick. So would I be correct in saying that the  
> principle here is, whenever doing anything to modify the data in a  
> datagrid, use send in time?

The general rule is that if the object that is running the current  
script is going to be deleted then use send in time to delete it.  
Doing so should generate an error though, not lock up Rev.

I'm not sure that is the issue here though. Your scripts are in the  
Data Grid group script so this shouldn't be an issue.

I've had issues with dragDrop causing crashes before myself though.  
For example, I do some image processing in an app when the user drops  
images onto a Data Grid in an app. This would sometimes causes crashes  
until I moved the processing outside the dragDrop event.

So is the crash caused by an error occurring during Data Grid redraw?  
Maybe. Or maybe there are some operations that can cause Rev to become  
upset during drag operations and the Data Grid exposes them. I haven't  
fully explored this yet but IIRC the crash logs I've looked at on OS X  
were complaining about the drag event loop.

-- 
Trevor DeVore
Blue Mango Learning Systems
ScreenSteps: http://www.screensteps.com
Releasable Revolution Resources for Developers: http://revolution.bluemangolearning.com



More information about the use-livecode mailing list