INSUFFICIENT MEMORY HELP ????????????????????????????????? 
Author Message
 INSUFFICIENT MEMORY HELP ?????????????????????????????????

Under Foxpro 2.6 .and . windows 95, ressource memory low progressivly. If i
close foxpro ressource system are the same and the programm finish with
'insufficient memory". After all tries I've no solution. Is a bug with
gdi.exe ?

French {*filter*}naute
--
Cordialement

Philippe

--
Cordialement

Philippe



Sun, 30 Jan 2000 03:00:00 GMT  
 INSUFFICIENT MEMORY HELP ?????????????????????????????????

MS has put a kb article that may have some info for you.

DOCUMENT:Q171047  07-JUL-1997  [foxpro]
TITLE   :PRB: Insufficient Memory in FoxPro for Windows on Fast
Computers
PRODUCT :Microsoft FoxPro
PROD/VER:WINDOWS:2.6a
OPER/SYS:WINDOWS
KEYWORDS:FoxWin FxenvGeneral kbbuglist

======================================================================
---------------------------------------------------------------------
The information in this article applies to:

 - Microsoft FoxPro for Windows, version 2.6a
   on the following platforms: NT, Win95
---------------------------------------------------------------------

SYMPTOMS
========

Working programs in FoxPro 2.x fail with "Insufficient Memory" when
run on
newer, faster computers with clock speeds greater than 150 MHz. This
problem applies to both screens with list boxes and queries, but this
article addresses only the problem with FoxPro screens.

The "Insufficient Memory" error message may also occur while in Filer
when
changing to a local(not network) directory which contains a large
number of
files.

CAUSE
=====

The current fast computers were not available for testing when FoxPro
2.x
for Windows was initially released. Microsoft FoxPro for Windows, 2.x
does
not always work with list boxes populated from tables with more than
600
records.

RESOLUTION
==========

At this time Microsoft does not have a good workaround; however, the
following are options to consider:

1. Upgrade the application to Visual FoxPro 3.0 or 5.0.

2. Turn off either CMOS cache (slow) or CMOS turbo mode (very slow).

3. Reduce the number of records to be displayed in the ListBox (under
600).

4. Run the FoxPro applications (app) and executables (exe) on a slower
   computer.

STATUS
======

Microsoft is researching this problem and will post new information
here in
the Microsoft Knowledge Base, as it becomes available.

MORE INFORMATION
================

Use the Microsoft Knowledge Base at http://www.microsoft.com/kb to
troubleshoot other potential causes of "Insufficient memory" errors.
Verify
that the error is due to the processor speed by trying the code on
both a
fast and slow computer.

Steps to Reproduce Behavior
---------------------------

The following is a reproducible case where FoxPro for Windows 2.x
fails
with "Insufficient memory" with a list box on a screen.

1. Place the following code in a new program file. Save it as
LarTable.prg:

      * Sample code to create and populate a large table to test your
      * program.

      * Environment area.
          CLEAR
          CLOSE DATABASES
          CLEAR SCREEN

      * Create a large table
          CREATE TABLE LarTable (CharVal C(20), NumVal N(9))
          USE LarTable.DBF

      * NumRecords = the number of record to be put in the table.
          NumRecords= 2000

      * Note using larger numbers can take a long time.
          NumWide = LEN(ALLTRIM(STR(NumRecords)))

      * FOR LOOP to fill the table.
          FOR x  = 1 TO NumRecords
           CharString="Record
"+PADL(ALLTRIM(STR(x,numwide,0)),NumWide,"0")
           INSERT INTO LarTable (CharVal,NumVal) VALUES(CharString, x)
           ? RECNO()
          ENDFOR

          CREATE SCREEN LarTable.scx NOWAIT

2. Add a ListBox object from the toolbar on the left of the screen.

3. Select the "From Field" radio button and type LarTable.Charval in
the
   Field dialog box.

4. Type "MyList" in the Variable text box. Click OK to close the
dialog
   box. Resize the ListBox, if necessary.

5. Add a Push Button. Use "Close" as the prompt, Check the "Terminate
READ
   on Selection" check box. Enter "xyz" for the variable.

6. Generate and run the LarTable.spr screen. It should run without
error
   on computers slower than a 166 MHz computer.

7. It should fail with an "Insufficient Memory" error on most
computers
   166 MHZ or faster. Use "mybutton" as the variable prompt.

The code generally fails when the screen loads on faster machines.
This
problem happens only when the table contains more than about 600
records.
Try deleting all but the first 600 records:

   DELETE ALL FOR RECNO > 600

(c) Microsoft Corporation 1997, All Rights Reserved.
Contributions by Mike Fernald, Microsoft Corporation

Additional query words: foxwin fpw
======================================================================
Keywords            : FoxWin FxenvGeneral kbbuglist
Version             : WINDOWS:2.6a
Platform            : WINDOWS
Issue type          : kbprb

=============================================================================

THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS
PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND.  MICROSOFT DISCLAIMS
ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES
OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.  IN NO
EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR
ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL,
CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF
MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE
POSSIBILITY OF SUCH DAMAGES.  SOME STATES DO NOT ALLOW THE EXCLUSION
OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES
SO THE FOREGOING LIMITATION MAY NOT APPLY.

Copyright Microsoft Corporation 1997.



Sun, 30 Jan 2000 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. +++GET YOUR FREE PENTIUM CELERON-300+++____________________________________________________________________________________________w5eoiu5ourerktjw erhtkjw885 woiwr oiwre

2. =?NS_4551-1?Q?Running_multiple_=28or_at_least_two=29_instances?= =?NS_4551-1?Q?_of_FoxPro_2=2E6w_screen?=

3. FPW26 Memory Use (Was: Insufficient Memory)

4. Insufficient Memory on VFP3 with 512 MB Memory

5. Help: Insufficient Memory - FoxPro Win 2.5

6. Help!Insufficient memory!

7. Help on the problem of Insufficient Memory using Foxpro 2.5 for Windows

8. Help Help Help PLEASE!!!!!!!!!!!!!!!!!!!!!!!!!!

9. US-Nationwide-ORACLE-Ingres-Ingres-PowerBuilder-Progress-SYBASE-SQL-Developer 20

10. needed Immediately Plant Manager:!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

11. help me help me hhhhhhhheeeeeeeelllllllpppppppp meeeeeeeee

 

 
Powered by phpBB® Forum Software