Strange pattern with a dangling pointer in TProc
From: Dmitry <wipedout_at_yandex.ru>
Date: Tue, 23 Nov 2010 12:14:43 +0300
Hey.
Almost any class implementing a Tortoise Proc "user command" has a pattern like the following:
void CClass::Execute()
When the function exits the dialog object is destroyed, but m_pMainWnd in the global object is kept unchanged and now stores a dangling pointer. Is there any reason for that? If not - I could send in a fix.
Best wishes.
------------------------------------------------------
To unsubscribe from this discussion, e-mail: [dev-unsubscribe_at_tortoisesvn.tigris.org].
|
This is an archived mail posted to the TortoiseSVN Dev mailing list.
This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.