Very Strange Bug

This is a discussion on Very Strange Bug within the C++ Programming forums, part of the General Programming Boards category; I have never had this kind of a problem before. I'm thinking it could possibly be a bug in MS ...

  1. #1
    Registered User
    Join Date
    Mar 2002
    Posts
    1

    Very Strange Bug

    I have never had this kind of a problem before. I'm thinking it could possibly be a bug in MS VC 6 or I wrote some code to possibly overwrite some other code in memory. I'm totally at awe with this.

    I have two variables "m_ListX" and "m_List" which are essentially linked list objects. The objects have a "Count()" method which returns the number of items in the list.

    Now these variables are declared globally across my class "ILEliminator" which you can see in the screenshot vardec.jpg.

    Now before I enter a method called "EliminateAssignVar()" in the class ILEliminator you'll notice the "Count()" method returns some values. Then after entering the "EliminateAssingVar()" method the "Count()" of each lists returns bogus values as seen in the watch list. What's very strange about this is that I never modified any of the lists as seen in the before.jpg and after.jpg screenshots.

    I'm completely clueless to what could have caused this. Any insite into the matter would be great. Thanks.

    Attached are the three screenshots illustrating the problem.
    Attached Files Attached Files

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Strange bug with Input stream
    By Chazij in forum C++ Programming
    Replies: 12
    Last Post: 11-18-2008, 03:52 PM
  2. Very strange compiling bug
    By 39ster in forum C++ Programming
    Replies: 3
    Last Post: 07-15-2008, 02:16 AM
  3. Strange bug with DevCPP v 4.9.9.2
    By domhnall4h in forum C++ Programming
    Replies: 4
    Last Post: 03-13-2006, 06:10 AM
  4. Strange Bug?
    By okinrus in forum C++ Programming
    Replies: 3
    Last Post: 07-07-2004, 01:00 PM
  5. Very strange bug...
    By JaWiB in forum Tech Board
    Replies: 6
    Last Post: 04-27-2003, 01:56 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21