Re: Forms Creation Question

From: Peter Foot [MVP] (feedback_at_no-spam.inthehand.com)
Date: 11/15/04


Date: Mon, 15 Nov 2004 22:58:07 -0000

Because the task manager on Pocket PC doesn't actually enumerate the
processes on the device, it merely creates a list of the captions of all the
visible top level forms. You can work around this by setting the caption to
nothing "" when in the background so only your current form will appear.

Peter

-- 
Peter Foot
Windows Embedded MVP
www.inthehand.com | www.opennetcf.org
"Aaron" <ABieberitz@charter.net> wrote in message 
news:10picnbqhrgq938@corp.supernews.com...
> OK, while that makes sense, I still don't understand why each instance of 
> a
> form creates a separate task on a PPC.  I have an Ipaq 5555 and using 
> ITask
> I show tons of instances of my app opened, only because a bunch of forms
> were created when I launched them throughout the process of testing my 
> app.
> I was always use to eMbedded Visual Basic which created only one instance 
> of
> your app, regardless of how many forms were launched.  I need to know if
> there is a way to rectify this problem as my client will not be happy to 
> see
> this type of thing happening.
>
> Another question is why when I call this code to close out my form:
>
> frmPSA.GetInstance().Close();
>
> it does nothing, essentially locking my app up, but not literally, and I
> have even added the following code to my forms since they use the 
> singleton
> method:
> protected override void OnClosed(EventArgs e)
>
> {
>
> base.OnClosed(e);
>
> instance = null;
>
> }
>
> can anyone give me assistance on either of these matters?
>
> "Tim Wilson" <TIM(UNDERSCORE)WILSON(AT)ROGERS(PERIOD)COM> wrote in message
> news:uQIgL11yEHA.1932@TK2MSFTNGP09.phx.gbl...
>> Default instances of Forms do not exist. You must create an instance of a
>> Form before showing it.
>>
>> -- 
>> Tim Wilson
>> .Net Compact Framework MVP
>>
>> "Aaron" <ABieberitz@charter.net> wrote in message
>> news:10pi8t5n21ldd72@corp.supernews.com...
>> > I need to know whether or not every form for a project in all 
>> > namespaces
>> is
>> > created when an application is launched or not.  I'm using the 
>> > singleton
>> > method now for my forms and  I'm not sure why, but sometimes the
> emulator
>> is
>> > crashing saying it's low on memory when I try opening and closing
>> > forms...still haven't pinpointed exactly what situation it happens
> under,
>> > but if I know that the forms are all created and reside in memory at
>> > startup, this would help diagnose the potential problem.  Once I get 
>> > the
>> > answer to this question, I'll probably have more until I get this forms
>> > thing down in C#, but I need to know this first.
>> >
>> > Thanks
>> >
>> >
>>
>>
>
> 


Relevant Pages

  • Re: best way to track down a memory leak?
    ... time you run your app you start another instance of Word. ... The task manager will tell you what exactly is consuming what. ... > check Task Manager memory usage, ... >> I didn't think it was possible to create a memory leak with VFP, ...
    (microsoft.public.fox.programmer.exchange)
  • Re: why does minimizing my app cut mem usage by 90%?
    ... thanks for pointing it out. ... assertion that the values returned by task manager for program size are essentially ... It is worth pointing out that "minimizing" an app as he desires to do actually doesn't ... minimize its memory footprint; it merely pessimizes its performance, ...
    (microsoft.public.vc.mfc)
  • Re: Application performance decrease after deleting rows
    ... Many of the past posts regarding the task manager can ... This is not a good approach, because high memory ... It is important to remember that an app ... memory leaks in .NET apps. ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Visual Studio 2005 is a memory hog!!
    ... > gonna call it a memory hog for this very same reason. ... >>> .NET app in the task manager usually misleading as the runtime takes more ... Did you measure memory footprint on the first run, or on subsequent? ...
    (microsoft.public.vsnet.general)
  • Re: Problem shutting down non-responding apps in XP SP1
    ... >because when this happens, I usually can't shut down the frozen app using ... Even Task Manager ... They're all free - and most pretty small, so they download quickly enough. ... Install and run Spybot. ...
    (microsoft.public.windowsxp.help_and_support)

Loading