[Date Prev][Date Next][Subject Prev][Subject Next][
Date Index][
Subject Index]
Re: Xy3 memory
- Subject: Re: Xy3 memory
- From: Myron Gochnauer goch@xxxxxxxx
- Date: Thu, 20 May 1999 17:35:20 -0300
> I wrote a XyW3.57 macro that opens
> the same 144+K file in two windows and in the second
> instance jumps to a phrase that first occurs two-thirds
> of the way through.
This works for me as well. The problem is not one of "ordinary" text-space
memory. With the 100+K file loaded func ME reports 332K free. The XPL
program "views.pm" (which is part of XYWPMKIT.ZIP on the web archive) allows
to you switch between two (or up to 9) different "views" of the *same copy*
of the same file, so any changes in one view are automatically reflected in
the other views (since they are "views" of the same working copy). "Views"
are not XyWrite windows, as two or more "views" occupies a single XyWrite
window. I assume it does this by jumping around in the file, "remembering"
cursor locations in various SGT's. Once I have done an ordinary SEarch
that covers more than about 64K, Views.pm won't "remember" (or perhaps find)
locations that are 64+K apart in the file. It will still jump between
locations closer than that (50K, for example), and until I have done an
ordinary SEarch over a distance of 64K+, it will work fine over distances
like 100K. It is as though using the SEarch function permanently claims
memory that Views.pm needs in order to jump over large distances. I
haven't found a way to "release" the memory so Views.pm can use it --- at
first I thought shorter SEarches sort of "reset" the SEarch memory to a
smaller size, but I can't get it to work predictably.
Another memory oddity:
Load Xy3.57 fresh.
Load the 100K file.
check available memory: e.g. 242
SEarch for text that is 64K+ into the file (i.e. causes a problem for
Views.pm)
check available memory: 242 (i.e. no change)
Releasing memory used by printer functions, help, hyphenation, etc. makes
no difference.
Myron