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

Re: Access violation embedding subversion

From: Hyrum K. Wright <hyrum_wright_at_mail.utexas.edu>
Date: Wed, 11 Feb 2009 13:57:42 -0600

Hi John,
This list is about the development *of* Subversion, not development
*with* Subversion. Your question would be more appropriate on the
users list.

Thanks,
-Hyrum

On Feb 11, 2009, at 1:19 PM, John Gourlay wrote:

> 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.
>
> <embed_subversion.cpp>

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=462&dsMessageId=1140511
Received on 2009-02-11 20:58:02 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.