I am writing a method that accepts three vectors. They each hold just one type of object. One holds type a, one holds type b, and one holds type c. Each type is a homemade class that is working properly. I have been extremely careful to keep track of which vector is which. In spite of ALL of these precautions I get the "classCastError" when I try to take an object out of the first vector and cast it as type a. The problem only occurs if there are elements in the second vector.
So the presence of records in the second vector makes casting fail in the FIRST vector. I know that it sounds unbelievable but it is true.
I have worked twelve hours on this one issue. Please advise.
So the presence of records in the second vector makes casting fail in the FIRST vector. I know that it sounds unbelievable but it is true.
I have worked twelve hours on this one issue. Please advise.