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

Compiling and linking minimal_client.c OK, But running error.

From: yu kknd <kkndyu_at_gmail.com>
Date: Wed, 7 Jan 2009 21:40:17 +0800


I am a developer who wants to build the client application using
Subversion's C client API.

I'm compiling and Running
on Windows 2003 using Microsoft VS 2003,

I downloaded svn-win32-1.5.4.zip, svn-win32-1.5.4_dev.zip,
db-4.4.20-win32.zip and svn-win32-libintl.zip, to gain access to the
header files and pre-compiled static libraries.

I set the include path and used these additional libraries:
libsvn_client-1.lib libsvn_delta-1.lib libsvn_diff-1.lib
libsvn_fs-1.lib libsvn_fs_base-1.lib libsvn_fs_fs-1.lib
libsvn_ra-1.lib libsvn_ra_dav-1.lib libsvn_ra_local-1.lib
libsvn_ra_svn-1.lib libsvn_repos-1.lib libsvn_subr-1.lib
libsvn_wc-1.lib libapr.lib libaprutil.lib xml.lib libneon.lib
intl3_svn.lib libdb44s.lib

then I compile and link and get the file of exe, there is no error occur¡­

After I copy all the DLLS (like svn_client-1.dll etc) to the Debug
file, I debug the minimal_client.c, everytime when running to the line

if (svn_cmdline_init ("minimal_client", stderr) != EXIT_SUCCESS)
¡¡¡¡return EXIT_FAILURE;

there is an error:

Unhandled exception in svnclient.exe 0x77f4d61b: 0XC0000005: Access
Violation when writing to the address of 0x00000010

The stack is below:
> svnclient.exe!main(int argc=2, const char * * argv=0x00c45a20) line 143 + 0x13
         svnclient.exe!mainCRTStartup() line398 + 0x11

then I delete the two line, compiling again and debug , the same error
occur in the line

pool = svn_pool_create (NULL);

the stack looks:

> svnclient.exe!main(int argc=2, const char * * argv=0x00c45a20) line148 + 0x9
         svnclient.exe!mainCRTStartup() line398 + 0x11

I'm comfused, I don't know which step I lost or doing wrong ...
someone who knows PLZ help me ...

Received on 2009-01-07 15:00:51 CET

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

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