You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When compiling the static library libpcm.a, the factory methods for the various objects (cavities, solvers, Green's functions and boundary integral operators) are not initialized properly.
No subclasses are subscribed to their respective factory which leads to a crash at runtime during library initialization from the host program.
The solution is to defer subscription to library initialization, i.e. when the Meddle object is created, instead of having it in an anonymous namespace in the subclasses .cpp file.
IMPORTANT
The DSO libpcm.so is not affected by the bug.
The text was updated successfully, but these errors were encountered:
This commit fixes issues #34, #35 and #36 (on GitHub)
and #60, #61 and #62 (on GitLab)
The fix consisted in subscribing **all** subclasses to the factory in
a top-level convenience header that gets included into the `Meddle.cpp`
file.
Namespaces have finally been introduced into the project and some core
abstract base classes have been renamed to signal their ABC status.
Please see the [change log](CHANGELOG.md) for detailed information.
When compiling the static library
libpcm.a
, the factory methods for the various objects (cavities, solvers, Green's functions and boundary integral operators) are not initialized properly.No subclasses are subscribed to their respective factory which leads to a crash at runtime during library initialization from the host program.
The solution is to defer subscription to library initialization, i.e. when the
Meddle
object is created, instead of having it in an anonymous namespace in the subclasses.cpp
file.IMPORTANT
The DSO
libpcm.so
is not affected by the bug.The text was updated successfully, but these errors were encountered: