There has been a memory leak associated with using object variables since version 5.5 or 6.0.
I am not sure if it was fixed in the later versions, because it was only apparent when I was doing runs on processing 00,000's records. It was still there in 6.5, and I haven't tried it in 7.0.
It was also apparent in MapX, so it was part of the core code.
basically you couldn't use code like.
Fetch First From temp
Do Until EOT(Temp)
CurObj = selction.obj
...
Fetch next From Temp
LoopYou can possibly do better by using an update column table instead
Update Column Set Field = Some expression based on Obj
Or even a user-defined function in the update column to go through the table
eg. Update column set field = MyFunction(Obj, otherfield, otherfield)
Hope this helps. r
On Fri, 9 Apr 2004 20:45:20 +0200, <[EMAIL PROTECTED]> wrote:
Hello list,
I wrote a Mapbasic program which is getting slower and slower while running.
I am already using the set table statement with the fast edit mode set on
and the undo mode set off but that does not seem to help. Are there any
other possibiities to free memory? The program itself does not add new rows
but
enters new values into already existing columns and does a bit of math.
Within the program i am using recursive functions. Could that be a problem
for Mapbasic? Are iterative procedures generally (?) more efficient than
recursive ones?
Any help would be appreciated!
Cheers, Ulrike
__________________________________________________________________
Turbospeed zum Turbopreis! Surfen Sie doch auch mit der DSL-Flatrate
von Tiscali. Nur 15,90 EUR im Monat.
Tiscali DSL basiert auf dem T-DSL-Anschluss der Deutschen Telekom AG,
durch den weitere Kosten entstehen. Dieser ist in vielen
Anschlussgebieten verf�gbar. 6 Monate Mindestvertragslaufzeit.
Und falls Sie wider Erwarten im ersten Monat nicht zufrieden sein sollten,
gew�hrt Tiscali Ihnen ein sofortiges K�ndigungsrecht und Sie erhalten
Ihr Geld zur�ck.
Klicken Sie hier: http://registrierung.tiscali.de/produkte/1342_dslflatrate.php?akkcode=10253
--------------------------------------------------------------------- List hosting provided by Directions Magazine | www.directionsmag.com | To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Message number: 11354
--
Robert Crossley Agtrix P/L 9 Short St PO Box 63 New Brighton 2483 Far Southern Queensland AUSTRALIA
153.549004 E 28.517344 S
P: 02 6680 1309 F: New Connection M: 0419 718 642 E: [EMAIL PROTECTED] W: www.agtrix.com W: www.wotzhere.com
--------------------------------------------------------------------- List hosting provided by Directions Magazine | www.directionsmag.com | To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Message number: 11363
