Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Out of memory (Error 7)
Message
 
À
03/12/2002 11:40:00
Information générale
Forum:
Visual Basic
Catégorie:
Autre
Divers
Thread ID:
00729037
Message ID:
00729068
Vues:
24
How many items are already in your array? What is the size in bytes of your UDT?


>Hi,
>
>I get an error from a COM object (VB6) when I run a program. The error states that I am running out of memory ("Out of memory (Error 7)").
>
>The problem is that when I open the task manager and check the memory, it's only approximately half used (I have 256Mb plus 384Mb max of virtual memory). I checked in the help topics to see the different reasons for such an error but none of the explanations corresponds to my present situation. Here is the line that produces the error:
>
>ReDim Preserve p_tAlignment(UBound(p_tAlignment) + 1)
>
>'p_tAlignment' is a private variable and it's a user-defined type.
>
>I also verified the Redim and Preserve commands but nothing was said about maybe having memory problems.
>
>Any ideas?
>
>Thanks in advance, Stephane.
Éric Moreau, MCPD, Visual Developer - Visual Basic MVP
Conseiller Principal / Senior Consultant
Moer inc.
http://www.emoreau.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform