mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-02 17:46:22 +03:00
DCAF require VISUALIZATION for correct work. In some scenario DRAWEXE can generate a dublicates of the internal static singletons. This means each dynamic library will have their own instance of the static singleton. Update all direct library loading to use the DCAF plugin mechanism. This will ensure that the DCAF plugin is loaded only once and that the correct instance is used. Originally issue is reproduced only Linux with dlopen with "RTLD_LAZY". Can be resolved additionally adding "RTLD_LAZY | RTLD_GLOBAL" for dlopen
17 lines
319 B
Plaintext
17 lines
319 B
Plaintext
puts "===================================="
|
|
puts "0031675: Er-ror opening the STEP-file"
|
|
puts "===================================="
|
|
puts ""
|
|
|
|
pload OCAF
|
|
|
|
# Read file
|
|
ReadStep D [locate_data_file bug31675.stp]
|
|
XGetOneShape res D
|
|
|
|
# Checking
|
|
checknbshapes res -face 1036 -wire 2103 -compound 6
|
|
checkshape res f
|
|
|
|
Close D
|