Boost logo

Boost Users :

Subject: [Boost-users] C# application crashes due exception in exception_ptr.hpp
From: Markus Pieper (onkelhotte_at_[hidden])
Date: 2015-06-12 03:09:14


Hi there,

I´m new to boost so this might be a silly question.

We have a simulation that is written in C++ and compiled as a static lib.
It uses a few boost (v1.56) functions like thread.

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.

Everything works fine but closing my program results in a crash. This crash
is described here: http://stackoverflow.com/questions/8144630/mixed-mode-c-
cli-dll-throws-exception-on-exit
And someone replied, that the reason for this lies in the exception_ptr.hpp
beacause a "static exception_ptr ep" is being used instead
of "exception_ptr ep".
When I delete the static attribute, my program ends normally without ”€)É…Í ¸()5äÕ¹‘•ÉÍÑ…¹‘¥¹œ½˜ ¬¬¥Ì¹½ÐÑ¡…Ё‰¥œ°Í¼$…»
ÑЁͅäÝ¡ä¥ÐÉ…Í¡•Ì€)¡•É”¸ ÕЁѡ”‰½½ÍЁÁɽÉ…µµ•É́¡…Ù”„É•…ͽ¸Ñ¼‘¼Í¼¸()$…±Í¼™½±±½Ý•Q¡•Í”…‘Ù¥•Ì€(¡¡ÑÑÀ輽ѡɕ…¹µ…¹”¹½Éœ½µ…¹”¹½µÀ¹±¥ˆ¹‰½½ÍйÕ͕ȼÐÐÔÄÔ¤‰ÕЁݥѠ¹¼€)™ÕÉÑ¡•È±Õ¬¸() •ÍЁɕ…É‘Ì°)5…É­ÕÌ(


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