TilakGopi
Hi,
I may not give the info as much as u require.But i want to let u know few observations on these threads of CFileDialog,AFAIK.
Observations:
1)Ya, when the dialog is opened 3 more threads are being added to existing application's thread count.After closing also, count remains same for a maxmimum of 1 minute only, yes, observe, once the file dialog is closed, the thread count will be decreased by 2(in the duration of max 1 minute),if u don't launch the dialog again.And then the thread count reamins constant(i observed it for 5 minutes as so , but it still reamained same).
2)Ya, when the dialog is opened 3 more threads are being added to existing application's thread count.But if u might have observed , that(max) thread count is constant from that time onwards (till other window or dlg or control creates any other thread) , eventhough if u open the filedialog many times.
R u getting me What i mean to say is,
U have launched the file dialog, now thread count has become 4,close it ,launch it, do this closing and launching many number of times ,the max thread count is 4 only.So there are no threads created everytime the filedialog opened,they are created for the first time only.
So , what i can conclude from these observations is , there will be no no memory allocation problem since the threads are created ,maintained and destoyed by the application itself.
2) Any ideas why these threads exist They are causing a memory allocation problem later on.
These threads may be created for the internal use of the filedialog.We don't need to bother about them and i'm sure they won't create any memory allocation problem.
Thanx,
Ch.T.Gopi Kumar.