Big Imagelist Out Of Memory

H

henrycortezwu

Hi,
I have a WinXPSP2, P4 3.2GHZ, 1GIG RAM on my dev machine using VS2005
VB.NET. I did the following procedure:

1. Added 82 icons (128x128 in size & 32bit Depth) in an imagelist
control
2. Save the project
3. Complied the project (successful)
4. Closed the project
5. Opened the project
6. VS2005 having a hard time loading the "Designer" view of the form
with the imagelist control
7. All of sudden VS2005 displays a lot of "Warnings" error, the 1st one
being "Out of Memory".

Why does this happen?

Thanks,
Henry :)
 
C

Cor Ligthert [MVP]

Henry,

I don't know the answer, but the simplest way to try it to do the same again
with an empty project.

That is what I would do, it is not much work and than you know that it was
sure the reason of your error.

Cor
 
G

gene kelley

Hi,
I have a WinXPSP2, P4 3.2GHZ, 1GIG RAM on my dev machine using VS2005
VB.NET. I did the following procedure:

1. Added 82 icons (128x128 in size & 32bit Depth) in an imagelist
control
2. Save the project
3. Complied the project (successful)
4. Closed the project
5. Opened the project
6. VS2005 having a hard time loading the "Designer" view of the form
with the imagelist control
7. All of sudden VS2005 displays a lot of "Warnings" error, the 1st one
being "Out of Memory".

Why does this happen?

Thanks,
Henry :)

The ImageList Control was buggy in VS2003 and apparently still is in
VS2005. There was a particular known bug in a beta version of VS2005
regarding the implimentation of 32 bit icons in the ImageList under
Visual Styles. Supposedly fixed in the VS2005 release, but there are
apparently still issues as your problem has been reported by others. I
have had problems, here, with that control, but find that using the
ImageList Class rather than the component seems to work OK.

Gene
 
H

henrycortezwu

Hi Cor,
Yup, that's what exactly what I did, new project, first save, close,
open was okay, then 2nd and 3rd save, close, open resulted to out of
memory. I have yet to see something in MSDN or KBS on this matter.
Thanks though!!

Regards,
Henry :)
 
H

henrycortezwu

Hi Gene,
My goal is to embed all icons in the application, so that
distributing the app wont result to multiple icons in a folder.

Can I achieve this by using/programming with the Imagelist Class,
rather than using the component?

Thanks,
Henry :)
 
G

gene kelley

Hi Gene,
My goal is to embed all icons in the application, so that
distributing the app wont result to multiple icons in a folder.

Can I achieve this by using/programming with the Imagelist Class,
rather than using the component?

Icons etc can always be embedded as a resource.
Are you actually in need of ImageList funtionality, or was that just a
means of storage?

The last app I worked on used a ImageList Class for a TreeView
control. The ImageList icons are loaded from resources. Other icons in
the app are loaded directly as a resource. There was also a folder
with 60 icons. Depending on the results of a XML feed, one of those
60 icons is loaded directly into the app. I have had to problems with
distibuting and using a Folder for icons.

Gene
 
H

henrycortezwu

Hi Gene,
Yup, actually just as storage so just to have one application file
with everything embeded in it :)


Thanks,
Henry :)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top