[PD-dev] open_via_path / close file - WIndows CRT problems

Thomas Grill gr at grrrr.org
Wed Jul 4 00:25:46 CEST 2012


I see, thanks! That's perfect - sorry for not being up to date.
gr~~~

Am 03.07.2012 um 15:49 schrieb IOhannes m zmoelnig:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> On 2012-07-03 15:40, IOhannes m zmoelnig wrote:
>> 
>> Pd-0.43 introduced sys_close() in order to have the same CRT 
>> implementation open and close the file.
>> 
>> prior version of Pd lack this function and therefore there a number
>> of file-handle leakage bugs were reported.
>> 
> 
> sp the workaround is actually to use open_via_path() to get the full
> patch of the file you want to open, sys_close() the filehandle and
> then use the full-path to open the file yourself.
> 
> fgmasdr
> IOhannes
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.12 (GNU/Linux)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
> 
> iEYEARECAAYFAk/y+EkACgkQkX2Xpv6ydvTkCwCfRvO9WVlNjg2/AZ0unQgs6qYs
> xLkAnAwTrGl7B/uqClNFrJP0o1VDzEpc
> =oSId
> -----END PGP SIGNATURE-----
> 
> _______________________________________________
> Pd-dev mailing list
> Pd-dev at iem.at
> http://lists.puredata.info/listinfo/pd-dev

--
Thomas Grill
http://grrrr.org
+43 699 19715543




More information about the Pd-dev mailing list