On Thu, 2008-08-28 at 08:54 +0200, Ivan Zhakov wrote:
> On Thu, Aug 28, 2008 at 8:46 AM, Tony Butt <tjb_at_cea.com.au> wrote:
> > On Thu, 2008-08-28 at 08:37 +0200, Ivan Zhakov wrote:
> >> On Thu, Aug 28, 2008 at 3:06 AM, Tony Butt <tjb_at_cea.com.au> wrote:
> >> > Dear svn users,
> >> >
> >> > I am trying to rebuild an application we have which uses the subversion
> >> > development libraries.
> >> >
> >> > My build tool is Visual Studio 2003.NET on Windows XP, and I can build
> >> > the application against the svn 1.3.2 development libaries, and the
> >> > 1.4.3 development libraries, and run it successfully.
> >> >
> >> > I can build against the current 1.5.1 libraries (after changing 1 option
> >> > - now don't exclude LIBCD), but whenever I try to run it, I get an
> >> > access violation on calling svn_cmdline_init().
> >> >
> >> > I have totally removed all other subversion binaries and libraries from
> >> > the build system, and checked the startup messages from the debug
> >> > session, only the development libraries are being called.
> >> >
> >> > I have even simplified the application, so that the first few lines look
> >> > like:
> >> >
> >> > int main(int argc, const char * const argv[])
> >> > {
> >> >
> >> > printf("Starting up\n");
> >> >
> >> > svn_cmdline_init ("versioner", stderr); // Crashes here without fail.
> >> >
> >> > ...
> >> >
> >> >
> >> > }
> >> >
> >> > and there is still a crash on svn_cmdline_init
> >> >
> >> > I have tried both the apache2.0 and apache2.2 binaries, and I see the
> >> > same behaviour.
> >> You have to initialize APR runtime using apr_initialize().
> >>
> > No - that doesn't do it for me.
> > apr_initialize() runs OK, then the same error occurs in
> > svn_cmdline_init(). From the comments attached to scn-cmdline_init, it
> > is supposed to call apr_initialize anyway.
> >
> We've similar problem when we build our application using Debug
> runtime, while Subversion linked to Release. Please try to build your
> application in Release configuration.
>
I tried that, still fails, in the same place.
Thanks
Tony Butt
>
Received on 2008-08-28 09:21:04 CEST