Techy Things

CloseHandle HANGS on HANDLE created from CreatePipe 0

CloseHandle HANGS on HANDLE created from CreatePipe

Solution Add CloseHandle(hChildStd_OUT_Wr) after CreateProcess(…) Problematic Code THREAD1: HANDLE hChildStd_OUT_Rd; HANDLE hChildStd_OUT_Wr; CreatePipe(&hChildStd_OUT_Rd, &hChildStd_OUT_Wr, &saAttr, 0); PROCESS_INFORMATION piProcInfo; STARTUPINFO siStartInfo; BOOL bSuccess = FALSE; // Set up members of the PROCESS_INFORMATION structure. ZeroMemory( &piProcInfo,...

QObject: Cannot create children for a parent that is in a different thread. 0

QObject: Cannot create children for a parent that is in a different thread.

Verifying sig of “/var/folders/zq/8tgn5xxs6xjdmhky_c3x3s79yx39ym/T/HaivisionHelper_sample-outputter/checksum_7158d01e2df962079a3cda50ed56df92/sample-outputter” Going to launching… After launching… QObject: Cannot create children for a parent that is in a different thread. (Parent is QProcess(0x7f8ca9787830), parent’s thread is QThread(0x7f8ca9501040), current thread is QThread(0x7f8ca96b3070) QObject:...

Redirect output in QtProcess 0

Redirect output in QtProcess

Method 1 – process->setStandardOutputFile() with process->start() Pro: – Easy to program Cons: – Does not work with process->startDetached(). Only works with process->start() – Only write to the file once the process exit. The file...

Add to PATH on OSX 10.11 0

Add to PATH on OSX 10.11

[MTL-MAC-095:~/] flemieux% set path = ($path /Users/flemieux/Qt5.4.2/5.4/clang_64/bin) [MTL-MAC-095:~/] flemieux% echo $path /usr/local/bin /usr/bin /bin /usr/sbin /sbin /Users/flemieux/Qt5.4.2/5.4/clang_64/bin

CentOS 7 Chrome failure 0

CentOS 7 Chrome failure

[dev@localhost makito]$ sudo /opt/google/chrome/chrome [sudo] password for dev: [1:1:0321/090342:ERROR:nacl_fork_delegate_linux.cc(315)] Bad NaCl helper startup ack (0 bytes)

Setup a new CentOS 7 development system 0

Setup a new CentOS 7 development system

You will want nux repo to install some of the software mentionned here (e.g. VLC) $> su – $> yum update # optional but recommanded $> rpm –import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org $> rpm -Uvh https://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-5.noarch.rpm $> rpm...

Setup a new Windows 7 or 8 Workstation 0

Setup a new Windows 7 or 8 Workstation

This is a list of base software used after installing a fresh new Windows developer’s workstation. I use Windows 7 Ultimate 64-bit which I got upgraded for free by Microsoft after being victim of counterfeit...