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!

Crash

Status
Not open for further replies.

raghu75

Programmer
Nov 21, 2000
66
IN
Hi,
I have a Clist which contains one more list.I need to delete the member in the inner List using the positions stored.I do the following,but i am getting a crash.Pl. help me to find a soln.below goes the code.

pos1 = List1.GetHeadPosition();
HeadPos = pos1;
node = List1.GetNext(pos1);
pos2 = List1.ChildList.GetHeadPosition();
ChildHdPos = pos2;
ChildNode = List1.ChildList.GetNext(pos2);

now i need to delete the first element in the child list,hence i do the following,

(List1.GetAt(HeadPos)).ChildList.RemoveAt(ChildHdPos);

but this is giving me a crash.

Advance Thanks,
Raghunath.S
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top