[FYI] Eliminating the delay when deleting in-use files/dirs
Moderators: Hacker, petermad, Stefan2, white
- majkinetor !
- Power Member
- Posts: 1580
- Joined: 2006-01-18, 07:56 UTC
- Contact:
This is ridiculous. We have to guess how many times func is called, download bunch of tools, loose precious time, just because he is too egocentric to show his face here and say 2 stupd words.
So, lets forget about Ghisler then, from now on, he doesn't exist for me.
2 Alex
I don't support Win9x in my programming. That is system that should die forever. Also, retreiving all handles in the system is different in Win9x. I use NT functions and NT types only, most important of all, I don't ever use TCHAR as type, but WCHAR.
Your proposed method GetLocker is not going to work. Snapshot needs to be created, because this is slow operation. So you will acctually always retreive info from snapshot, never directly. On the other hand acctual unlocking is different story, and lock status is as simple as calling CreateFIle API, like you already know. So, this slow part will be visible only when applications which locked the files should be displayed, which can be managed to work in background while user is watching and reading from the dialog or something similar.
So, lets forget about Ghisler then, from now on, he doesn't exist for me.
2 Alex
I don't support Win9x in my programming. That is system that should die forever. Also, retreiving all handles in the system is different in Win9x. I use NT functions and NT types only, most important of all, I don't ever use TCHAR as type, but WCHAR.
Your proposed method GetLocker is not going to work. Snapshot needs to be created, because this is slow operation. So you will acctually always retreive info from snapshot, never directly. On the other hand acctual unlocking is different story, and lock status is as simple as calling CreateFIle API, like you already know. So, this slow part will be visible only when applications which locked the files should be displayed, which can be managed to work in background while user is watching and reading from the dialog or something similar.
Habemus majkam!
You are right. But I think he is currently busy and maybe didn't look at new threads at forum yet. Don't erase him, let's wait...majkinetor ! wrote:This is ridiculous. We have to guess how many times func is called, download bunch of tools, loose precious time, just because he is too egocentric to show his face here and say 2 stupd words.
Yes, I know that. That's why I wrote "data must be cached!". I mean: when I call GetLocker, it creates/updates snapshot (every minute) and returns info from that snapshot. So not every GetLocker call will be fast, some calls will be slow (when snapshot is get), but it must be transparent to me - caller. _You_ will do snapshots in your dll, not me.Your proposed method GetLocker is not going to work. Snapshot needs to be created, because this is slow operation. So you will acctually always retreive info from snapshot, never directly.
When I'll need "is locked" status, I'll call CreateFile; when I'll need "is it locked, and who did lock it?", I'll call your GetLocker. Am I right?
- XPEHOPE3KA
- Power Member
- Posts: 854
- Joined: 2006-03-03, 18:23 UTC
- Location: Saint-Petersburg, Russia
- majkinetor !
- Power Member
- Posts: 1580
- Joined: 2006-01-18, 07:56 UTC
- Contact:
[OT]
2Alex
ok
X*
I am here more then 6 months and I still don't know when is his time for visit.
X*, you notice things on level typical for women
ok
X*

I am here more then 6 months and I still don't know when is his time for visit.
X*, you notice things on level typical for women

Habemus majkam!
- XPEHOPE3KA
- Power Member
- Posts: 854
- Joined: 2006-03-03, 18:23 UTC
- Location: Saint-Petersburg, Russia
Good morning <majkinetor><space><exclamation mark>,
I see you are up very early to milk the birds today. Save a glass for me!
May I remind you that TC is a female-free zone? They have all been frightened away by gay talk and bad language. Therefore our friend X* cannot possibly be a woman - testosterone rules this forum. Progesterone ist nicht allowed!
I see you are up very early to milk the birds today. Save a glass for me!
May I remind you that TC is a female-free zone? They have all been frightened away by gay talk and bad language. Therefore our friend X* cannot possibly be a woman - testosterone rules this forum. Progesterone ist nicht allowed!

LOL - catchy song by that Irishman who somehow always manages to look like an un-made bed.
Never mind icfu. Soon your streets will be filled with the sound of pounding samba music and 1000's of sexy, hip-shaking Brazilian chicks over to support the team.
If the beach volleyball team also comes, I'm definitely moving to Germany for a holiday!
Never mind icfu. Soon your streets will be filled with the sound of pounding samba music and 1000's of sexy, hip-shaking Brazilian chicks over to support the team.
If the beach volleyball team also comes, I'm definitely moving to Germany for a holiday!

- majkinetor !
- Power Member
- Posts: 1580
- Joined: 2006-01-18, 07:56 UTC
- Contact:
- majkinetor !
- Power Member
- Posts: 1580
- Joined: 2006-01-18, 07:56 UTC
- Contact:
I don't even want to think in that direction...
2 X*
2 X*
- That wasn't me who noticed it. Ghisler told that himself
somewhere here at the forum.

Last edited by majkinetor ! on 2006-05-22, 12:43 UTC, edited 1 time in total.
Habemus majkam!
- majkinetor !
- Power Member
- Posts: 1580
- Joined: 2006-01-18, 07:56 UTC
- Contact:
- majkinetor !
- Power Member
- Posts: 1580
- Joined: 2006-01-18, 07:56 UTC
- Contact: