There seems to have been one or more memory leaks in MapInfo since version 6.0.  
Usually I have encountered them tied up with object variables, but your code 
seems to not include object variables.  I have actually have spent several weeks 
trying to get around these leaks over the last year, but the time was focussed on 
how I used the object variables.

I got around it one time by compiling the progam in mapbasic 5.5 and running it on MI 
5.5.  I still have 5.5 loaded for doing large file processing for that reason.  I 
had that problem on both 98 and NT6.  Recently i was able to fill up over 2.5 Gb of 
memory before the program stopped, all while processing a 127MB map file, 
and i blamed the object variable again.  I was confused however, as this time it did 
it on both version 5.5 and 6 and 6.5 (all builds).

Your code is suggesting it has something to do with the fetch or insert command.  I 
get the problem somewhere from either fetching objects, or ascribing objects in 
a table to object variables, or manipulating some nodes in those object variable and 
updating a table row with that variable, or combining that object with another 
targeted object.  I have been blaming the use object variables as the problem, but 
maybe it is something more fundamental such as the fetch.  There are also lots 
of selections going on (into the same named table).

Your program is much more succinct in identifying an issue. I agree, the memory is not 
released until you exit MI, and then you get most of it back.

Good Luck

R



10/1/2002 1:42:13 PM, "Taylor, Michael Graham" <[EMAIL PROTECTED]> wrote:

>Hi
>
>Recently I've noticed that MI 6.5 (NT) appears to leak memory when
>certain mapbasic routines are run.  I've finally got around to having a
>bit of a look at it and this i what I have found.  The following program
>causes my memory usage to go from 
>118892 to 125464
>This is not released once the program has finished but is released when
>MI is exitted.
>The table is approx 33000 polygons
>
>       fetch first from parcel
>       do until EOT(parcel)
>               fetch next from parcel
>       loop
>
>Adding in a create and insert command as follows caused twice the leak
>
>       create table myTemp (id integer)
>       fetch first from parcel
>       do until EOT(parcel)
>               fetch next from parcel
>               insert into mytemp (id) values (1)
>       loop
>
>I am running MI6.5 on a Dell Precision 220 NT4.5
>Is this something to do with my system or are others able to duplicate
>it?
>
>-- 
>Mike Taylor
>______________________________________________ 
>GIS Senior Consultant                   mailto:[EMAIL PROTECTED] 
>Sinclair Knight Merz Limited            http:\\www.skmconsulting.com 
>Level 12, Mayfair House                 Tel: +64 4 473 4265 
>54 The Terrace                          Fax: +64 4 473 3369
>PO Box 10283,Wellington
>New Zealand
>
>
>
>_______________________________________________________________________
>List hosting provided by Directions Magazine | www.directionsmag.com |
>To unsubscribe, send e-mail to [EMAIL PROTECTED] and
>put "unsubscribe MapInfo-L" in the message body.
>
>


Robert Crossley 
Robert Crossley & Associates
9 Short St
New Brighton NSW 2483

P: 02 6680 1309
F: New Connection
M: 0419 718 642
E: [EMAIL PROTECTED]



Robert Crossley 
Robert Crossley & Associates
9 Short St
New Brighton NSW 2483

P: 02 6680 1309
F: New Connection
M: 0419 718 642
E: [EMAIL PROTECTED]

-------- End of forwarded message --------


Robert Crossley 
Robert Crossley & Associates
9 Short St
New Brighton NSW 2483

P: 02 6680 1309
F: New Connection
M: 0419 718 642
E: [EMAIL PROTECTED]



Robert Crossley 
Robert Crossley & Associates
9 Short St
New Brighton NSW 2483

P: 02 6680 1309
F: New Connection
M: 0419 718 642
E: [EMAIL PROTECTED]




_______________________________________________________________________
List hosting provided by Directions Magazine | www.directionsmag.com |
To unsubscribe, send e-mail to [EMAIL PROTECTED] and
put "unsubscribe MapInfo-L" in the message body.

Reply via email to