Skip to content

Eliminate complex typed static variables - #37

Open
espakm wants to merge 1 commit into
commontk:patched-5from
NifTK:static-fix-2
Open

Eliminate complex typed static variables#37
espakm wants to merge 1 commit into
commontk:patched-5from
NifTK:static-fix-2

Conversation

@espakm

Copy link
Copy Markdown

Complex typed static variables (e.g. maps) in dll-s are to avoid.
On Windows they are initialised late when the dll
is being loaded dynamically. The current use of static QHash data members
results in crash on Windows when a PythonQt.dll static function is called from a static initialization code from a dependent library, and PythonQt.dll has not been loaded before, already.

See details here:
http://stackoverflow.com/questions/5114683/loading-dll-not-initializing-static-c-classes

Loading
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@espakm@jcfr