[Botan-devel] LibraryInitializer problem in Win32

Joel Low joel at joelsplace.sg
Sat Oct 20 18:08:29 EDT 2007


Are you sure that it is caused by Botan? What does the debugger say? Run the program under a debugger and see which line (or assembly opcode) is triggering the exception.

I believe that the Botan code does not call abort() which is what you are seeing.

Regards,
Joel

> -----Original Message-----
> From: botan-devel-bounces at randombit.net [mailto:botan-devel-
> bounces at randombit.net] On Behalf Of Jack Lloyd
> Sent: Saturday, 20 October, 2007 11:27 PM
> To: Botan development list
> Subject: Re: [Botan-devel] LibraryInitializer problem in Win32
> 
> Yan,
> 
> To be honest I have never seen this error either with Botan or any
> other VC compiled program so I'm somewhat in the dark. But:
> 
>  - How did you compile Botan w VC8? ./configure.pl && nmake, or
>    through a workspace.
>  - What options did you pass to configure.pl if any?
>  - Did you compile the test application? Did it run OK?
>  - Can you get a backtrace or anything via a debugger?
>  - What OS? Vista? XP? This may be important.
> 
> -Jack
> 
> On Sat, Oct 20, 2007 at 10:31:33AM -0400, Yan Shpilsky wrote:
> > Hello,
> >
> > Thanks again to Jack Lloyd for providing a working patch for the Sun
> > compiler build.
> >
> > The application I was working on executes perfectly on Solaris and
> > Linux using SUNWspro and g++, respectively. Now that I am porting it
> to
> > Windows, however, I am having problems executing the same Botan code.
> >
> > I compiled the Windows version using Visual C++ 8, and the build had
> no
> > issues. The program seems to execute exactly in the same way as it
> did
> > in the POSIX platforms, but as soon as it reaches the Botan library
> > initializer, I receive a strange message during runtime:
> >
> > This application has requested the Runtime to terminate it in an
> > unusual way.
> > Please contact the application's support team for more information.
> >
> > I have noted that this occurs on the line:
> > LibraryInitializer init;
> >
> > I have also tried Botan::LibraryInitializer init; and have had the
> same
> > result.
> >
> > Has anyone experienced this issue before when using Visual C++? I
> have
> > looked around for causes of this, and this message seems to be a
> known
> > occurrence when using various versions of Visual C++.
> > I have tried the several solutions I have found that others have
> noted
> > including uninstalling Google Toolbar and applying the appropriate
> > Microsoft hotfix (support.microsoft.com/kb/884538).
> > Nothing seems to be changing.
> >
> > I'm sure it's something simple, or maybe something that I overlooked,
> > but if I can't fix this issue I may have to resort to an unsupported
> > compiler and try my luck.
> >
> > Any help is appreciated.
> > Regards,
> > Yan
> > _______________________________________________
> > botan-devel mailing list
> > botan-devel at randombit.net
> > http://www.randombit.net/mailman/listinfo/botan-devel
> _______________________________________________
> botan-devel mailing list
> botan-devel at randombit.net
> http://www.randombit.net/mailman/listinfo/botan-devel





More information about the botan-devel mailing list