Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(41)

Issue 21018: Adding tracking of HWND creation/destruction (Closed)

Created:
11 years, 10 months ago by jcampan
Modified:
9 years, 7 months ago
Reviewers:
sky
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

This CL adds macro used to track the creation and destruction of HWNDs, in an attempt to detect potential double-delete. A double-delete of a HWND might be responsible for the crasher http://crbug.com/4714 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=9109

Patch Set 1 #

Patch Set 2 : '' #

Total comments: 2

Patch Set 3 : '' #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+126 lines, -10 lines) Patch
M base/win_util.h View 2 chunks +18 lines, -0 lines 0 comments Download
M base/win_util.cc View 1 2 2 chunks +63 lines, -0 lines 1 comment Download
M chrome/browser/plugin_process_host.cc View 3 chunks +3 lines, -0 lines 0 comments Download
M chrome/browser/renderer_host/render_widget_host_view_win.cc View 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/views/native_control.cc View 1 2 4 chunks +15 lines, -9 lines 0 comments Download
M chrome/views/text_field.cc View 4 chunks +13 lines, -0 lines 0 comments Download
M chrome/views/widget_win.cc View 2 chunks +3 lines, -0 lines 0 comments Download
M webkit/glue/plugins/webplugin_delegate_impl.cc View 5 chunks +5 lines, -0 lines 0 comments Download
M webkit/tools/test_shell/webwidget_host_win.cc View 2 chunks +4 lines, -1 line 0 comments Download

Messages

Total messages: 4 (0 generated)
jcampan
11 years, 10 months ago (2009-02-03 17:45:46 UTC) #1
sky
Is it worth tracking the other HWNDs we create? Tables, trees, buttons ... If you ...
11 years, 10 months ago (2009-02-03 18:02:04 UTC) #2
jcampan
Modified NativeControl to track its HWND, which covers buttons, tab panned and the rest. As ...
11 years, 10 months ago (2009-02-03 19:32:42 UTC) #3
sky
11 years, 10 months ago (2009-02-03 20:37:24 UTC) #4
LGTM

http://codereview.chromium.org/21018/diff/42/45
File base/win_util.cc (right):

http://codereview.chromium.org/21018/diff/42/45#newcode412
Line 412: "Double delete of HWND 0x" << hwnd << "\n" <<
will "<< hwnd" give you hex, or decimal?

Powered by Google App Engine
This is Rietveld 408576698