Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!njin!uupsi!sunic!chalmers!fyvax2.fy.chalmers.se!f86_fredrik From: f86_fredrik@fyvax2.fy.chalmers.se Newsgroups: comp.sys.mac.hypercard Subject: XFCN in SuperCard behaves strangely! Message-ID: <246@fyvax2.fy.chalmers.se> Date: 6 May 90 18:36:31 GMT Organization: Chalmers Univ. of Technology, Gothenburg, Sweden Lines: 18 I have a problem with an XFCN for SuperCard. Basically, it maintains a counter in a global variable (THINK C) which is incremented every time the function is called and the value is returned. The problem is that it SOMETIMES returns a random (huge) value instead of the proper one. It then either continues with the correct value or with the new, random one. I can guess that it might mean trouble relying on global values to be maintained across calls to an external. In HyperCard I could (I think) fixed this by setting the "locked"-bit of the resource, but this is not possible in SuperCard. Does anyone have a solution to this? Thanks, +-------------------------+--------------------------------+------------------+ | Sven Axelsson | d83_sven_a@tekno.chalmers.se | DISCLAIMER: | | dep:t of Linguistics | (^^ best ^^) | | | univ. of Gothenburg | dlv_sa@hum.gu.se | This is not | | SWEDEN | usdsa@seguc21.bitnet | a disclaimer. | +-------------------------+--------------------------------+------------------+