VC++ 6.0 and WinXP Home: Memory addressing conflicts???
From: Graeme Swallow (kypnua_at_yahoo.com)
Date: 04/26/04
- Previous message: Nishant S: "Re: Getting compiler error C2653 and don't know why."
- Messages sorted by: [ date ] [ thread ]
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.
- Previous message: Nishant S: "Re: Getting compiler error C2653 and don't know why."
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|
|