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

Gerald (Jerry) Carter jerry at samba.org
Thu Mar 24 14:38:09 GMT 2005


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

Kiran VM wrote:
| Hello,
|
| I have an MFC program that access a file in the samba (3.0.10) share
| with the following code.
|
| 	CString strSearchPath = _T("\\\\TestServer\\TestShare\\tempfile.txt");
| 		CStdioFile fValueFile;
| 		if( !fValueFile.Open(strSearchPath,CFile::modeReadWrite  ) )
| 		{
| 			cout<<GetLastError()<<endl;
| 		}
| 		else
| 		{
| 			cout<<"Opened"<<endl;
| 		}
|
| 		//CloseHandle( (HANDLE)fValueFile.m_hFile );
| 		fValueFile.Close();
|
| If i run this code on a Windows 2003 server, it leaves one HANDLE
| open. but if i try this operation from a windows XP ( with SP2)
| machine, every thing is fine.
|
| Also this leak seems to happen only for a samba share. If the
| "strSearchPath" is replaced with a Windows share, there is no leak.

Could you retest against 3.0.13 and let me know if this is still
an issue ?








cheers, jerry
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFCQtDRIR7qMdg1EfYRAj0TAJ9DRpQaOWzGKYVnXTA/JJP6eK4EKgCffL9a
f1CSSKUa/MOtT2f3LQ0KFws=
=9PBL
-----END PGP SIGNATURE-----


More information about the samba mailing list