[serialization] throwing exceptions in load_construct_data
Hi Robert, A long time ago (in the fall of 2005 I think) I reported a bug to you: If you throw an exception in a load_construct_data function (before you have completed the construction of the object) then the serialization library crashes. It calls a destructor on the object that never was constructed. It seems this bug has not been fixed in 1.34 beta. Do you plan to fix this bug? --Johan
I don't remember if I fixed it. If I did fix it, I'm sure that is in the HEAD so it wouldn't be in 1.34. Robert Ramey Johan Råde wrote:
Hi Robert,
A long time ago (in the fall of 2005 I think) I reported a bug to you:
If you throw an exception in a load_construct_data function (before you have completed the construction of the object) then the serialization library crashes. It calls a destructor on the object that never was constructed.
It seems this bug has not been fixed in 1.34 beta. Do you plan to fix this bug?
--Johan
Hi Robert, I'll download the HEAD, run some tests, and report back to you. An exception thrown in one load or load_construct_data function often propagates to other load_construct_data functions. Therefore we have to add work-around code to all the load_construct_data functions in our app. It would be nice to have this issue fixed. -- Johan Råde Robert Ramey wrote:
I don't remember if I fixed it. If I did fix it, I'm sure that is in the HEAD so it wouldn't be in 1.34.
Robert Ramey
Johan Råde wrote:
Hi Robert,
A long time ago (in the fall of 2005 I think) I reported a bug to you:
If you throw an exception in a load_construct_data function (before you have completed the construction of the object) then the serialization library crashes. It calls a destructor on the object that never was constructed.
It seems this bug has not been fixed in 1.34 beta. Do you plan to fix this bug?
--Johan
------------------------------------------------------------------------
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
participants (2)
-
Johan Råde
-
Robert Ramey