[Bug 171275] kmail crashes on startup with ASSERT: "s->parsed ==	false" in kdelibs4/kcmdlineargs.cpp
    John Baldwin 
    jhb at FreeBSD.org
       
    Thu Sep 18 13:19:15 BST 2008
    
    
  
http://bugs.kde.org/show_bug.cgi?id=171275
--- Comment #1 from John Baldwin <jhb FreeBSD org>  2008-09-18 14:19:14 ---
Looking at the kcmdlineargs.h header, it seems that kmail is following the
documented procedure:
 *     // Initialize command line args
 *     KCmdLineArgs::init(argc, argv, appName, programName, version,
description
);
 *
 *     // Define the command line options using KCmdLineOptions
 *     KCmdLineOptions options;
 *     ....
 *
 *     // Register the supported options
 *     KCmdLineArgs::addCmdLineOptions( options );
 *
 *     // Add options from other components
 *     KUniqueApplication::addCmdLineOptions();
main():
  KCmdLineArgs::init(argc, argv, &about);
  KCmdLineArgs::addCmdLineOptions( kmail_options() ); // Add kmail options
  if (!KMailApplication::start())
     return 0;
and PimApplication::Start() trickles down to KUniqueApplication::Start() which
calls KUniqueApplication::addCmdLineOptions().  The example in the header
wouldn't set s->parsed = TRUE until later when KCmdLineArgs::parseAllArgs() is
called, so I think the example code in the header would always trip this
assert.
-- 
Configure bugmail: http://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
    
    
More information about the Kdepim-bugs
mailing list