forum.vdsworld.com Forum Index forum.vdsworld.com
Visit VDSWORLD.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


The Hibernater

 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> Miscellaneous
View previous topic :: View next topic  
Author Message
Skit3000
Admin Team


Joined: 11 May 2002
Posts: 2166
Location: The Netherlands

PostPosted: Tue Dec 28, 2004 3:04 pm    Post subject: The Hibernater Reply with quote

Hello all,

Because I have a rather old PC over here which takes a while to load, I bounded some examples of Garrett and CodeScript together to make "the Hibernater". It is a program which uses the standard hibernate function of Windows XP, and expands it a bit by first closing all unwanted programs (like Internet Explorer and Notepad) and which "defragmentates" the memory before it will put your computer into sleep. This way, you can get the feeling of a "new boot" when you restart your computer, while it only takes a few seconds to load... Smile

Does anybody want to test if it works at his system, so that I can make improvements to it before I distribute the program? To do so, just download and unzip the attachment and run the "Hibernater.exe" file. It will automaticly put an icon on your desktop, which you can remove when you've stopped testing.

Thanks in advance... Smile



The Hibernater.zip
 Description:

Download
 Filename:  The Hibernater.zip
 Filesize:  228.98 KB
 Downloaded:  1394 Time(s)


_________________
[ Add autocomplete functionality to your VDS IDE windows! ]
Voor Nederlandse beginners met VDS: bekijk ook eens deze tutorial!


Last edited by Skit3000 on Tue Dec 28, 2004 4:17 pm; edited 1 time in total
Back to top
View user's profile Send private message
FreezingFire
Admin Team


Joined: 23 Jun 2002
Posts: 3508

PostPosted: Tue Dec 28, 2004 3:25 pm    Post subject: Reply with quote

I only tried the "Clean current session" option because I don't have time
to test the actual hibernate functions now, but I received a runtime error.



runtime.jpg
 Description:
Runtime error
 Filesize:  16.13 KB
 Viewed:  1355 Time(s)

runtime.jpg



_________________
FreezingFire
VDSWORLD.com
Site Admin Team
Back to top
View user's profile Send private message Visit poster's website
Skit3000
Admin Team


Joined: 11 May 2002
Posts: 2166
Location: The Netherlands

PostPosted: Tue Dec 28, 2004 4:19 pm    Post subject: Reply with quote

FreezingFire, thanks for testing. The program was trying to use a list which had no value. With all other options, I already had made sure this couldn't happen, but I forgot to do so with the last one you tried. An updated version is now uploaded, could you try it again please?

Thanks... Smile

_________________
[ Add autocomplete functionality to your VDS IDE windows! ]
Voor Nederlandse beginners met VDS: bekijk ook eens deze tutorial!
Back to top
View user's profile Send private message
Garrett
Moderator Team


Joined: 04 Oct 2001
Posts: 2149
Location: A House

PostPosted: Tue Dec 28, 2004 9:30 pm    Post subject: Reply with quote

Worked just fine here on my system.

-Garrett

_________________
'What you do not want done to yourself, do not do to others.' - Confucius (550 b.c. to 479 b.c.)
Back to top
View user's profile Send private message
FreezingFire
Admin Team


Joined: 23 Jun 2002
Posts: 3508

PostPosted: Wed Dec 29, 2004 2:55 am    Post subject: Reply with quote

Worked. Smile Just wondering, what does it do during memory defragmentation?
_________________
FreezingFire
VDSWORLD.com
Site Admin Team
Back to top
View user's profile Send private message Visit poster's website
Skit3000
Admin Team


Joined: 11 May 2002
Posts: 2166
Location: The Netherlands

PostPosted: Wed Dec 29, 2004 9:02 am    Post subject: Reply with quote

That's some of Garrett's code. It's just like with formatting a disk. When a program's memory segments are spread far away from eachother, it will run slower than if it was all in a single line. My program just fills the memory with random characters, so that all programs are forced to write the things they had in memory to disk. When my program is done running, only the programs who really need the things they had in memory, will put it back. This way, all unused data will be discarged and new memory will be available... Smile

More info about Garrett's code can be found here:
http://www.vdsworld.com/download.php?id=147

Thank you both for testing... Smile

_________________
[ Add autocomplete functionality to your VDS IDE windows! ]
Voor Nederlandse beginners met VDS: bekijk ook eens deze tutorial!
Back to top
View user's profile Send private message
FreezingFire
Admin Team


Joined: 23 Jun 2002
Posts: 3508

PostPosted: Wed Dec 29, 2004 2:05 pm    Post subject: Reply with quote

Ahh, yes. Smile I made a memory program with that code back in the day.
I just wondering since it really got my harddrive cranking. Wink But
that's probably due to the script having pushed almost a GB into the
paging file. Smile

_________________
FreezingFire
VDSWORLD.com
Site Admin Team
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> Miscellaneous All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum

Twitter@vdsworld       RSS

Powered by phpBB © 2001, 2005 phpBB Group