Re: Cancelling location segments operation from callback

2014-01-26 Thread Martin Panter
Hello again Unfortunately I ran into trouble trying to implement the cancel callback in the Subvertpy library. The library passes a temporary pool to svn_ra_get_location_segments(), and then destroys the pool when the call returns. However this seems to be causing a segfault in the subsequent call

RE: Cancelling location segments operation from callback

2014-01-26 Thread Bert Huijben
ing location segments operation from callback On 26.01.2014 04:23, Martin Panter wrote: This is a followup from my message from a couple months ago: http://svn.haxx.se/users/archive-2013-11/0165.shtml Basically, I was trying to cancel an svn_ra_get_location_segments() call by returning an error f

Re: Cancelling location segments operation from callback

2014-01-25 Thread Martin Panter
Thanks for your explanation Branko and hint about using the cancellation callback. I modified my C code to use it and it seems to do what I want. Unfortunately it doesn’t look like I can set the cancel callback with the Subvertpy library that I’m using, but I’ll see if I can add support for it. Ma

Re: Cancelling location segments operation from callback

2014-01-25 Thread Branko Čibej
On 26.01.2014 04:23, Martin Panter wrote: > This is a followup from my message from a couple months ago: > http://svn.haxx.se/users/archive-2013-11/0165.shtml > > Basically, I was trying to cancel an svn_ra_get_location_segments() > call by returning an error from the callback. The API call seems t

Cancelling location segments operation from callback

2014-01-25 Thread Martin Panter
This is a followup from my message from a couple months ago: http://svn.haxx.se/users/archive-2013-11/0165.shtml Basically, I was trying to cancel an svn_ra_get_location_segments() call by returning an error from the callback. The API call seems to finish straight away as I expect, but when I subs