Originariamente inviato da Giovanni Pr88
Ragazzi, in questo pezzo del mio codice ho deallocato l'array chBuf nel seguente modo utilizzando free(chBuf)
Visto che programmi in C++ non è più comodo usare una std::string?

codice:
std::string tmp1="cd VocaleConsole2.0\ncd Exe\ncd Profiles\ncd ";
std::string tmp2 = "\ncd test\nHCopy -A -D -T 1 -C wav_config -S codetrain.scp\njulian -input rawfile -filelist wavlst -smpFreq 48000  -C ../../../SrcScripts/create_model_scripts/julian.jconf  > juliusOutput\n./ProcessJuliusOutput.pl juliusOutput juliusProcessed\nHResults -I testref.mlf tiedlist juliusProcessed \n";

tmp1+= std::string(nome_cognome) + tmp2;
bSuccess = WriteFile(Child_IN_Wr, tmp1.c_str(),tmp1.size(), &dwWritten, NULL);