You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by John Gourlay <go...@BAUERCONTROLS.com> on 2009/02/11 19:19:58 UTC

Access violation embedding subversion

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.

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=462&dsMessageId=1140392

RE: Access violation embedding subversion

Posted by John Gourlay <go...@BAUERCONTROLS.com>.
Thanks for the advice.  I've posted the same message on the users list.

-----Original Message-----
From: Hyrum K. Wright [mailto:hyrum_wright@mail.utexas.edu] 
Sent: Wednesday, February 11, 2009 2:58 PM
To: John Gourlay
Cc: dev@subversion.tigris.org
Subject: Re: Access violation embedding subversion

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=1140653


Re: Access violation embedding subversion

Posted by "Hyrum K. Wright" <hy...@mail.utexas.edu>.
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