[comp.sys.mac.hypercard] Globals, Think C, and XCMDs

jcocon@hubcap.clemson.edu (james c oconnor) (04/20/91)

I have written an xcmd to put up a dialog and ask for userid and
password.  The password is only displayed as generic characters.
I use the filterproc of modaldialog for this purpose.  In order
to maintain the password I set up a global variable.  I am 
reasonably sure that I don't have any bugs, but my stack gets 
corrupted (and the machine sometimes hangs) when I call my xcmd.

Reasonably sure of no bugs - I made the xcmd a standalone application
and used Think C (4.0) debugger to be sure that my string references
went to the right place, etc.  No matter what I did the stand along
wouldn't crash.

So - when I got the xcmd stuff from Think C they said to beware
because they weren't 100% sure everything was a-ok.  I thought I'd
ask if anyone had a suggestion.

Thanks for help.
Jim