Posts Tagged windows

QtThreads are not scary! – part 1 – How not to write It

From my experience QThread class can be somewhat confusing to use. Mostly due to how they work, not because they are hard, so here is a short explanation what and how to use threads in qT.
In the first place why to use threads? Threads are useful for heavy duty or computation expensive tasks that cause GUI to freeze. In example video compression takes a long time and is very CPU intensive. If that task is run on the same thread as you main GUI, in main application thread, program don’t receive events and operating system mark it as non responsive. Of course, if application is well written, after video compression GUI “unfreeze” and program works fine after that. This behaviour is not expected, because user don’t rally know if program works correctly or not. Read the rest of this entry »

, , , , ,

No Comments

Static qT compilation and mingwm10.dll (MinGW) confusion.

After some reading, on the web, about MinGW compiler It comes to my attention that using static qT build without mingwm10.dll could cause memory leeks. That’s due to specific job that mingwm10 perform, with is catch dying threads and clean up data after them and handle exception in code. This is probably the reason, why by default, MinGW links that library in the first place. Read the rest of this entry »

, , , , ,

No Comments

How to prevent Windows registry corruption

I want to point out that this text is not “how to fix” error itself, but the idea of how to prevent or protect yourself from that kind of errors.bsod

Few days ago while Windows startup I stumble upon BSOD (Blue Screen of Death). Main problem was registry corruption that could occur because of HDD hardware malfunction (i.e. bad block) or many other reasons.  Read the rest of this entry »

,

No Comments

qt static , mingwm10.dll and deployment under windows environment

After spending countless hours creating functions, algorithms and design, You application finally is done. And what now? At this point important decision must be made. Do I deploy it using Qt dynamic or static library? Under Window environment it’s unusual to redistribute application with “many dll’s” (at least with many Qt libs). In that case linking it dynamically is pointless. Another choice is to build, and link it against, Qt statically. In some cases it can be really pain in an … Read the rest of this entry »

, , , , , ,

No Comments