Boost logo

Boost Users :

Subject: Re: [Boost-users] C# application crashes due exception in exception_ptr.hpp
From: Emil Dotchevski (emildotchevski_at_[hidden])
Date: 2015-06-12 15:55:09


On Fri, Jun 12, 2015 at 12:09 AM, Markus Pieper <onkelhotte_at_[hidden]> wrote:

> My job is to create a WPF GUI, that uses this lib. For that, I created a
> C++ CLR DLL which interacts as a wrapper between .NET GUI and the unmanaged
> libs.
>

Thank you for reporting this -- the person replying on stack overflow is
right to think it looks suspicious, I put that static exception_ptr object
in there and it looks suspicious to me too. :)

At first glance it seems that the "static" in get_static_exception is there
by mistake, probably it was important in an earlier version of the code but
now the only place it's called is in the initialization of static objects
so it does seem redundant. Please open a ticket for this, I'll investigate
closer.

That said, it is very suspicious that removing that "static" fixes your
problem. Perhaps it's a good idea for you to investigate that too, it may
be a symptom of something else going wrong in your program.

-- 
Emil Dotchevski
Reverge Studios, Inc.
http://www.revergestudios.com/reblog/index.php?n=ReCode


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net