|
How can I know when to use a 3 state model or a 5 state model or a 7 state model for processes as they are created, runned and terminated.
This is for a project.
PitoPR
|
|
|
|
|
This is odd. Windows Explorer shows that my C: drive has 5490MB in use, but if I total the used space for all of the folders on the drive it comes to only 3716MB - size on disk, not file size. Which value is 'real'? And why is there such a huge discrepancy?
"Please don't put cigarette butts in the urinal. It makes them soggy and hard to light" - Sign in a Bullhead City, AZ Restroom
|
|
|
|
|
It may be because of cluster size. On a large drive, the cluster size is about 32KB. So space is used up in blocks of 32KB. This means that the minimum amount of space a file can take up is 32KB, and if it was, say, 35KB, it would have to take up 64KB of actual disk space.
"Do unto others as you would have them do unto you." - Jesus
"An eye for an eye only makes the whole world blind." - Mahatma Gandhi
|
|
|
|
|
That's why I used the 'size on disk' figure instead of the file size itself. The former takes into account the cluster waste. I've never needed to defrag a Win2K disk before; perhaps it's time...
"Please don't put cigarette butts in the urinal. It makes them soggy and hard to light" - Sign in a Bullhead City, AZ Restroom
|
|
|
|
|
If it is FAT 32 and is still in the same space problems... then defrag may help it.
If you use that as a standalone PC with less of file permission options... you can try to convert it to a NTFS file system. This gets better.
The above is something I observed with my PC..
I was born intelligent Education ruined me!.
|
|
|
|
|
Nah... this one was born with NTFS. I never use anything else if NTFS is available. I know that NT4 had a hell of a time with fragmentation, and it didn't ship with a defrag routine. I thought that Win2K solved the problem, but I guess there's a good reason that they included a defrag utility with NTFS5.
"Please don't put cigarette butts in the urinal. It makes them soggy and hard to light" - Sign in a Bullhead City, AZ Restroom
|
|
|
|
|
Everything is not stored in files. NTFS keeps
alot of data directly in MFT(Master File Table)
and that is no file. My disk has some 100MB in MFT
skål
jhaga
|
|
|
|
|
That would account for some, but >1500MB? It just doesn't sound right somehow... The idea of defragging the drive makes me nervous, though. There are so many processes running from the C: drive that I'm not sure how defrag will behave. I've had problems with it on lesser systems (Win9x) and haven't heard anything, pro or con, about the robustness of the Win2K Server version.
"Please don't put cigarette butts in the urinal. It makes them soggy and hard to light" - Sign in a Bullhead City, AZ Restroom
|
|
|
|
|
Before you can defrag you must run some kind of
chkdsk /f on the disk. It is possible that you have
1500MB in lost clusters but I don't find it very likely.
A defrag program that uses the underlying operation system
should be totaly safe to use. Of course if you have
a power failure then you will probably loose one file.
jhaga
|
|
|
|
|
Chkdsk finds no errors at all on the drive, so I guess I'll go ahead with the defrag...
"Please don't put cigarette butts in the urinal. It makes them soggy and hard to light" - Sign in a Bullhead City, AZ Restroom
|
|
|
|
|
Here you can find a nice tool for exploring your disks fragmentation
http://www.sysinternals.com/ntw2k/info/defrag.shtml
with source code.
|
|
|
|
|
How can I get the process path by using API "NtQuerySystemInformation".
|
|
|
|
|
Why?
I just installed Sygate Pro 5.0 and it immediately announced that ntoskrnl.exe is trying to connect to the Internet. It's only one of several processes making the attempt, but I can't imagine why the kernel needs access every minute or two to somewhere on the 'net. Does anyone know what it's doing?
"Please don't put cigarette butts in the urinal. It makes them soggy and hard to light" - Sign in a Bullhead City, AZ Restroom
|
|
|
|
|
It may just be a normal network broadcast, the pc is 'announcing itself' to the network, maybe...
Does Sygate report the local port and the remote ip and port ?
Clones are people two.
|
|
|
|
|
It seems to be just the normal NetBIOS announcements. I expected that to be in a separate service, but ntoskrnl is the source reported. It would be so nice to have a reference to the functions that all these various processes in Windows perform, and why they're needed...
"Please don't put cigarette butts in the urinal. It makes them soggy and hard to light" - Sign in a Bullhead City, AZ Restroom
|
|
|
|
|
I regularly use perfmon.exe as one of my debugging tools. Out of nowhere, 2 major counter object categories, Memory and Processor, disappeared from the selection drop-down box. The registry troubleshooting info at MSDN is kind of off, as it relates to Win 2K, not XP. Anybody know how to re-init perfmon or make it sane again?
|
|
|
|
|
Does anyone have information about the user rights required to install browser plugins?
I have some "restricted users" on my Win2K machine that can't install the Flash plugin. It was already installed by an admin user, but the restricted user still got the error message saying that it had not been installed.
Is this expected? Where are plugins saved on disk?
Thanks,
Richard
|
|
|
|
|
Hello,
Application
-----------
I've created a multi-tier application. Its architecture is:
On client machine --> the client application is an ActiveX EXE component (VBasic).
On server machine --> some COM+ server applications and a SQLServer database.
Use Case
--------
CLIENT1
--> asks SQLServer database for an object (= a row in objects table).
The state of this object is stored in a storage file.
--> if the object can be check out, it means nobody else have checked out the object,
the server will set the objects.checkedoutby = ClientID and will copy the stg file
in a shared folder on server machine.
CLIENT2
--> tries to check out the same object
--> the server must know (??? - MY QUESTION IS ABOUT THIS POINT) if the CLIENT1 application
is still running or a crash has occured and CLIENT1 was not able to check in the object.
Remarks
-------
1) CLIENT2 will receive a copy of the storage file if CLIENT1 is still running
2) CLIENT2 will have the possibility to restore the storage file from
an older version if a crash occured in the CLIENT1 application.
3) Many clients can log in using the same account (user name and password)
4) There can be more than one instances of the application on the same client machine
My solution
-----------
My solution is to create an instance of an "watchdog" ActiveX EXE on the client machine
when the client application is started. This "watchdog", from time to time (5 minutes by example),
will modify the value of a date field named NotificationDate in database.
When the client application shuts down, the "watchdog" will stop updating that field.
The stored procedure responsible for check out will use the value of NotificationDate field
to decide whether the CLIENT1 application that use this object is still running or a crash has occured.
Questions
---------
1) Is there a pattern for this problem?
2) What about my solution?
10x,
Ovidiu
|
|
|
|
|
I would like to make a hint windows in the explorer like this http://www.mediaarea.net/example.png
So :
- How to make Explorer.exe request for my code
- How code the display of the hint window?
Thanks!
|
|
|
|
|
What about posting in the right forum ?
|
|
|
|
|
My question is about Explorer, so Operating system forum seems to be the right place for me : Explorer is a composant of Windows, this is a mean for interacte with OS
I would be a lot more instructive if you have indicate which is the good forum, thanks.
|
|
|
|
|
|
Are you wanting to know how to make Explorer show a preview of a .png file when it is selected in Explorer?
S. Rod. , don't laugh at him!
"Do unto others as you would have them do unto you." - Jesus
"An eye for an eye only makes the whole world blind." - Mahatma Gandhi
|
|
|
|
|
I would like to put my own code.
ie : your mouse is over a file, and the code I want is executed.
I saw with dbpoweramp there is a lot of links in Registry, if someone know how theses registry keys are formed...
|
|
|
|
|