code: def OnInit(self, profile=None, memoryProfile=None):
          
          wx.Image.AddHandler(self.handler)
          frame = MainFrame( config_parser = load_config())
          frame.Show(True)
          self.SetTopWindow(frame)
          if profile:
              wx.CallAfter(frame.load, *[profile])
          elif sys.argv[1:]:
              if sys.argv[1] == '-m':
                  if sys.argv[2:]:
                      wx.CallAfter( frame.load_memory, sys.argv[2] )
                  else:
                      log.warn( 'No memory file specified' )
              else:
                  wx.CallAfter(frame.load, *sys.argv[1:])
          return True
docs: Initialise the application