[Interest] QFile fails on Windows when screen is locked with message "device not open"?

Emre Besirik nomercy at gmail.com
Thu Dec 7 18:26:13 CET 2017



> On 6 Dec 2017, at 19:11, Thiago Macieira <thiago.macieira at intel.com> wrote:
> 
> On Wednesday, 6 December 2017 04:58:32 PST Shantanu Tushar wrote:
>> Most likely the "device not open" message is being output when you
>> call `.exists()` on the file, followed by your qDebug.
> 
> Right, it's the exists() call that causes it.
> 
> I don't think that message comes from Qt. I can't find it , at least. Where 
> are you seeing it?
> 
> Qt calls GetFileAttributesEx and FindFirstFile in response to .exists(). 
> Somehow those functions, when in a callback to EnumDisplayMonitors, don't 
> behave properly.
> 
> -- 
> Thiago Macieira - thiago.macieira (AT) intel.com
>  Software Architect - Intel Open Source Technology Center
> 
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest


I’m seing it on console, it outputs this message on its own. I’ll try to investigate it further when I have time. Thank you all.

Best Regards,
Emre Besirik


More information about the Interest mailing list