f86_fredrik@fyvax2.fy.chalmers.se (05/07/90)
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. | +-------------------------+--------------------------------+------------------+