Re: Out of Memory Problem in VB 6.0 Application.
- From: "Mike Williams" <Mike@xxxxxxxxxxxxxxxxx>
- Date: Tue, 20 Sep 2005 15:36:10 +0100
"Michael C" <nospam@xxxxxxxxxx> wrote in message news:O64mqrevFHA.612@xxxxxxxxxxxxxxxxxxxxxxx
> I just realised the dblRAValue arrays will be pointers so will
> not make part of the contiguous block of memory.
I don't think so, Michael. Try this:
Option Explicit
Private Type test
p1 As Long
p2 As Long
p3(1 To 500) As Double
End Type
Private Sub Command1_Click()
Dim myvar As test
Print Len(myvar), LenB(myvar)
End Sub
By the way, thanks for the info about VB arrays requiring a contiguous block of memory. I'm
still a little confused about it though, because on my system I can create a massive array that
requires much more real memory than I have on board and that can actually approach the total of
real memory and swap file (on disk) memory. So can I take it that Windows memory management is
able to treat a block of real RAM and a separate block of swap file (on disk) as one complete
contiguous block, and that the CopyMemory API would do so also? Just wondering.
Mike
.
- Follow-Ups:
- Re: Out of Memory Problem in VB 6.0 Application.
- From: Michael C
- Re: Out of Memory Problem in VB 6.0 Application.
- From: Jim Mack
- Re: Out of Memory Problem in VB 6.0 Application.
- From: Someone
- Re: Out of Memory Problem in VB 6.0 Application.
- From: Ralph
- Re: Out of Memory Problem in VB 6.0 Application.
- References:
- Out of Memory Problem in VB 6.0 Application.
- From: Peri
- Re: Out of Memory Problem in VB 6.0 Application.
- From: Peri
- Re: Out of Memory Problem in VB 6.0 Application.
- From: Michael C
- Re: Out of Memory Problem in VB 6.0 Application.
- From: Peri
- Re: Out of Memory Problem in VB 6.0 Application.
- From: Mike Williams
- Re: Out of Memory Problem in VB 6.0 Application.
- From: Peri
- Re: Out of Memory Problem in VB 6.0 Application.
- From: Michael C
- Re: Out of Memory Problem in VB 6.0 Application.
- From: Peri
- Re: Out of Memory Problem in VB 6.0 Application.
- From: Mike Williams
- Out of Memory Problem in VB 6.0 Application.
- Prev by Date: Re: Attach Event Handlers to Dynamically Generated Controls
- Next by Date: Re: Newbie: How to extract year from a Date object
- Previous by thread: Re: Out of Memory Problem in VB 6.0 Application.
- Next by thread: Re: Out of Memory Problem in VB 6.0 Application.
- Index(es):
Relevant Pages
|