From 71f259f87b26b69aa36e69cc7e74a6d8adc9b16a Mon Sep 17 00:00:00 2001 From: maxlovic Date: Tue, 12 Jan 2016 13:28:36 +0600 Subject: [PATCH] Update view_win.cc Examining your framework, found this project to be broken. Calling ShowWindow(..) you invoke GetFromHandle(...) where you try to find a newly created window in a vector g_active_views_. The vector is empty and application fails. --- src/view_win.cc | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/view_win.cc b/src/view_win.cc index 10505af..e355fd5 100644 --- a/src/view_win.cc +++ b/src/view_win.cc @@ -44,13 +44,11 @@ class ViewWin : public View, exit(-1); web_view_->set_parent_window(hwnd_); - + g_active_views_.push_back(this); ShowWindow(hwnd_, SW_SHOWNORMAL); UpdateWindow(hwnd_); SetTimer (hwnd_, 0, 15, NULL ); - - g_active_views_.push_back(this); } virtual ~ViewWin() { @@ -170,4 +168,4 @@ LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam) View* View::Create(int width, int height) { return new ViewWin(width, height); -} \ No newline at end of file +}