RE: VFP9SP1 -- choking on ALINES ("not enough memory")

Author: Tracy Pearson

Posted: 2011-08-09 at 12:23:10

MB Software Solutions, LLC wrote on 2011-08-09:

> I've got an inherited app that processes flat files--some big ones

> too---and I'm looking for areas to clear out memory because after I

> process one file, it then chokes on the ALINES line for subsequent runs

> says "There is not enough memory to complete this operation."

>

> Here's the line: IF ALINES(aChunks,FILETOSTR(This.InputFile)) > 0

>

> Wondering if Ed Leafe's SetMemory would be good here? Other ideas for

> clearing out memory? My first line of attack is to do a CLOSE DATA ALL

> before processing, as this doesn't use input tables, but again processes

> flat files.

>

> tia,

> --Mike

>

Mike,

Are you releasing the array by calling

RELEASE aChucks

Tracy Pearson

PowerChurch Software

_______________________________________________

Post Messages to: ProFox@leafe.com

Subscription Maintenance: http://leafe.com/mailman/listinfo/profox

OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech

Searchable Archive: http://leafe.com/archives/search/profox

This message: http://leafe.com/archives/byMID/profox/001001cc56b0$a140e7c0$e3c2b740$@powerchurch.com

** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

©2011 Tracy Pearson