Developer forums (C::B DEVELOPMENT STRICTLY!) > Development

UpdateUI Events Not Exactly the problem

<< < (3/3)

devilsclaw:
ok i found the exact line causing the problems


--- Code: ---        // project settings

        nb->DeletePage(7); // remove "Other" page
        nb->DeletePage(4); // remove "Programs" page

        // remove "Compiler" buttons
        wxWindow* win = XRCCTRL(*this, "btnAddCompiler", wxButton);
        wxSizer* sizer2 = win->GetContainingSizer();
        sizer2->Clear(true);
        sizer2->RecalcSizes();
        sizer2->Layout();

--- End code ---

all of these are causing the problem if you comment them out and click on build options it loads instantly..

i think the deletes are the same problems as the bad events it passing bad ids and casing infinite loops since there not there.. as for the remove compiler button not sure why its causing problems yet.

EDIT: UPDATE

these are the real trouble makers..


--- Code: ---nb->DeletePage(7); // remove "Other" page

--- End code ---


--- Code: ---sizer2->Clear(true);

--- End code ---

EDIT: ok the above two are the only ones. finally narrowed it down.

for one you do a DoFillOther but i already found out that normally slows down loading the window not locking it up.. but the DoFillTree locks it up when the deleteoptions is un commented

EDIT: Figured out why the clear was causing problems the true passed to it was the problem


--- Code: ---sizer2->Clear();

--- End code ---

that got rid of that error all thats left if fixing the problem caused by the delete of other

devilsclaw:
even though the changing the clear fixed the one error, its best to leave it un commented because it causes dialog display problems. the rest is find.. the delete is still a problem.

i think its deleting something other then the other

devilsclaw:
ok i fixed the finall error

Was:

--- Code: ---nb->DeletePage(7); // remove "Other" page

--- End code ---

Now:

--- Code: ---nb->RemovePage(7); // remove "Other" page

--- End code ---

for some reason delete page causes a problem here to i decided to try out remove page and it removes it from the list and no lock ups.

i will work on getting a patch made.

byo:
Sending patch is nothing bad, but maybe some bug report would be better thing if you're not sure about the patch. Anyway, either patch or bug report would be nice :)

BYO

Navigation

[0] Message Index

[*] Previous page

Go to full version