QSettings issue mingw32 vs. msvc
-
Hi,
Could someone please give me a hint on why I get access error when writing to a key in the registry, but only when my application is build with msvc (2013, havent tried others)
If the application is build with mingw32 everything works as expected.
The framework is the prebuild versions. 5.5.1 and 5.7.0 -
hi
Thats pretty odd!
both exe is named the same etc?Could VS make a manifest file that changes something and mingw will not?
-
Hi,
Actually have only tried compiling in debug mode and runned in debugmode from QtCreator.But I guess it will give same result in release mode.
I discovered the issue when building a DLL which should be able to access the same key. (That DLL is build with msvc)
I then tryed building the other application with msvc, and found same issue. -
Hi,
Actually have only tried compiling in debug mode and runned in debugmode from QtCreator.But I guess it will give same result in release mode.
I discovered the issue when building a DLL which should be able to access the same key. (That DLL is build with msvc)
I then tryed building the other application with msvc, and found same issue. -
Made a simple sample, you can get i here www.daniac.dk/QSettingsTest.zip
Exact same issue here, might be a bug
-
Made a simple sample, you can get i here www.daniac.dk/QSettingsTest.zip
Exact same issue here, might be a bug
-
Sorry but when you say no messages.
The only messages is from qDebug()
Have changed the sample to show the results in a plaintext box - Sorry
-
I have modified and updated the sample with a plaintextedit showwing the results - Sorry
mingw32 - Output:
Getting MyNewPort value:COM2
Setting MyNewPort=COM2 status:0 <- Success
Getting MyNewPort value:COM2msvc - Output:
Getting MyNewPort value:default <- Failed reading also
Setting MyNewPort=COM2 status:1 <- Failed writing
Getting MyNewPort value:default <- Failed reading also -
I have modified and updated the sample with a plaintextedit showwing the results - Sorry
mingw32 - Output:
Getting MyNewPort value:COM2
Setting MyNewPort=COM2 status:0 <- Success
Getting MyNewPort value:COM2msvc - Output:
Getting MyNewPort value:default <- Failed reading also
Setting MyNewPort=COM2 status:1 <- Failed writing
Getting MyNewPort value:default <- Failed reading also -
-
I have filed a bug
https://bugreports.qt.io/browse/QTBUG-55257