Crashing Problem on MacOS/RunRev 2.2

David Burgun dburgun at dsl.pipex.com
Thu Apr 29 16:25:14 EDT 2004


Hi,

Could someone verify that this causes a crash, if so I'll report it as a bug.

On a Editable Field, place the following script:

function CheckKey theKey
if theKey is a number then return true
if theKey is a "," then return false 
<------------These cause the crash.
if theKey is a "-" then return false               <------------These 
cause the crash.

return true
end CheckKey


on keyDown theKey
  get CheckKey(theKey)
  if it is false then
     beep
     exit keyDown

pass keyDown
end KeyDown

If I change it to the (I assume) correct syntax:

if theKey = "," then return false
if theKey ="-" then return false

All is fine.

When the bad lines get executed, they cause a complete and utter wipe 
out of the system, I hard restart is needed.

All the Best
Dave


More information about the use-livecode mailing list