Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!spool.mu.edu!sol.ctr.columbia.edu!emory!gatech!hubcap!jcocon From: jcocon@hubcap.clemson.edu (james c oconnor) Newsgroups: comp.sys.mac.hypercard Subject: Globals, Think C, and XCMDs Message-ID: <1991Apr19.204119.3852@hubcap.clemson.edu> Date: 19 Apr 91 20:41:19 GMT Distribution: comp Organization: Clemson University Lines: 18 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