VC++ 6.0 and WinXP Home: Memory addressing conflicts???

From: Graeme Swallow (kypnua_at_yahoo.com)
Date: 04/26/04

  • Next message: OvErboRed: "Backward Compatibility?"
    Date: 26 Apr 2004 08:49:11 -0700
    
    

    Hi. I wrote a program involving linked lists with Visual C++ 6.0 and
    Win98. I have been using it for the last 4 months on Win98 with no
    problem, so I am confident my code is correct. However, last week I
    converted my computer to WinXP Home edition. Now my program is
    guaranteed to crash every time I run it.

    The crash occurs when I attempt to shrink the list by deleting nodes
    off the end of the list. If I'm lucky, VCC catches it and reports
    "access violation". If I'm unlucky, WinXP catches it, terminates the
    program and does not allow me to run the debugger.

    Note that the crash is random. Sometimes I can perform as many as 40
    shrinking operations before a crash, sometimes as few as 5 or 6. (No,
    I'm not accidentally trying to shrink a list to negative size. I have
    all kinds of error checking in my code for that kind of thing.) It is
    never the same twice, even though I perform the same sequence of
    operations every time.

    Bottom line: Does WinXP use some different form of memory addressing
    or something that would cause this problem? I am sure it is not my
    code because of its flawless performance on the Win98 OS.

    Thanks.

    P.S. -- You may be good natured and want to help, but please don't ask
    me to send you code, at least not the entire thing. There are 120
    source code files with an average length of 300-400 lines per file.


  • Next message: OvErboRed: "Backward Compatibility?"

    Relevant Pages

    • Re: Born this Day (Lord Willing) The Crash Cart Project
      ... which can be part of this recovery set. ... from a system crash (broken X, bad HW, anything making the machine ... I have seen several on the lists needing crash help. ... make a simple script which copies the critical log files from /var/log ...
      (Fedora)
    • Re: Born this Day (Lord Willing) The Crash Cart Project
      ... which can be part of this recovery set. ... from a system crash (broken X, bad HW, anything making the machine ... I have seen several on the lists needing crash help. ... make a simple script which copies the critical log files from /var/log ...
      (Fedora)
    • Re: How to clear device errors w/o reboot?
      ... CLEAR_ERRORS zeroes out the error count for all devices on a VMS Alpha ... linked lists, zeroing the error fields at it goes. ... Zeroing the error fields can only be done from kernel mode and should be ... There is always a risk of a system crash when executing in kernel mode, ...
      (comp.os.vms)
    • Re: Born this Day (Lord Willing) The Crash Cart Project
      ... applications from scratch. ... which can be part of this recovery set. ... from a system crash (broken X, bad HW, anything making the machine ... I have seen several on the lists needing crash help. ...
      (Fedora)
    • Re: Born this Day (Lord Willing) The Crash Cart Project
      ... I am thinking of first a set of applications which ... Perhaps the process could make for the developers a standard "Crash ... I have seen several on the lists needing crash help. ... but the Xorg binary of very recent date - I remembered the problems I ...
      (Ubuntu)