-
VB Arrays and memory allocation
Hi,
I wrote a while back asking about an appication error.
the error was something like:
the instruction at 0x... references memory at
0x... the instruction could not be 'written'.
I get this error sometimes, other times the system freezes,
and other times it works fine. I still don't know why.
VB handles memory management and I am not using API calls, so theoretically
everything should work (I don't really know much about how VB
handles memory).
Is it possible that the problem is that I have very large arrays
that periodically need to be redimensioned. Some of my arrays
are in user defined types, others are in classes and std_modules.
Array sizes can be greater than 100,000. Some can be nested within
other arrays or arrays of UDTs.
Redimensioning can cause arrays to be copied and written elsewhere
(true?). If I have complicated data structures, is it possible
that some error occurs such that VBs pointers no longer point
to the correct position in memory? Does VB have a garbage collector?
If not, is it possible that given the size of my arrays, the
system freezes after a number of hours running and fragmenting
heap memory?
Thanks,
Brian
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks