-
Calling BindFromXml works find for empty nodes of the form .
When reading such a form from a file TinyXML converts it to . Calling BindFromXml on an TiXmlElement based on this form will crash in GenericTiXmlBinding::fromXml because node == NULL.
My fix (not sure if its the best but it seems to work) is to test this case and return true.
So existing code...
2008-05-16 09:54:12 UTC by nobody
-
When compiling using VC++ .NET 2003, an error occurs on
line 43 of tinybind.cpp. New standard suggests
explicitly stating the template modifier before the
function definiton. Adding "template" on the
preceding line causes fixes the problem and should
cause no issues with other compilers.
2006-05-16 14:59:48 UTC by nobody
-
There is memory leak on
StlContainerTiXmlBinding::fromXml(..).
It have to release memory like this:
while(child) {
T * value = new T();
... skip ...
data->push_back(*value);
delete value; // Add THIS!!!
2005-12-15 11:17:37 UTC by wrice
-
TiXmlBinding and IMemberHolder class need virtual
destructor.
2005-12-15 10:25:58 UTC by wrice
-
There are many *static* variables.
Static variables are not good for thread-safe.
It have to replace 'char const *' to 'std::string'.
2005-12-09 04:00:06 UTC by wrice
-
MemberTiXmlBinding class make memory leaks.
It have to have a destructor to release memory.
You can add it like this:
template < class T >
class memberTiXmlBinding : public TiXmlBinding
{
private:
struct FuncDelete
{
void operator()(IMemberHolder* const ptr) const
{ delete ptr; }
};
...skip...
public:
virtual ~MemberTiXmlBinding()
{.
2005-12-07 05:30:30 UTC by wrice
-
need support for bool type.
I had have to make for bool.
2005-12-06 13:35:30 UTC by wrice
-
eries committed patchset 1 of module tinybind to the tinybind CVS repository, changing 9 files.
2004-10-28 06:51:47 UTC by eries
-
Anonymous committed patchset 1 of module CVSROOT to the tinybind CVS repository, changing 11 files.
2004-10-26 15:11:41 UTC by nobody
-
Welcome to Developers.
2004-10-26 14:13:44 UTC by nobody