KeesvanOverveld
02-19-2008, 03:55 AM
The following problem occurs:
In an EXCEL-VBA module, I declare an array of some 50000 longs. I fill the array with values. When I access the array from within the module, everything is fine - but if another module accesses these values (via API-functions), it seems that the values are gone. With a smaller array, say 5000 longs, the problem doesn't occur: then the values are pertained (as they should).
My hypothesis is, that it depends on whether or not modules are unloaded to disk because of memory limitations.
So: it seems that VBA does not pertain values of module-level variables when modules are swapped in and out virtual memory.
Does anyone know about this problem?
Any help is appreciated!
Thanks,
Kees.
In an EXCEL-VBA module, I declare an array of some 50000 longs. I fill the array with values. When I access the array from within the module, everything is fine - but if another module accesses these values (via API-functions), it seems that the values are gone. With a smaller array, say 5000 longs, the problem doesn't occur: then the values are pertained (as they should).
My hypothesis is, that it depends on whether or not modules are unloaded to disk because of memory limitations.
So: it seems that VBA does not pertain values of module-level variables when modules are swapped in and out virtual memory.
Does anyone know about this problem?
Any help is appreciated!
Thanks,
Kees.