Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / WinForm General / August 2006

Tip: Looking for answers? Try searching our database.

Windows App Freezing

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
John Riddle - 16 Aug 2006 00:31 GMT
I have a muti-threaded windows app that creates child forms in a separate
thread which then invoke a delegate on the MDI parent form. I have put all
time-consuming tasks on separate background workers like running stored proc,
poppulating data grid, etc. I am running VB.Net 2005 on Windows 2000 SP4 and
on XP SP2. After a period of inactivity in the app (15-30 minutes), it
freezes. The task manager says its running but I cannot switch to it. I tried
using the DoEvents method on a timer but that had very strange results - the
app was responsive but all the functionailty errored out. I read up on message
pumps and STA model. Even though its should be an MTA, when I try and do
application.run - it forces me to create the MDIFrm as STA or a Treeview
control on it will not register drag-drop events. I am not using
application.run but have set the MDIForm as startp form (and not set it to run
as single instance so it should be STA). I am not using any COM but am using
Infragistics 3rd party grid control and dock manager. Both are .Net components
and don't require registering. The MDIForm as a treeview, dockmanger and a
tablelayout panel prior to opening child forms. Any ideas why this freezing is
occurring? It was much more frequent (even if there was activity) on XP with
SP1 but with SP2, it was much less. Please advise.

Thanks
Anita
Michael Moreno - 16 Aug 2006 12:14 GMT
Hi,

I have had a similar problem and found out that I forgot to use the
standard:

if (InvokeRequired)
 BeginInvoke...

in a few places in the UI methods.

hope this helps.

regards,
MM

Signature

Michael
----
http://michael.moreno.free.fr/
http://port.cogolin.free.fr/


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.