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 / .NET Framework / New Users / July 2007

Tip: Looking for answers? Try searching our database.

Machine locks up running app off network

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Pat - 08 Jul 2007 01:28 GMT
I have a .NET application that is run off of a shared network drive.
About 5 users (out of 100) periodically have their entire machines
deadlock when they try to run the application.  I was able to
reproduce the issue a couple times on one of the user's machines.  One
time I had the Task Manager open when I launched the app and the Task
Manager also stopped responding (ctrl-alt-delete did nothing either)

I tried re-installing the .NET Framework, but I was still able to get
the machine to lock up when I launched the application.  I also tried
running the application locally and was not able to get the machine to
lock up though this is not an ideal solution.  The reason we run it
from the shared drive is so that we do not have to distribute updates
to every user.

I did some research and read about how deadlocks can occur in mixed-
mode dlls if you try to run managed code in the DllMain of the
unmanged code, but we do not have any unmanaged code in our app.  Even
if we did, that would only deadlock the process it is running in and
not the whole machine, correct?  It seems like the machine is
deadlocking when the CLR is loading the application but before it
starts executing b/c the splash screen for the app isn't shown before
the machine stops responding.  Does anyone have any ideas on what
could be causing this behavior?
Jani Järvinen [MVP] - 09 Jul 2007 07:07 GMT
Hi Pat,

>I have a .NET application that is run off of a shared network drive.
> About 5 users (out of 100) periodically have their entire machines
> deadlock when they try to run the application.

If your application freezes completely along with the computer (as in,
Alt+Tab or Ctrl+Alt+Del won't work) and the computer won't unfreeze itself
within, say, 30-60 seconds, then it sounds to me these PCs have a hardware
or driver related issue.

In Windows, if an application (yours, in this case) would become
unresponsive, only that application would freeze, not the whole computer.
That is, there should be no problem switching to other application or
pressing Ctrl+Alt+Del.

However, if the PCs are older and not very fast, it could be that your
application for some reason hogs all 100% of the CPU time, which would mean
the entire PC would appear frozen. You can use Task Manager (Ctrl+Shift+Esc)
to verify if this is the case.

Even so, if only these five PCs are the ones that cause you trouble, try
investigating the hardware. For instance, a faulty network card or router
could cause these issues. Also, if the users report that also other
application cause similar problems, then you know it is not your application
that is causing the trouble.

Hope this helps.

Signature

Regards,

Mr. Jani Järvinen
C# MVP
Helsinki, Finland
janij@removethis.dystopia.fi
http://www.saunalahti.fi/janij/

>I have a .NET application that is run off of a shared network drive.
> About 5 users (out of 100) periodically have their entire machines
[quoted text clipped - 19 lines]
> the machine stops responding.  Does anyone have any ideas on what
> could be causing this behavior?

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.