473,394 Members | 1,828 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Big Imagelist Out Of Memory

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 :)

Jun 25 '06 #1
6 3001
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

<he***********@gmail.com> schreef in bericht
news:11*********************@b68g2000cwa.googlegro ups.com...
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 :)

Jun 25 '06 #2
On 25 Jun 2006 04:45:32 -0700, he***********@gmail.com wrote:
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
Jun 25 '06 #3
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 :)
Cor Ligthert [MVP] wrote:
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

<he***********@gmail.com> schreef in bericht
news:11*********************@b68g2000cwa.googlegro ups.com...
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 :)


Jun 26 '06 #4
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 :)

gene kelley wrote:
On 25 Jun 2006 04:45:32 -0700, he***********@gmail.com wrote:
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


Jun 26 '06 #5
On 25 Jun 2006 20:16:45 -0700, he***********@gmail.com wrote:
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
Thanks,
Henry :)

gene kelley wrote:
On 25 Jun 2006 04:45:32 -0700, he***********@gmail.com wrote:
>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

Jun 26 '06 #6
Hi Gene,
Yup, actually just as storage so just to have one application file
with everything embeded in it :)
Thanks,
Henry :)

gene kelley wrote:
On 25 Jun 2006 20:16:45 -0700, he***********@gmail.com wrote:
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
Thanks,
Henry :)

gene kelley wrote:
On 25 Jun 2006 04:45:32 -0700, he***********@gmail.com wrote:

>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


Jun 26 '06 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: qushui_chen | last post by:
How can i let ImageList control contain Image in use show the Image really size. I see the ImageList have set ex:Size(255,255);
0
by: Dave Harris | last post by:
We have a piece of code located in an unmanged C++ function that is currently bleeding a GDI each time it is run. We have tried numerous things, each with its own problems. We made pImageList...
0
by: Bruno Zarokian | last post by:
Is it possible to put RGBA bitmaps in an ImageList with the designer ? I'm trying to put some PNG bitmaps with alpha in an ImageList with the designer, but it seems to convert the bitmaps in BMP...
2
by: Sanjeeva Reddy | last post by:
hai Anti Keskinen, i have used the following code MyListView->LargeImageList->ImageSize = gcnew System::Drawing::Size(100, 100); // Sets large image size to 100, 100 here i am getting error...
2
by: copyco | last post by:
I've got an application where I have an animated image in a picturebox. A timer event changes the image by assigning an image from an imagelist to it. I've found that the code for this is causing...
0
by: Chris Putnam | last post by:
I am working on an application that includes a feature where a directory is spidered and thumbnails are displayed. I have it pretty much down, but when the bitmaps are loaded from file, memory is...
6
by: Stephen Costanzo | last post by:
In the code below I receive an exception error because the target file is being used by another process. I know this to be false because the target doesn't exist. It seems like the application...
2
by: Michael Maes | last post by:
Hi, We have been using ImageLists in our Projects extensively. Many forms have two ILs with nearly 900 bmp's each. They are configured: 32Bit, Fuchsia, 16x16 (and one 24x24). In VS2003 there...
2
by: =?Utf-8?B?S2VuTg==?= | last post by:
We're using a System.Windows.Forms.ImageList to store a bunch of Images that I've loaded, and rendering each image in the ImageList during a draw loop. The process was running unusually slow and...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.