Boost logo

Boost Users :

Subject: Re: [Boost-users] Exception handling inside a dll
From: Emil Dotchevski (emil_at_[hidden])
Date: 2008-10-03 21:37:24

On Fri, Oct 3, 2008 at 3:28 PM, Matthew LaCrosse <mlacrosse3_at_[hidden]> wrote:
> Hello,
> I'm writing a JNI dll that can be called from a Java GUI. The java program
> passes a regex and a string to search. The dll function does a
> boost::regex_search and returns an IntArray with the results. The problem
> that I'm having is that bad expressions result in a crash. For instance, if
> the user inputs \b as the regex and 'bad' as the string, the program
> crashes.

If the crash happens when the exception attempts to cross the DLL
boundary, the only thing I can suggest is to double-check that both
the DLL and the executable are compiled with the same compiler options
(at least the ABI must match.)

Emil Dotchevski
Reverge Studios, Inc.

Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at