[FYI] Eliminating the delay when deleting in-use files/dirs

English support forum

Moderators: Hacker, petermad, Stefan2, white

User avatar
majkinetor !
Power Member
Power Member
Posts: 1580
Joined: 2006-01-18, 07:56 UTC
Contact:

Post by *majkinetor ! »

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.
Habemus majkam!
User avatar
Alextp
Power Member
Power Member
Posts: 2321
Joined: 2004-08-16, 22:35 UTC
Location: Russian Federation
Contact:

Post by *Alextp »

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.
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...
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.
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.

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?
User avatar
XPEHOPE3KA
Power Member
Power Member
Posts: 854
Joined: 2006-03-03, 18:23 UTC
Location: Saint-Petersburg, Russia

Post by *XPEHOPE3KA »

FYI:
Ghisler usually appears here at Mondays and Thursdays. So you have to wait for tomorrow.
F6, Enter, Tab, F6, Enter, Tab, F6, Enter, Tab... - I like to move IT, move IT!..
User avatar
majkinetor !
Power Member
Power Member
Posts: 1580
Joined: 2006-01-18, 07:56 UTC
Contact:

[OT]

Post by *majkinetor ! »

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 :)
Habemus majkam!
User avatar
XPEHOPE3KA
Power Member
Power Member
Posts: 854
Joined: 2006-03-03, 18:23 UTC
Location: Saint-Petersburg, Russia

Post by *XPEHOPE3KA »

That wasn't me who noticed it. Ghisler told that himself somewhere here at the forum.
F6, Enter, Tab, F6, Enter, Tab, F6, Enter, Tab... - I like to move IT, move IT!..
User avatar
SQUIRE
Senior Member
Senior Member
Posts: 373
Joined: 2005-06-16, 18:07 UTC

Post by *SQUIRE »

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! :lol:
icfu
Power Member
Power Member
Posts: 6052
Joined: 2003-09-10, 18:33 UTC

Post by *icfu »

Tell me why?
I don't like Mondays.
Tell me why?
I don't like Mondays.
Tell me why?
I don't like Mondays.
I want to shoot
The whole day down.

Icfu
This account is for sale
User avatar
SQUIRE
Senior Member
Senior Member
Posts: 373
Joined: 2005-06-16, 18:07 UTC

Post by *SQUIRE »

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! :D
User avatar
Lefteous
Power Member
Power Member
Posts: 9537
Joined: 2003-02-09, 01:18 UTC
Location: Germany
Contact:

Post by *Lefteous »

2SQUIRE
If the beach volleyball team also comes
The men's or the women's team :mrgreen:
User avatar
majkinetor !
Power Member
Power Member
Posts: 1580
Joined: 2006-01-18, 07:56 UTC
Contact:

Post by *majkinetor ! »

The gay team.
Habemus majkam!
User avatar
SQUIRE
Senior Member
Senior Member
Posts: 373
Joined: 2005-06-16, 18:07 UTC

Post by *SQUIRE »

The gay team.
ROFLMAO !!!

Ahem, they could be TC users, you know......
User avatar
majkinetor !
Power Member
Power Member
Posts: 1580
Joined: 2006-01-18, 07:56 UTC
Contact:

Post by *majkinetor ! »

I don't even want to think in that direction...

2 X*
  • That wasn't me who noticed it. Ghisler told that himself
    somewhere here at the forum.
So, you noticed that Ghisler said that... like I said, you must have greater degree of women hormons. I don't think you are a woman or gay or eleph... like Squire, but, just that. Add to that picture that you doesn't get jokes right (like most of the women) and you will get the clear model. :)
Last edited by majkinetor ! on 2006-05-22, 12:43 UTC, edited 1 time in total.
Habemus majkam!
User avatar
majkinetor !
Power Member
Power Member
Posts: 1580
Joined: 2006-01-18, 07:56 UTC
Contact:

Post by *majkinetor ! »

I was just kidding by the way... what was the color, Squire ?
Habemus majkam!
User avatar
SQUIRE
Senior Member
Senior Member
Posts: 373
Joined: 2005-06-16, 18:07 UTC

Post by *SQUIRE »

I was just kidding by the way... what was the color, Squire ?
Erm, I think it was:

Droll insinuation will be sage green

:wink:
User avatar
majkinetor !
Power Member
Power Member
Posts: 1580
Joined: 2006-01-18, 07:56 UTC
Contact:

Post by *majkinetor ! »

Yup, thats the one

Thank you.


2 X*
Don't mind my Serbian humor... you can't be mad at pope, can't you?
Habemus majkam!
Post Reply