Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

access violation upon trying to return an object

Status
Not open for further replies.

CINC

Programmer
Oct 30, 2001
17
0
0
US
In a class called Sort, where I compare different sorting routines to analyze their efficiencies, I have 4 public methods that return an object of type TestData by value, also taking TestData objects in as value parameters. In one of these, the bubbleSort function, I was debugging, and noticed that it made it through the entire function until the last statement: return x. Upon trying to reutrn the TestData object x is where it gave me an access violation. Any ideas?

Thanks,
CINC

P.S. If anyone is good at debugging, please let me know, as I really need help with this one. The code is organized, and it is not the biggest project you have seen I'm sure.
 
Forgive me, I just wanted mine at the top.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top