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 biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

run time error 28 --- out of stack space

Status
Not open for further replies.

wujen

Programmer
Aug 21, 2001
79
US
hey all,

i have a treeview and listbox(indexed 0 - 83). If node of treeview then opens the correct listbox.

I have this code here that has the run time error.

Private Sub lstAttributes_Click(Index As Integer)

Dim i As Integer

lstAttributes(i).Text = fMainForm.ActiveForm.rtfText.Text

End Sub

what do I have to do to get the transfer of listitem text to get to the activeform.rtf.text????

Aaron
 
Hi,

Assuming lstAttributes is the listbox, the Click event lstAttributes_Click index is what you should use.
(NOT i)

e.g.
Code:
lstAttributes(index).Text = fMainForm.ActiveForm.rtfText.Text

Ciao

 
phathi ,

i changed i to index and still the same runtime error

aaron
 
From posted code could not see how you could get out of stack space error.
However, I got same error once when I created a recursive class that in certain conditions would create an infinite loop.
Perhaps you are creating objects in a loop?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top