[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

svn client API: svn_client_commit crashes

From: MONTEUX Eric <eric.monteux_at_criltechnology.com>
Date: 2007-01-04 18:43:04 CET

I am currently developping a light svn client.
I use the svncpp API, subversion 1.4.0, under Windows XP with Visual studio 7.1.
I have a problem while trying to commit a file into my repository using the API, it crashes apparently while calling the checkout_resource function (apparently in the last instruction "free(locn)" on line 591 of the commit.c file.
I don't encounter this problem using the tortoiseSVN client...
Here is my source code (svnIo is a wrapper class around the svncpp API, for which the m_client member is a svn::Client instance).
I initialize the m_client member with a valid username / password prior to calling svnIo::commit.
I also allocate a contextListener that I made in order to set a listener to the context associated with my svn::client.
Help would be welcomed, since I don't find a way to fix this...
Thanks in advance.
Best regards.
bool svnIo::commit(const string& path, bool recurse, const string& message)




std::vector<svn::Path> targs;


svn::Targets targets(targs);

svn::Pool pool;

p_impl->m_client.commit(targets.array(pool), message.c_str(), recurse, false);

return true;


catch(svn::ClientException& e)


return false;


Received on Thu Jan 4 18:44:22 2007

This is an archived mail posted to the Subversion Dev mailing list.