PC Review


Reply
Thread Tools Rate Thread

Disposed controls problem

 
 
=?Utf-8?B?U2hhcm9uX2E=?=
Guest
Posts: n/a
 
      10th May 2005
Hello,

I have a problem with a .Net Compact Framework application.

My application contains several forms that are switched using show and hide
(the Show() and Hide() methods not ShowDialog() and Close()).

The problem occurs when I switch to other applications (like Word, Excel…)
and returns to my application. After switching to another form in my
application an ObjectDisposedException is thrown. It's not a constant problem
so it's hard to find it sometimes. I noticed that it occurs more when the
free memory is low but not always, once it happened when there was more than
30 Mb free (in the Application allocated storage). I read somewhere that the
Pocket PC OS closes application in the background when the user switches to
other application and there is not enough space to load them, but my problem
is that my application is not closed – only some Controls are disposed
sometimes. I can't predict or even check if the Control was disposed because
there isn't an IsDisposed property in Compact Framework.

My configuration:
Device: Pocket-PC i-mate
OS Ver.: 4.20.0


Thanks,
Sharon

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: Problem with forms not properly disposed =?Utf-8?B?Um9sZiBGLg==?= Microsoft Dot NET Framework Forms 2 7th Sep 2005 11:16 PM
Some controls seem disposed when using delegates ... ? =?Utf-8?B?ZGFzdA==?= Microsoft VB .NET 3 18th Mar 2005 11:33 AM
Disposed forms problem =?Utf-8?B?amVzdGVy?= Microsoft Dot NET Framework Forms 2 23rd Jun 2004 07:41 AM
problem recreating disposed form Houston Keach Microsoft Dot NET Compact Framework 3 10th Sep 2003 10:40 PM
Having problem with order of controls when inserting controls into a panel. Ken Varn Microsoft Dot NET Framework Forms 3 22nd Jul 2003 07:45 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:56 PM.