deleteing settinglist problem

Login to reply to this topic.
Thu, 2005-06-09 13:28
Anonymous
Forum posts: 2043
I want to delete settinglist in my app on a event and create/display another list in same container.
when i try to delete list like this "delete iList" my app get crash Sad

but same "delete iList" works fine in destructor...

Thu, 2005-06-09 13:34
Joined: 2005-03-06
Forum posts: 183
Re: deleteing settinglist problem
Errr, yeah, instead of "deleting" the list, you should empty it and refill it, then you should be fine.

Reagrds,
Issey
Thu, 2005-06-09 13:35
Joined: 2004-05-24
Forum posts: 982
Re: deleteing settinglist problem
Are you changing also the number returned by CountComponentControl  and the resizing code in SizeChanged() ?
Almost for sure from there is the problem

pirosl

Thu, 2005-06-09 13:49
chishti_hameed (not verified)
Forum posts: 2043
Re: deleteing settinglist problem
Quote from: isseyp
Errr, yeah, instead of "deleting" the list, you should empty it and refill it, then you should be fine.

Reagrds,
Issey

i dont want to refill , actually my first list is settingitem list(with radio) and second is siglegraphicsstyle.

Or may be resizing both of them as/when needed wil help me?


Thu, 2005-06-09 13:50
chishti_hameed (not verified)
Forum posts: 2043
Re: deleteing settinglist problem
Quote from: pirosl
Are you changing also the number returned by CountComponentControl  and the resizing code in SizeChanged() ?
Almost for sure from there is the problem

when does this "CountComponentControl  " is called?Huh?
Thu, 2005-06-09 13:54
chishti_hameed (not verified)
Forum posts: 2043
Re: deleteing settinglist problem
may be problem is coz of "CountComponentControls" ...
how should this method look like in my situation?


Thu, 2005-06-09 14:14
chishti_hameed (not verified)
Forum posts: 2043
Re: deleteing settinglist problem
i used 1 flag to check which list should be active now.
simply changing their size is working fine for me Smiley
Thu, 2005-06-09 14:30
Joined: 2004-05-24
Forum posts: 982
Re: deleteing settinglist problem
You can put some break points to see where exactly that code is called. And it's ok using some flags to see with what controls are you working on.

What i'm trying to say is that after you delete your list you try to use it somewhere else Smiley. A simple debuging of your code will show where exactly this is happening.

pirosl

  • Login to reply to this topic.