From 30283e3136c22444a2ecb1263a77654e6f1bd48d Mon Sep 17 00:00:00 2001 From: Dan Gudmundsson Date: Thu, 14 Jul 2011 11:36:50 +0200 Subject: Handle overloading callbacks the same as events Previously other process wx calls where allowed to execute in the callback code, but that lead to a deadlock if for example a dialog was created. --- lib/wx/c_src/wxe_impl.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'lib/wx/c_src/wxe_impl.h') diff --git a/lib/wx/c_src/wxe_impl.h b/lib/wx/c_src/wxe_impl.h index dd872745be..ee31068d5d 100644 --- a/lib/wx/c_src/wxe_impl.h +++ b/lib/wx/c_src/wxe_impl.h @@ -178,7 +178,7 @@ public: wxeMemEnv * global_me; // Temp container for callbacks - char cb_buff[256]; + char *cb_buff; int cb_len; }; @@ -195,7 +195,6 @@ class wxETreeItemData : public wxTreeItemData bool sendevent(wxEvent * event, ErlDrvPort port); void pre_callback(); -void handle_callback_batch(ErlDrvPort port); // For wxePrintout void handle_event_callback(ErlDrvPort port, ErlDrvTermData process); void activateGL(ErlDrvTermData caller); -- cgit v1.2.3