The following is code from a DLL that is causing a Unhandled
Exception 0x00005 in Kernel32.dll. After this my system is very
unstable until I reboot. I can not even open a folder without
explorer crashing with an exception in User32.dll. . .
So I am guessing it is some sort of memory problem. As in my
program is using up some memory resource.
GLOBAL m_mark() AS INTEGER
. . .
Redim m_mark(1 to 100)
. . .
Dim v As Long
v = UBound(m_mark) + 1000
ReDim Preserve m_mark(1 To v)
I know that the value of UBound(m_mark) is 100 when this happens.
This is part of the program that has not been touched in years
and has never had a problem before.
My system has 53% USER Free memory and 76% GDI free after the
crash event.
My questions are:
When I do a ReDim Preserve were does the memory it uses come from?
Stack? Heap? DGroup?
Is there an easy why to get more of what ReDim Preserve needs?
Any ideas on how to work around this barrier?
Tim
------------------
Exception 0x00005 in Kernel32.dll. After this my system is very
unstable until I reboot. I can not even open a folder without
explorer crashing with an exception in User32.dll. . .
So I am guessing it is some sort of memory problem. As in my
program is using up some memory resource.
GLOBAL m_mark() AS INTEGER
. . .
Redim m_mark(1 to 100)
. . .
Dim v As Long
v = UBound(m_mark) + 1000
ReDim Preserve m_mark(1 To v)
I know that the value of UBound(m_mark) is 100 when this happens.
This is part of the program that has not been touched in years
and has never had a problem before.
My system has 53% USER Free memory and 76% GDI free after the
crash event.
My questions are:
When I do a ReDim Preserve were does the memory it uses come from?
Stack? Heap? DGroup?
Is there an easy why to get more of what ReDim Preserve needs?
Any ideas on how to work around this barrier?
Tim
------------------
Comment