[comp.sys.mac.hypercard] problem with find in hypercard 1.2.2 under multifinder

dak@mips.COM (Dave Kearney) (11/01/89)

Greetings,

I have a problem using hypercard 1.2.2 under multifinder that I hope someone
can help me with.  I have a find button that has the following script:

on mouseUp
  global findit
  
  go to first card of this background
  
  ask "Find what?" with findit
  if it is not "cancel" then
    type "find" && quote & it & quote & return
    put it into findit
  end if
end mouseup

The type command allows the user to continue typing 'return' after the
first find for successive finds of the same text.  And I place the
string in a global so that the next time the user hits the button the
same search string is available.

I used the button for a long time without problems.  But now under
multifinder I get an error dialog "Out of memory".  And after several
finds I get "Hypercard unexpectedly quit." and hypercard quits.  I have
5 megs of memory in my SE30.  I have also increased the applications
size of hypercard to 1500k with no luck.  I must add that the following
script without "findit" works ok so far:

on mouseUp
  go to first card of this background
  
  ask "Find what?"
  if it is not "cancel" then
    type "find" && quote & it & quote & return
  end if
end mouseup

The stacks that I have been using this on are between 200 and 500k with 1 
background.

Has anyone else seen this?  Or... even better... does anyone have a better
script for doing what I have been doing?


Thanx in advance for your help...

Dave

-- 
David A. Kearney                                     MIPS Computer Systems, Inc.
{ames,decwrl,pyramid}!mips!dak         928 Arques Ave.      Sunnyvale, CA  94086
dak@abbott.mips.COM (dak%mips.COM@ames.arc.nasa.gov)             +1 408 991-0481
====== I'm not a fatalist... But even if I was, what could I do about it? ======