Re: MFC MDI app hangs randomly on some machines, but not others (most are OK). Typical causes?

From: Johan Rosengren (johan.rosengren_at_telia.com)
Date: 05/20/04


Date: Thu, 20 May 2004 16:04:21 +0200

coder,

If the problem is reproducible on the problematic machines, that is, the
same file always hang on machine X, but not on Y and Z, you will probably
have to find *and* not all files give problems on X, you'll have to analyze
the difference between the data files to get further. From what I understand
from your post, this is not the case however. You might want to use the age
old method of adding logging code to your app, perhaps activated by a flag.
Then you will have a chance to diagnose where in code the hang occurs, and
will have a much better chance of catching the problem.
Machine dependent problems I've been through during my days as a developer
includes non-initialized double class members (resulting in a crash on some
processors) and differences in graphics card drivers (handling coordinate
overflow differently).

Johan Rosengren
Abstrakt Mekanik AB

"coder" <googlecoder@yahoo.com> a écrit dans le message de
news:bfcb891f.0405190957.3a02976d@posting.google.com...
> Please advise.
>
> On rare occasions, users of our MFC MDI app have found that the
> program hangs when opening files (our own custom file types).
> However, we have been unable to recreate the problem during extensive
> testing (98/SE,ME,XP,2000), making it hard to track down.
>
> It seems that two identical machines (OS, dll versions and spec) can
> behave quite differently with exactly the same app and file to open -
> only the hardware is different. In testing, clean installations of all
> major Windows operating systems have failed to reproduce the bug.
>
> It seems that all of the crashes occur on Win 98/ME, though we have
> many users of these OSs who have not encountered any problems. Most
> systems which have encountered the bug have been of HIGHER spec
> (memory/processor/disk) than the slowest sytems tested by us, so it
> does not look like a plain system resource issue. The app is
> installed on many hundreds of machines, and is operating OK.
>
> DLL versioning (eg comctl) has been checked and shown to be OK in many
> of the problem cases. The MFC dlls are statically linked to the app.
> One other custom dll is distributed and stored locally with the app.
>
> The crash always occurs during the file open process, not during app
> launch. Unfortunately we are unable to catch the crash in a debugging
> environment (as we cannot reproduce the bug in test).
>
> So the question is... are there any *typical causes* of problems which
> result in this kind of inconsistent behaviour across systems? I have
> read that video card acceleration may be to blame... but other
> thoughts much appreciated.
>
> Thanks. All help gratefully received.



Relevant Pages

  • Connected App (VB2005) Help...
    ... I need to have an app run on several machines in a LAN. ... know of each other's existence and be able to communicate simple messages ... Any thoughts on why VB services hang? ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Request for suggestions re: architecture of IntraNet/Socket app[s]
    ... I am commissioned with determining the "right" architecture for an application for controlling movement of stock in a warehouse. ... Much of your system describes monitoring -- control implies schedule and tracking for purposes of changing system operation -- correct? ... If multiple machines can handle the pieces and some machines do different operations -- then there is an element of scheduling and a time frame in which to complete. ... separate RealTime system either from the IntraNet server app OR from another ...
    (borland.public.delphi.non-technical)
  • RE: vb6 usercontrol gives access violation when handling events
    ... It is odd that you can't reproduce the problem yet I can obtain the same ... runtimes and the machines here are used to maintain that application. ... The looping problem does not manifest itself on every run ... The nested user control access violation was found during testing of the ...
    (microsoft.public.vb.bugs)
  • Re: running apps as power user. Permission problems.
    ... >runs the app as a power user logged onto their network. ... Then reduced their rights to power ... developers run their own machines as supervisor. ... programmers seem to do a basic installation, ghost it, and just scrub ...
    (microsoft.public.windowsxp.security_admin)
  • Re: Counter Strike blocker?
    ... - School policy - From what you say there is a distinct lack of school ... and i mean no one should be admin of any machines except the ... spot any game servers would be to have a machine installed with Half life ... Another alternative would be to create an invisible app (one that is not ...
    (microsoft.public.dotnet.languages.vb)