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

Access violation embedding subversion

From: John Gourlay <gourlay_at_BAUERCONTROLS.com>
Date: Wed, 11 Feb 2009 14:19:58 -0500

I'm hoping to embed some of the features of subversion in another
product in Windows by loading the dlls installed with the subversion
command-line client. I've made a few simple things work, but I'm
getting an access violation in a call to svn_client_uuid_from_url. Can
anyone see what I'm doing wrong?


Attached is a little C program that I'm using as a proof of principle.
It does the following:


Loads the libraries libsvn_client-1.dll and libapr-1.dll. These came
with version 1.5.4 of the command-line client.


Gets the addresses of various functions in the libraries.


Gets the subversion client version number (1.5.4).


Creates an apr allocator and then an apr pool.


Creates a subversion context.


Everything works to this point. Then, it calls
svn_client_uuid_from_url, which crashes the program with an access
violation reading location 0x00000008. It looks like
svn_client_uuid_from_url calls svn_client__open_ra_session_internal,
which calls svn_ra_open3. The crash occurs somewhere in svn_ra_open3.


Received on 2009-02-11 20:53:03 CET

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

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.