473,854 Members | 1,495 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 3048
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******** *************@b 68g2000cwa.goog legroups.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***********@g mail.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******** *************@b 68g2000cwa.goog legroups.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***********@g mail.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***********@g mail.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***********@g mail.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***********@g mail.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***********@g mail.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
2654
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
1287
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 a static (and threw it in a gcroot) and commented out the dispose because the system would crash or hang after a few hundered iterations (we could place a for loop around this very block and crash after a while. The static saves it from crashing...
0
1749
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 w/o Alpha in the resx binary stream : when I reopen the ImageList image collection in the designer, the bitmaps are no more from a "PNG source" but "memory bitmap", and the alpha is gone (and the alpha pixels are dark blue). Any way to prevent the...
2
8542
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 like "gcnew is undeclared error",how to deeclare 'gcnew" and when i am using in runtime to change the size of images in imagelist in listview control in .net(forms application) by chnging one trckbar(like tb1->Value),
2
2092
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 the application to use more and more memory until it craps out. If I comment the code out, it's fine. Can anyone tell me if there is a way I can manage the memory better? Is there better code for this or something? Why is it using up memory? ...
0
2252
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 hogged like crazy. I know this is where the memory problems occur because I've gone through that whole comment/check the ram thing. Here's the source of where the problem occurs: Public Shared Sub FillImageList(ByVal dir As String, ByVal...
6
1420
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 believes that the file is still in use by the application. My concern is that I do not think that I still have a reference to it. In the removeImage function, I remove the item from the image list and list view controls and refresh the list view control to...
2
1360
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 was no issue with this. Upgrading to VS2005 however makes it impossible to open those forms in Design-View. We have tested it with a blank project, and yes, even then it does not work.
2
3570
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 was causing memory spikes. After several hours we discovered that the ImageList.Images indexer is actually returning a copy of the added Images instead of simply returning a reference. Needless to say, we were a bit surprised and disturbed to...
0
9901
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9751
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10679
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10756
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9513
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7914
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5941
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
4159
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3186
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.