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

Kiran VM kiran.vm at gmail.com
Thu Mar 24 15:42:28 GMT 2005


On Thu, 24 Mar 2005 08:38:09 -0600, Gerald (Jerry) Carter
<jerry at samba.org> wrote:
> -----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


Hello Jerry,

I just now compiled and installed 3.0.13. But the result is the same.
Any idea why this is happening?

Thanks in advance for your help,
Kiran


More information about the samba mailing list