Migrating from 2.6.3 to 2.8.3

Gad Zooks gad_zooks at hotmail.co.uk
Tue May 1 06:38:19 PDT 2007


Hi,

Today I finally decided to upgrade from 2.6.3 to 2.83 and I am
encountering a few puzzling differencesin compiling my application. I
would be grateful if anybody can shed any light on these for me.

1) The method DoAppend() in wxListBox and wxChoice has become a
protected. I have gotten round this by creating a couple of classes
that inherit from the originals and make a public version of
DoAppend(). 

This works but I am puzzled as to why such useful methods should have
become protected? Am I missing the bigger picture?

2) I am running on Windows XP. In 2.6.3 the GUI picked up the native
"look and feel" automatically but since moving to 2.8.3 this is no
longer the case. 

I have changed from using static libraries to DLL's, is this somehow
part of the problem and if so, how do I correct it?

3) More seriously, I now have memory leaks upon exit, which I did not
have before. A stack trace suggests that instances of
wxZlibOutputStream and wxFontPickerCtrl have not been deleted, but I
have ceratainly not directly created them as I was not previously
aware of their existence! I am currently using VC++ 6.0.

I am not the most experienced C++ programmer so I would be grateful if
anybody can give me some insight into the following stack trace:

    dbgheap.c (130): wxZlibOutputStream::~wxZlibOutputStream
    dbgheap.c (130): wxZlibOutputStream::~wxZlibOutputStream
    dbgheap.c (130): wxZlibOutputStream::~wxZlibOutputStream
    dbgheap.c (130): wxZlibOutputStream::~wxZlibOutputStream
    dbgheap.c (130): wxZlibOutputStream::~wxZlibOutputStream
    dbgheap.c (130): wxZlibOutputStream::~wxZlibOutputStream
    dbgheap.c (130): wxZlibOutputStream::~wxZlibOutputStream
    dbgheap.c (130): wxFontPickerCtrl::wxFontPickerCtrl
    dbgheap.c (130): wxFontPickerCtrl::wxFontPickerCtrl
    dbgheap.c (130): wxFontPickerCtrl::wxFontPickerCtrl
    dbgheap.c (130): GetDC
    dbgheap.c (130): GetDC
    dbgheap.c (130): GetParent
    dbgheap.c (130): SendMessageW
    dbgheap.c (130): ImageList_DrawEx
    dbgheap.c (130): ImageList_GetBkColor
    dbgheap.c (130): ImageList_GetBkColor
    dbgheap.c (130): ImageList_GetBkColor
    dbgheap.c (130): ImageList_GetBkColor
    dbgheap.c (130): GetDC
    dbgheap.c (130): GetDC
    dbgheap.c (130): IsWindowUnicode
    dbgheap.c (130): CallWindowProcA
    dbgheap.c (130): wxFontPickerCtrl::wxFontPickerCtrl
    dbgheap.c (130): wxFontPickerCtrl::wxFontPickerCtrl
    dbgheap.c (130): wxFontPickerCtrl::wxFontPickerCtrl
    dbgheap.c (130): GetDC
    dbgheap.c (130): GetDC
    dbgheap.c (130): DefWindowProcW
    dbgheap.c (130): DefWindowProcW
    dbgheap.c (130): KiUserCallbackDispatcher
    dbgheap.c (130): wxFontPickerCtrl::wxFontPickerCtrl
    dbgheap.c (130): wxFontPickerCtrl::wxFontPickerCtrl
    dbgheap.c (130): wxFontPickerCtrl::wxFontPickerCtrl
    dbgheap.c (130): wxFontPickerCtrl::wxFontPickerCtrl
    dbgheap.c (130): wxTreeCtrl::`scalar deleting destructor'
    dbgheap.c (130): wxFontPickerCtrl::wxFontPickerCtrl
    dbgheap.c (130): wxFontPickerCtrl::wxFontPickerCtrl
    dbgheap.c (130): wxFontPickerCtrl::wxFontPickerCtrl
    dbgheap.c (130): wxSplitterWindow::`scalar deleting destructor'
    dbgheap.c (130): wxFontPickerCtrl::wxFontPickerCtrl
    dbgheap.c (130): wxFontPickerCtrl::wxFontPickerCtrl
    dbgheap.c (130): wxFontPickerCtrl::wxFontPickerCtrl
    dbgheap.c (130): wxFontPickerCtrl::wxFontPickerCtrl
    dbgheap.c (130): wxFontPickerCtrl::wxFontPickerCtrl
    dbgheap.c (130): wxFontPickerCtrl::wxFontPickerCtrl
    dbgheap.c (130): wxFontPickerCtrl::wxFontPickerCtrl
   C:\MyProject\Frame_DataLynx.cpp (160):
Frame_DataLynx::~Frame_DataLynx
   C:\MyProject\Frame_DataLynx.cpp (160): Frame_DataLynx::`scalar
deleting destructor'
   C:\MyProject\Frame_DataLynx.cpp (160):
wxFontPickerCtrl::wxFontPickerCtrl
   C:\MyProject\Frame_DataLynx.cpp (160):
wxFontPickerCtrl::wxFontPickerCtrl
   C:\MyProject\Frame_DataLynx.cpp (160):
wxZlibOutputStream::~wxZlibOutputStream
   C:\MyProject\Frame_DataLynx.cpp (160):
wxZlibOutputStream::~wxZlibOutputStream
   C:\MyProject\Frame_DataLynx.cpp (160):
wxZlibOutputStream::~wxZlibOutputStream
   C:\MyProject\Frame_DataLynx.cpp (160):
wxZlibOutputStream::~wxZlibOutputStream
   C:\MyProject\Frame_DataLynx.cpp (160):
wxFontPickerCtrl::wxFontPickerCtrl
   C:\MyProject\App_DataLynxETL.cpp (45): WinMain


I would be grateful for any assistance or advice.

Many Thanks

G






More information about the wx-users mailing list