Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Leander Schulten
Lichtsteuerung
Commits
61adce06
Commit
61adce06
authored
Feb 23, 2019
by
Leander Schulten
Browse files
Check for known errorCodes when loading lib on windows
parent
52dcc8d6
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/programms/modulemanager.cpp
View file @
61adce06
...
...
@@ -223,7 +223,12 @@ typedef Modules::Program* (*CreateProgramm)(unsigned int index);
loadedLibraryMap
.
emplace_back
(
lib
.
fileName
(),
LibInfo
{
lastLibraryIdentifier
,
supportAudioFunc
});
qDebug
()
<<
lib
.
errorString
();
}
else
{
qDebug
()
<<
"Cant load lib :"
<<
name
<<
" because : "
<<
lib
.
errorString
()
;
#ifdef Q_OS_WIN
if
(
lib
.
errorString
().
endsWith
(
"Unknown error 0x000000c1."
)){
qDebug
()
<<
"Lib"
<<
name
.
mid
(
name
.
lastIndexOf
(
"/"
)
+
1
)
<<
" has the wrong bitness! 64 vs 32 or 32 vs 64 Bit!"
;
}
else
#endif
qDebug
()
<<
"Cant load lib :"
<<
name
<<
" because : "
<<
lib
.
errorString
();
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment