On Tue, 11 Aug 2009, Szak�ts Viktor wrote:

Hi,

> I've recently fixed hb_fsCreate*() to honor FO_EXCL flag
> on win platforms (it was ignored before). AFAICS this error
> could be caused by interaction of temp file creation routines
> in fstemp.c and above change.
> I'm investigating, but I'd appreciate your help. For me its
> end endless struggle to create proper temp files on Windows,
> and been there already (a few times) where we're now.

In such case you have to update the code use to crate temporary files
in MS-Windows because GetTempFileNameA() creates new file.
You have to change:

      if( hb_fsTempName( pszName, pszDir, pszPrefix ) )
      {
          HB_FHANDLE fhnd = hb_fsCreateEx( pszName, ulAttr, FO_EXCLUSIVE | 
FO_EXCL );

to:

      if( hb_fsTempName( pszName, pszDir, pszPrefix ) )
      {
#if defined( HB_IO_WIN )
          HB_FHANDLE fhnd = hb_fsCreateEx( pszName, ulAttr, FO_EXCLUSIVE );
#else
          HB_FHANDLE fhnd = hb_fsCreateEx( pszName, ulAttr, FO_EXCLUSIVE | 
FO_EXCL );
#endif

best regards,
Przemek
_______________________________________________
Harbour mailing list
[email protected]
http://lists.harbour-project.org/mailman/listinfo/harbour

Reply via email to