Hi,
I've just upgraded to latest Python ActiveState and wxPython 2.3. I have a quite simple application consisting of 3 panes (splitter windows). The application reads a SQL file and presents the file in one pane (derived from wxStyledTextCtrl), a list of errors (syntax, semantic) in the file in another pane (derived from wxListCtrl) and the actual interpretation of the content of the file in the last pane (derived from wxTreeCtrl). If the user selects an item in the list control, the corresponding line in the wxStyledTextCtrl is selected/highlighted by the following code (method in the wxStyledTextCtrl):
def SetActiveLine(self, lineNbr):
if lineNbr < 0:
lineNbr = 1
self.ScrollToLine(lineNbr-1)
if self.PrevLine >= 0:
self.MarkerDeleteAll(0) #(self.PrevLine)
self.MarkerAdd(lineNbr-1, 0)
self.PrevLine = lineNbr-1
The same happens when an item in the tree control is chosen - the corresponding line in the file is selected/highlighted by using the same method. Now the problem. When I terminate the application (either 'Exit' or 'Close') I get an exception if an item in the tree-control has been selected (and the corresponding line in the wxStyledTextCtrl is selected). Selecting item in the list-control works ok.
The exception is a message that a particular memory location could not be read.
Any help is appreciated. Thanks in advance.
Nikolai
PS: The total size of the application is 428 + 122 lines. I'll send it if anyone would like to have a look.