Subject: | Re: Form USES Global | Explicit
| Date: | Wed, 4 Jul 2012 09:28:47 -0500
| From: | "Kevin Zawicki" <numberjack@wi.rr.com.nospam4me>
| Newsgroups: | pnews.paradox-programming
|
right
The deadly embrace occurs when using the uses libaryName enduses and not
specifying each method.
I think (only) in Paradox 7 or 9 16bit and also when compiling source. The
library you are compiling can't as it references the other library which
references itself and you get a compile error.
and wow, I found my original thread on this in this newsgroup from
2/12/2002.
"Tom Krieg" <"Please use the website contact form"> wrote in message
news:4ff4460c$1@pnews.thedbcommunity.com...
> This is my understanding. In one large application I have about 40
> libraries with hundreds of methods, and about 200 forms, each calling
> libraries and their associated methods as required. I share dozens of
> variables and probably a dozen dynArrays (some quite large) as well as
> numerous TCursors between forms and libraries and between libraries. I've
> never had a problem with memory caused by mis-use of libraries and I've
> never had a deadly embrace.
>
> On 4/07/2012 4:46 PM, Kevin Zawicki wrote:
>> Right, global to desk top is default
>>
>> but if I open a library on a form init, then open another form that opens
>> the same library the library file is not loaded again a second time,
>> doesn't
>> the second open just create a channel to the already open library?
>>
>> This is what I do not understand... if libraries are global to desktop
>> (this is the default) a single library is never opened more than once,
>> the
>> second open will not load another into memory.
>>
>
> --
> Tom Krieg
>
> ---------------
> http://www.krieg.com.au
> Please use the contact page to contact me via email
>
>
|