[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: Fri, 9 Jan 2009 08:35:58 +0800

---------- Forwarded message ----------
From: yu <kkndyu_at_gmail.com>
Date: 2009/1/7
Subject: Compiling and linking minimal_client.c OK, But running error.
To: users_at_subversion.tigris.org

Hello

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

I'm compiling and Running
http://svn.collab.net/repos/svn/trunk/tools/examples/minimal_client.c
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:
       ntdll.dll!77f4d61b()
       ntdll.dll!77f32044()
       msvcrt.dll!77b9a5d9()
       msvcrt.dll!77b9f850()
       libsvn_subr-1.dll!00423912()
       ntdll.dll!77f9a4c9()
       ntdll.dll!77f50e22()
       ntdll.dll!77f5182f()
       ntdll.dll!77f5182f()
       ntdll.dll!77f9a4e5()
       ntdll.dll!77f9a4c9()
       ntdll.dll!77f50e22()
       ntdll.dll!77f5182f()
       ntdll.dll!77f9a4c9()
       ntdll.dll!77f50e22()
       ntdll.dll!77f5182f()
       ntdll.dll!77f443d2()
       ntdll.dll!77f44546()
       ntdll.dll!77f38464()
       ntdll.dll!77f44483()
       ntdll.dll!77f49cc6()
       ntdll.dll!77f38628()
       ntdll.dll!77f58565()
       ntdll.dll!77f585df()
       ntdll.dll!77f5182f()
       ntdll.dll!77f36f5c()
       ntdll.dll!77f373f3()
       ntdll.dll!77f585df()
       ntdll.dll!77f99d76()
       ntdll.dll!77f9aaa6()
       ntdll.dll!77f9aa8a()
       ntdll.dll!77f9aa8a()
       ntdll.dll!77f58226()
       ntdll.dll!77f585df()
       kernel32.dll!77e1f35f()
> svnclient.exe!main(int argc=2, const char * * argv=0x00c45a20) line 143 + 0x13
       svnclient.exe!mainCRTStartup() line398 + 0x11
       kernel32.dll!77e1f38c()

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:

       libapr.dll!6eec7e69()
       libsvn_subr-1.dll!00432f5a()
> svnclient.exe!main(int argc=2, const char * * argv=0x00c45a20) line148 + 0x9
       svnclient.exe!mainCRTStartup() line398 + 0x11
       kernel32.dll!77e1f38c()

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

Thanks!
K.Y.
Received on 2009-01-09 10:33:11 CET

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