 |
|
|
|
| Author |
Message |
tf2_lags
Joined: 13 Jan 2008 Posts: 4
|
Posted: Mon Jan 14, 2008 12:55 am Post subject: Visual studio hogging CPU and memory for this PPC project... |
|
|
Hi,
I have an old VS 2003 project - VB.NET with compact framework. For some
reason, since the conversion, this project hogs memory and cpu bad. It
takes 3 minutes to go from code to form view.
I have tried many ways, including the many faqs on the NET to speed this up
but having no luck. Do you know what might be causing this? My VS 2005
desktop apps don't do this.
Here are some points about the project:
It is 1 form with 15 panels that I hide and show
78 pictureboxes
10297 lines of code
thanks!
B
Archived from group: microsoft>public>dotnet>framework>compactframework |
|
| Back to top |
|
 |
Simon Hart [MVP]
Joined: 03 Oct 2007 Posts: 95
|
Posted: Sun Jan 13, 2008 5:33 pm Post subject: RE: Visual studio hogging CPU and memory for this PPC projec |
|
|
That is your problem for a start, 78 pictureboxes! gosh what is your app
doing with them?, and 15 panels. Do the panels contain the pictureboxes? I am
suprised your form loads at all on the device.
You didn't say which version of VS you've upgraded to. Natuarally, VS 2005
requires more memory and CPU over 2003 and likewise VS 2008 is similar
although not quite as big a jump going from 2003 to 2005.
--
Simon Hart
Visual Developer - Device Application Development MVP
http://simonrhart.blogspot.com
"tf2_lags@valve.com" wrote:
> Hi,
>
> I have an old VS 2003 project - VB.NET with compact framework. For some
> reason, since the conversion, this project hogs memory and cpu bad. It
> takes 3 minutes to go from code to form view.
>
> I have tried many ways, including the many faqs on the NET to speed this up
> but having no luck. Do you know what might be causing this? My VS 2005
> desktop apps don't do this.
>
> Here are some points about the project:
>
> It is 1 form with 15 panels that I hide and show
> 78 pictureboxes
> 10297 lines of code
>
> thanks!
> B
> |
|
| Back to top |
|
 |
tf2_lags
Joined: 13 Jan 2008 Posts: 4
|
Posted: Mon Jan 14, 2008 4:42 am Post subject: Re: Visual studio hogging CPU and memory for this PPC projec |
|
|
On 13-Jan-2008, =?Utf-8?B?U2ltb24gSGFydCBbTVZQXQ==?=
wrote:
> That is your problem for a start, 78 pictureboxes! gosh what is your app
> doing with them?, and 15 panels. Do the panels contain the pictureboxes? I
> am
> suprised your form loads at all on the device.
That's the way we had to code it back during PPC 2002 and 2003 because
otherwise, it would take each form 8 seconds to load when you clicked a
button.
So what would you advise? Should I break the panels up into forms? Cut
back on pictureboxes? |
|
| Back to top |
|
 |
Simon Hart [MVP]
Joined: 03 Oct 2007 Posts: 95
|
Posted: Thu Jan 17, 2008 5:27 pm Post subject: Re: Visual studio hogging CPU and memory for this PPC projec |
|
|
It is difficult for me to suggest how to code your form as I don't know what
you are trying to achieve. What are you trying to achieve with this form with
lots of panels? some kind of Wizard?
--
Simon Hart
Visual Developer - Device Application Development MVP
http://simonrhart.blogspot.com
"tf2_lags@valve.com" wrote:
>
> On 13-Jan-2008, =?Utf-8?B?U2ltb24gSGFydCBbTVZQXQ==?=
> wrote:
>
> > That is your problem for a start, 78 pictureboxes! gosh what is your app
> > doing with them?, and 15 panels. Do the panels contain the pictureboxes? I
> > am
> > suprised your form loads at all on the device.
>
> That's the way we had to code it back during PPC 2002 and 2003 because
> otherwise, it would take each form 8 seconds to load when you clicked a
> button.
>
> So what would you advise? Should I break the panels up into forms? Cut
> back on pictureboxes?
> |
|
| Back to top |
|
 |
tf2_lags
Joined: 13 Jan 2008 Posts: 4
|
Posted: Mon Feb 11, 2008 2:56 am Post subject: Re: Visual studio hogging CPU and memory for this PPC projec |
|
|
Like I mentioned... we used panels because forms used to slow down between
screen switching. Panels were much quicker.
my entire project is panels instead of multiple forms. |
|
| Back to top |
|
 |
Simon Hart [MVP]
Joined: 03 Oct 2007 Posts: 95
|
Posted: Mon Feb 11, 2008 8:24 am Post subject: Re: Visual studio hogging CPU and memory for this PPC projec |
|
|
I wouldn't consider this to be quicker, the initial load time must be pretty
slow.
Anyway this aside, VS 2005 demands alot more CPU and memory than VS 2003
purely because it's doing alot more than VS 2003.
--
Simon Hart
Visual Developer - Device Application Development MVP
http://simonrhart.blogspot.com
"tf2_lags@valve.com" wrote:
> Like I mentioned... we used panels because forms used to slow down between
> screen switching. Panels were much quicker.
>
> my entire project is panels instead of multiple forms.
>
|
|
| Back to top |
|
 |
|
|
| Related Topics: | Visual Studio .NET with CF Hi, It's possible to develop to PocketPC 2002 using Visual Studio .NET (not 2003) and the CF ? Sorry if this is a FAQ Thanks Fernando
Starting with Visual Studio .NET and CF Hi, Another newby question. Thanks to not complain. ( : Where can I get information to start programming with Visual Studio .NET and the CF, aside of microsoft and gotdotnet sites? I need to install Visual Studio .NET, The CF and PocketPC 2002 SDK to star
Which Visual Studio for Win Mobile 5 development? Which Visual Studio can handle Win Mobile 5 development? I have the SDK on a DVD, but I need to know which VS 2005 to install to fully handle the development process? The only two people I know that are developing are using the Enterprise editions, but
Windows CE Utilities / Visual Studio 2003 Add-on Pack Hello, We would like to use the "Windows CE Utilities for Visual Studio .NET 2003 Add-on Pack". But with regards to the system requirements as mentioned on the download area, only Windows XP, 2003 Server, and Windows NT are supported. Is it true? There is
how to force virtual memory to balance is there a way to force virtual memory to balance via RAPI or some other method? |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|