Path: utzoo!attcan!uunet!cs.utexas.edu!mcguire From: mcguire@cs.utexas.edu (Tommy Marcus McGuire) Newsgroups: comp.sys.mac.hypercard Subject: Re: Is PasToZero necessary? Keywords: XCMD's, PasToZero Message-ID: <9763@cs.utexas.edu> Date: 6 Jul 90 18:25:10 GMT References: <12477@june.cs.washington.edu> Sender: news@cs.utexas.edu Organization: U. Texas CS Dept., Austin, Texas Lines: 8 I believe that PasToZero does allocate the space for the handle and the string for returnValue. Your problem might be with the char resultStr[80]; declaration. Doesn't the space allocated for the string itself go away when your XCMD returns? Rather than calling PasToZero, though, you could allocate the space for the string on the heap yourself. Tommy McGuire