Snapshots crashing 2.2 IDE & standalones

Ian Wood ian at azurevision.co.uk
Wed Apr 7 03:06:01 EDT 2004


This is in bugzilla #1457, but as it crashes the IDE with no warning I 
thought it was worth mentioning on the list as well, due to the 
possibilities of data loss...

======================================
the syntax:
    export snapshot from rect <rect> of window (the windowId of this 
stack) to...
makes RR 2.2 unexpectifly quit, while working fine in 2.2RC2.

Workaround is (thanks Kevin):
    put globalLoc(<topLeft>),globalLoc(<botRight>) into tRect
    export snapshot from rect tRect to...

----------
Posted by RevZilla 1.1.2

------- Additional Comment #1 From Ian Wood 2004-04-06 20:48 -------
This  happens with both import and export snapshot, and seems to be the 
'of windowID'
bit that is causing the problem, just doing 'import snapshot' and using 
the crosshairs is
fine.

The given workaround just gives an 'Expression: double binary operator' 
error when run
on 2.2, and doesn't help much when taking a snapshot of a particular 
object anyway.

Try:
   put (left of this stack + left of player 1),(top of this stack + top 
of player 1),(left of this stack
+ width of player 1 + left of player 1),(top of this stack + top of 
player 1 + height of player
1) into tRect

Replacing 'player 1' with the name of your object.
======================================

Ian



More information about the use-livecode mailing list