Kirix Support Forums

Window Move causes crash

Please post all general questions, comments, bug reports, and any other wxAUI feedback here.

Window Move causes crash

Postby peterdove on Thu Mar 16, 2006 6:58 pm

Hi,

I have just started using wxWidgets and have been attempting to implement your window manager. I have got a wxFrame window open and created a panel and assigned it to the manager. The app runs fine but the moment I try to move the panel out of the window I get an access violation in something to do with a event. I include my code below incase there is anything obvious.

The place where it breaks is in appbase.cpp ( function pasted below )

void
wxAppConsole::HandleEvent(wxEvtHandler *handler,
wxEventFunction func,
wxEvent& event) const
{
// by default, simply call the handler
(handler->*func)(event); /
}


You'll probably see from the comments that I have cut and pasted some code from the sample.

Thanks

Peter

//Code removed as matter solved - see post below
}
Last edited by peterdove on Fri Mar 17, 2006 4:20 am, edited 1 time in total.
peterdove
Registered User
 
Posts: 5
Joined: Thu Mar 16, 2006 6:49 pm

Solved

Postby peterdove on Thu Mar 16, 2006 7:04 pm

Hi All,

Well 5 mins later it is solved - seems that you need a panel set in the centre of the window for it to work.


Peter
peterdove
Registered User
 
Posts: 5
Joined: Thu Mar 16, 2006 6:49 pm

Return to wxAUI Questions, Thoughts & Feedback