[futurebasic] Re: [FB] Async Routines

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : January 1999 : Group Archive : Group : All Groups

From: Rick Brown <rbrown@...>
Date: Thu, 28 Jan 1999 18:06:59 -0600

Brian Victor wrote:

> On Wed, 27 Jan 1999 Greg_Neagle@... wrote:
> >In message ID <Pine.LNX.4.05.9901271404250.14010-100000@...> on
> >1/27/99, Brian Victor wrote:
> >> My biggest question of the day: can the variables for the ENTERPROC used
> >> as an ASR be local to the main program, or do they have to be global?
> >I can answer that last bit.  They must be global.
>
> Bingo!  There go the crashes!  Thanks! :)

I'm curious about this.  Using global variables in the ENTERPROC obviously
fixed Brian's problem; but I just about never use global variables in ENTERPROC
callback routines, and I rarely encounter any problems.  Is there some reason
that globals are preferable?

- Rick