DiscussionsIssue archiveOCCT:Data Exchange

Archived issue #0016210

Static object destroing in the dlclose() conflict

Open CASCADEOCCT:Data Exchangeassigned0 public notes

Search issues

Description

If we have the c++ code there defined static object (listad)
(XSControl_Controller.cxx :
static Handle(Dico_DictionaryOfTransient)& listadapt()
{
  static Handle(Dico_DictionaryOfTransient) listad;
  if (listad.IsNull()) listad = new Dico_DictionaryOfTransient;
  return listad;
}
)
We load the library by dlopen("library.so"),
which has this object(listad).
After we make dlclose().
In the next iteration of dlopen("library.so") we have the exception.

If you have any questions, please contact me.
Example of library see in the attachment.(you need in the license of SAT product)

Public activity

No public notes

Participants are labeled by their role within this record.

Related records