Solved

C++ visual 6.0 Exception

Posted on 2007-12-03
3
214 Views
Last Modified: 2013-12-14
I have an array of classes.  I get really weird behavior.  It on occassion will throw an exception when it tries to access the 0'th member ot the array of classes.  I have to use Visual CC++ 6,0.  I tried to step through the code and when it goes to access the 0th member, it tries to look for a file vc60.pdb.  I can't seem to find the file on my Visual C++ installation disk.  

The array of classes is defined in the accompaning header file that goes with the C++ file that calls the member functions. It looks something like this:

ClassCallsMyClass.h
------------------------------
ClassCallsMyClass{
protected:
MyClass x[100];
};

I don't delete at the end MyClass since it's allocated.  Plus, the exception seems to always happen at the start of ClassCallsMyClas.
0
Comment
Question by:lcor
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 

Author Comment

by:lcor
ID: 20397005
Also, I checked to make sure there was data in the 0th member of the MyClass and the Visual C++ 6.0 debugger showed there was.
0
 
LVL 55

Accepted Solution

by:
Jaime Olivares earned 500 total points
ID: 20402107
Could you post more code? where the array members are initialized? where are accessed? which error messages?
0
 

Author Comment

by:lcor
ID: 20492820
It turned out to be  a bug in the logic....I'll award for the effort.
0

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This solves the problem of diagnosing why an internet connection is no longer working. It also helps identify the likely cause of the lost connection if the procedure fails to re-establish your internet connection. It helps to pinpoint the likely co…
Sometimes you have to pull out old tricks to get a new firewall to work… While we were installing a new Sonicwall at a customers site we found that sites they were able to visit before were not working.  It seemed random and we could not understa…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

710 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question