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

Re: Problem with python swig example - geturl.py

From: Philip Martin <philip_at_codematters.co.uk>
Date: 2002-12-03 00:37:41 CET

Jon Middleton <jjm@ixtab.org.uk> writes:

> I'm having some problems with updating geturl.py to the lastest swig
> bindings. When the following line is run the script segv's
> adm_baton = wc.svn_wc_adm_open(None, None, dir, True, True, adm_pool)
> Can anyone shed any light on what I'm doing wrong ? I've also attached
> the script.

I know nothing about swig. The C function svn_wc_adm_open returns an
error (an svn_error_t*) not an access baton (an svn_wc_adm_access_t*).
The access baton is returned through the first argument, which is of
type svn_wc_adm_access_t**. If passing "None" above is equivalent to
passing NULL in C then that will cause a segv.

Philip Martin
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Tue Dec 3 00:38:25 2002

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