jongminp@cae.wisc.edu (Jong-Min Park) (10/24/90)
I am currently using FoxBase+/Mac 2.00 at my educational site, where they only have a manual for PC version (:-<. I need to create a string mapping function, so I made my first XFCN, which reads a string argument and returns a string. The problem is, everytime I 'CALL <XFCNname> TO result WITH arg', heap memory is used up, and after several hundred calls, FoxBase crashes. My question is, does Foxbase disposes of the result handle that my XFCN returns? I used PasToZero function prior to returning the result string, but it wouldn't make sense to dispose of the handle from XFCN, then return it as a result, would it? PasToZero is the only function I used that allocates a heap. Somebody has to dispose of the return handle, but does Foxbase do that after calling my XFCN? Is there something I missed, such as doing HUNLOCK or setting to PURGEABLE to the heap? (I've referred to an example program downloaded from anon. ftp etc. and am sure I've followed the example) Please reply to jongminp@cae.wisc.edu if you know the answer or at least have a Mac version of the manual (what 'CALL' command is doing, etc.) Thank you. Jong-Min