Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > .NET General

Vista - Not enough storage space to process the command - Resizing Picture box

Reply
 
Old 05-06-2009   #1 (permalink)
Dale Atkin


 
 

Not enough storage space to process the command - Resizing Picture box

As part of a program I'm writing, I have a picture box, loaded up with an
image. The picture box is set to automatically size the image in it to fit
the bounds of the picture box.

The picture box sits inside another container.

To pan the image, I'm adjusting the left/right properties of the image.

To zoom the image, I'm adjusting the height and width.

The problem comes, when I zoom past a certain point (haven't figured out
exactly what point yet), I get the error "Not enough storage space to
process the command".

I'm fine with having limited zoom capability, but I obviously need to set
some kind of maximum height/width on the picture box so that I don't
generate this error.

Anyone know what the magic number would be? Or how to determine it
(hopefully not the brute force approach)?

Dale


My System SpecsSystem Spec
Old 05-07-2009   #2 (permalink)
Cor Ligthert[MVP]


 
 

Re: Not enough storage space to process the command - Resizing Picture box

Dale,

Can you inform us how much memory is installed on your computer what type of
OS include bit version etc.

Cor

My System SpecsSystem Spec
Old 05-07-2009   #3 (permalink)
Dale Atkin


 
 

Re: Not enough storage space to process the command - Resizing Picture box


"Cor Ligthert[MVP]" <Notmyfirstname@xxxxxx> wrote in message
Quote:

> Dale,
>
> Can you inform us how much memory is installed on your computer what type
> of OS include bit version etc.
>
> Cor
While its not going to be just my computer this is running on (in the long
term), my system has 3GB of physical RAM running Windows Vista 32bit
(Business Edition). Currently the page file is set to 6GB. Tons of free hard
drive space

Dale

My System SpecsSystem Spec
Old 05-08-2009   #4 (permalink)
Cor Ligthert[MVP]


 
 

Re: Not enough storage space to process the command - Resizing Picture box

So you have 2Gb usable memory, and the image you are using is?????

That is the max of a 32Bit system to use direct.

Cor

"Dale Atkin" <labrador1@xxxxxx> wrote in message
news:%237bWmV1zJHA.5964@xxxxxx
Quote:

>
> "Cor Ligthert[MVP]" <Notmyfirstname@xxxxxx> wrote in message
Quote:

>> Dale,
>>
>> Can you inform us how much memory is installed on your computer what type
>> of OS include bit version etc.
>>
>> Cor
>
> While its not going to be just my computer this is running on (in the long
> term), my system has 3GB of physical RAM running Windows Vista 32bit
> (Business Edition). Currently the page file is set to 6GB. Tons of free
> hard drive space
>
> Dale
>
My System SpecsSystem Spec
Old 05-08-2009   #5 (permalink)
Dale Atkin


 
 

Re: Not enough storage space to process the command - Resizing Picture box

The image is (roughly) a 4MB JPEG. (I don't think RAM is the issue here)

Dale

"Cor Ligthert[MVP]" <Notmyfirstname@xxxxxx> wrote in message
news:ObOoBg6zJHA.436@xxxxxx
Quote:

> So you have 2Gb usable memory, and the image you are using is?????
>
> That is the max of a 32Bit system to use direct.
>
> Cor
>
> "Dale Atkin" <labrador1@xxxxxx> wrote in message
> news:%237bWmV1zJHA.5964@xxxxxx
Quote:

>>
>> "Cor Ligthert[MVP]" <Notmyfirstname@xxxxxx> wrote in message
Quote:

>>> Dale,
>>>
>>> Can you inform us how much memory is installed on your computer what
>>> type of OS include bit version etc.
>>>
>>> Cor
>>
>> While its not going to be just my computer this is running on (in the
>> long term), my system has 3GB of physical RAM running Windows Vista 32bit
>> (Business Edition). Currently the page file is set to 6GB. Tons of free
>> hard drive space
>>
>> Dale
>>
>
My System SpecsSystem Spec
Old 05-09-2009   #6 (permalink)
Cor Ligthert[MVP]


 
 

Re: Not enough storage space to process the command - Resizing Picture box

Dan,

You write: "The picture box sits inside another container".

For you this is probably clear, for others this is complete dust, I don't
know if somebody can help you, but I think that you should make this part
cleaner.

I 've searched Google and I see a lot of unresolved forums questions about
this.

Cor


"Dale Atkin" <labrador1@xxxxxx> wrote in message
news:%23tpUO2B0JHA.1432@xxxxxx
Quote:

> The image is (roughly) a 4MB JPEG. (I don't think RAM is the issue here)
>
> Dale
>
> "Cor Ligthert[MVP]" <Notmyfirstname@xxxxxx> wrote in message
> news:ObOoBg6zJHA.436@xxxxxx
Quote:

>> So you have 2Gb usable memory, and the image you are using is?????
>>
>> That is the max of a 32Bit system to use direct.
>>
>> Cor
>>
>> "Dale Atkin" <labrador1@xxxxxx> wrote in message
>> news:%237bWmV1zJHA.5964@xxxxxx
Quote:

>>>
>>> "Cor Ligthert[MVP]" <Notmyfirstname@xxxxxx> wrote in message
>>>> Dale,
>>>>
>>>> Can you inform us how much memory is installed on your computer what
>>>> type of OS include bit version etc.
>>>>
>>>> Cor
>>>
>>> While its not going to be just my computer this is running on (in the
>>> long term), my system has 3GB of physical RAM running Windows Vista
>>> 32bit (Business Edition). Currently the page file is set to 6GB. Tons of
>>> free hard drive space
>>>
>>> Dale
>>>
>>
>
My System SpecsSystem Spec
Old 05-10-2009   #7 (permalink)
Dale Atkin


 
 

Re: Not enough storage space to process the command - Resizing Picture box


"Cor Ligthert[MVP]" <Notmyfirstname@xxxxxx
Quote:

> Dale,
>
> You write: "The picture box sits inside another container".
>
> For you this is probably clear, for others this is complete dust, I don't
> know if somebody can help you, but I think that you should make this part
> cleaner.
A container, being a control that 'contains' other controls. Maybe that
isn't the current paradigm (I'm coming from VB6...)

As an example, a "TabControl" is a container, as is a picture box. Basically
anything that has its own coordinate system is a container. In this
particular case, I'm using the 'split container' control, and then I have a
picture box control on the 'split container'.

I move around the picture box within the coordinate space of the split
container to show different piece of the picture at various zoom levels.

I don't think this is particularly relevant to the problem at hand, which is
why I didn't go in to detail on it.

Dale

My System SpecsSystem Spec
Old 05-11-2009   #8 (permalink)
Cor Ligthert[MVP]


 
 

Re: Not enough storage space to process the command - Resizing Picture box

Dale,

I thought that you had your images in a kind of extra class and that you
wrote that the picturebox was sitting on that.

However, I don't think we can see it. In your case I would put two labels on
my screen where I displayed the width and the height all the time.

I never saw your problem in the newsgroups.

Cor

"Dale Atkin" <labrador1@xxxxxx> wrote in message
news:Ox%233ccb0JHA.5924@xxxxxx
Quote:

>
> "Cor Ligthert[MVP]" <Notmyfirstname@xxxxxx
Quote:

>> Dale,
>>
>> You write: "The picture box sits inside another container".
>>
>> For you this is probably clear, for others this is complete dust, I don't
>> know if somebody can help you, but I think that you should make this part
>> cleaner.
>
> A container, being a control that 'contains' other controls. Maybe that
> isn't the current paradigm (I'm coming from VB6...)
>
> As an example, a "TabControl" is a container, as is a picture box.
> Basically anything that has its own coordinate system is a container. In
> this particular case, I'm using the 'split container' control, and then I
> have a picture box control on the 'split container'.
>
> I move around the picture box within the coordinate space of the split
> container to show different piece of the picture at various zoom levels.
>
> I don't think this is particularly relevant to the problem at hand, which
> is why I didn't go in to detail on it.
>
> Dale
My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
Vista and XP Sharing: Not enough server storage is available to process this command Vista networking & sharing
Not enough storage is available to process this command VB Script
"Not enough server storage is available to process this command" error Vista General
Not enough storage is available to process command Vista installation & setup
Not Enough server storage is available to process this command Vista General


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46