[Samba] Different behaviour of samba share in XP and Windows 2003 Server

Gerald (Jerry) Carter jerry at samba.org
Thu Mar 24 15:52:20 GMT 2005


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Kiran VM wrote:

|>|       CString strSearchPath =
_T("\\\\TestServer\\TestShare\\tempfile.txt");
|>|       CStdioFile fValueFile;
|>|       if( !fValueFile.Open(strSearchPath,CFile::modeReadWrite  ) )
...
|>|               //CloseHandle( (HANDLE)fValueFile.m_hFile );
|>|               fValueFile.Close();
|
| Hello Jerry,
|
| I just now compiled and installed 3.0.13. But the result is the same.
| Any idea why this is happening?

Nope.  Just to make sure I understand the issue.  With a Samba
file share you have to explicitly include the call to CloseHandle()
where as on a 2k3 file server, the Close() method handles it all
right?  How do you know you're leaking handles here ?  e.g. what
tool are you using ?

We'll probably need to look at raw network traces between the same test
program run against 2k3 and Samba file servers.



cheers, jerry
=====================================================================
Alleviating the pain of Windows(tm)      ------- http://www.samba.org
GnuPG Key                ----- http://www.plainjoe.org/gpg_public.asc
"I never saved anything for the swim back."     Ethan Hawk in Gattaca
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFCQuI0IR7qMdg1EfYRAgz7AJwNdN4IQdVE3cPHYLz+cXMqxDtnEgCfeisM
UPpJwi+pVmxW/VMfLj0zapk=
=edpH
-----END PGP SIGNATURE-----


More information about the samba mailing list