The information in this article applies to:
SYMPTOMSIf you repeatedly load and unload a dynamic control (a control that is a member of a control array), you may receive an "out of memory" error (error 7). CAUSEThe problem is that Visual Basic is not able to release all memory used by the control until the current event structure has terminated. The current event structure could be an event procedure, a modal form or dialog box, or a general procedure. RESOLUTIONTo avoid this problem, do not repeatedly load and unload controls without first allowing the event structure to terminate. STATUSThis behavior is by design. MORE INFORMATIONThe example below demonstrates this limitation. Example
Additional query words: VBmsdos 1.00
Keywords : |
Last Reviewed: December 9, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |