Getting C++ Assertion error

Hi,

I am new to wxPython and I am trying to access the database. What I am doing
is getting the columns names from a table of a database and attaching it to
the tree ..

Then using

      self.mDatabaseTree.SortChildren(self.mTreeID[server][2])

to expand and sort the column names ..

Now this thing is just working fine on Linux Red Hat but throwing C++
Assertion problem "Assertion Failed" in C:\projects\wx\src\msw\treectrl.cpp

I tried everything but couldn't figure out the problem ..

I am using python 2.2.3 and windows XP .

Your help will be appreciated.

Thanks,

Aashish

Research Assistant

aashish@iastate.edu

def getVariableList(self, server):

      """

      Gets the variables for the specified, host, db, user, pass, table

      tuple

      """

      print "[DBG] Processing: " + str(server)

      if not self.mConnectionMap.has_key(server):

         self.mConnectionMap[server] = MySqlcDatabase(str(server[0]),
str(server[1]), str(server[2]), str(server[3]))

         print "[DBG] Connection Map"

         print self.mConnectionMap

      variables = self.mConnectionMap[server].getColumns(str(server[4]))

      #print '[DBG] Variables in ' + server[4] + ' ' + str(variables)

      for x in variables:

         self.mDatabaseTree.AppendItem(self.mTreeID[server][2], x)

         self.mVariableMap[(server[0], server[3], server[4])][x] = ('',
None, None)

      self.mDatabaseTree.SortChildren(self.mTreeID[server][2])

      #if not 'ID' in self.mVariableMap[server]:

            # self.mVariableMap[server].append('ID')

Doesn't it give you more than just the assertion error ?
Maybe a traceback or so ? Assertions occur anywhere where something goes down
the river. Could be anything without more detail.

···

On Monday 29 September 2003 10:06 pm, aashish wrote:

Hi,

I am new to wxPython and I am trying to access the database. What I am
doing is getting the columns names from a table of a database and attaching
it to the tree ..

Then using

      self.mDatabaseTree.SortChildren(self.mTreeID[server][2])

to expand and sort the column names ..

Now this thing is just working fine on Linux Red Hat but throwing C++
Assertion problem "Assertion Failed" in C:\projects\wx\src\msw\treectrl.cpp

I tried everything but couldn't figure out the problem ..

I am using python 2.2.3 and windows XP .

Your help will be appreciated.

Thanks,

Aashish

Research Assistant

aashish@iastate.edu

def getVariableList(self, server):

      """

      Gets the variables for the specified, host, db, user, pass, table

      tuple

      """

      print "[DBG] Processing: " + str(server)

      if not self.mConnectionMap.has_key(server):

         self.mConnectionMap[server] = MySqlcDatabase(str(server[0]),
str(server[1]), str(server[2]), str(server[3]))

         print "[DBG] Connection Map"

         print self.mConnectionMap

      variables = self.mConnectionMap[server].getColumns(str(server[4]))

      #print '[DBG] Variables in ' + server[4] + ' ' + str(variables)

      for x in variables:

         self.mDatabaseTree.AppendItem(self.mTreeID[server][2], x)

         self.mVariableMap[(server[0], server[3], server[4])] = ('',
None, None)

      self.mDatabaseTree.SortChildren(self.mTreeID[server][2])

      #if not 'ID' in self.mVariableMap[server]:

            # self.mVariableMap[server].append('ID')

--
  UC

--
Open Source Solutions 4U, LLC 2570 Fleetwood Drive
Phone: +1 650 872 2425 San Bruno, CA 94066
Cell: +1 650 302 2405 United States
Fax: +1 650 872 2417