fixed memory leak
fixed wrong error messages in dcmnet with win32.
added some comment