I get a Heap Leak every time that I use the --help switch or usage information is posted. If valid arguments are used, then there is no leak and everything runs fine. Also, I cannot create my own class to override version, failure, and usage messages as it always leads to a heap leak. I'm not sure what to do about this.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I found that this is happening when I call the isSet() method to test for which arguments were set due to using the xorAdd method. The weird part is that it detects the leak at this method call only when an invalid argument or --help or the like is specified. This occurs whether or not I specify my own output object.
If i specify my own output object and give it valid parameters, then a heap leak is detected on exit of the program.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I get a Heap Leak every time that I use the --help switch or usage information is posted. If valid arguments are used, then there is no leak and everything runs fine. Also, I cannot create my own class to override version, failure, and usage messages as it always leads to a heap leak. I'm not sure what to do about this.
I found that this is happening when I call the isSet() method to test for which arguments were set due to using the xorAdd method. The weird part is that it detects the leak at this method call only when an invalid argument or --help or the like is specified. This occurs whether or not I specify my own output object.
If i specify my own output object and give it valid parameters, then a heap leak is detected on exit of the program.
Please use the bug-tracker for these kind of things.
https://sourceforge.net/tracker/?atid=547806&group_id=76645&func=browse
This issue has now been resolved please see http://sourceforge.net/tracker/index.php?func=detail&aid=1662188&group_id=76645&atid=547806 for details.