home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.lang.visual.basic      MS Visual Basic discussions, NOT dot-net      10,840 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 9,098 of 10,840   
   Steve Gerrard to Tmenke   
   Re: Out of memory   
   18 Dec 04 15:57:09   
   
   From: mynamehere@comcast.net   
      
   You might want to post some example code.   
      
   When does the error occur?   
      
   Try just dimensioning large arrays, without running any code on them.   
   How big can you get away with? Can you do  ReDim MyArray(1000,1000)? Do   
   you get an error on the Redim statement? ( I don't).   
      
   Are you creating multiple copies of the array?   
      
   Are you calling a procedure recursively (a procedure calling itself),   
   creating a stack problem?   
      
   "Tmenke"  wrote in message   
   news:Mp1xd.5991$iE.3619@fe40.usenetserver.com...   
   | Could you give me some ideas on chasing down and debugging a problem   
   like   
   | this   
   |   
   |   
   | "Steve Gerrard"  wrote in message   
   | news:1r6dndpgfvPHPVncRVn-vQ@comcast.com...   
   | > I think you should sort out why you are getting an error with a tiny   
   | > array of 50 x 50 numbers. 2500 elements is peanuts. 500 x 500 should   
   be   
   | > no problem. 5000 x 5000, or 25 million elements, might be a problem.   
   | > There must be something else you are doing that is causing the   
   problem.   
   | >   
      
   | > | > : I was wondering if anyone can help. I wrote a program in VBA.   
   It   
   | > does   
   | > | some   
   | > | > : calculations with matrices (arrays) . These arrays are dynamic   
   and   
   | > are   
   | > | > sized   
   | > | > : according to a user defined input. The program works great   
   when   
   | > woriking   
   | > | > : with a small number but as the number increases (estimate   
   about a   
   | > 50 x   
   | > | 50   
   | > | > : array) the program will give a runtime error 7 message "Out of   
   | > memory".   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca