Problems with Distributed Folding.

Status
Not open for further replies.

Baldy18

Seniorius Lurkius
5
Ok I'm trying to install DF on a Windows 98 box now and I have a problem. Foldtrajlite.exe won't shut down automatically windows shuts down. So I get an error box saying that foldtrajlite.exe needs to be shut down before Windows can shut down. Anyone else have this problem or know how to fix it?

Also HideDF.exe doesn't find foldit.bat then the computer starts up. I tried also using DFGUI.exe so that I wouldn't have to use hidedf but even though I have the start client when dfgui starts box checked it doesn't start the client when the computer starts up. If I shut down DFGUI and start it again after the computer has started up then it works fine.

Anyone know how to fix any of these things? The guys over at Free-DC haven't been able to help at all. :rolleyes:
 

mad-ness

Ars Tribunus Militum
2,422
A few things:

Welcome! :)

I did a lot of experimentation before HideDF or dfGUI were even released trying to find a way to hide the DF command line client on Win9x computers. I found a few ways and I shared the results, but it was a bit difficult. Then the guys at KWSN released HideDF so there wasn't any point in doing it manually.

However, even with HideDF I could not get DF to run on Windows98SE without getting the error message that you are talking about when trying to shut down Windows.

I haven't messed with it lately. However, there is a file that you can use that helps programs shut down more easily that is often needed for some distributed computing clients. Let me dig up that thread on the Distributed Folding forum, some guys reminded me of how to edit that file. It didn't help me, but might help you. The problem with getting DF to close when Windows does (without that warning message) seems to only affect some users.

Here is a link:

http://www.free-dc.org/forum/showthread.php3?s=&threadid=778&highlight=MADness

Oops, it links to another thread. Anyways, try this:

quote:



but I got an error message trying to reboot the computer (foldtrajlite is still running - shut down?).



That's a different problem However, to fix it on Win98: 1) Open Windows Explorer and go to > Windows > System and look for a file called Conagent.exe. You need to reset the properties for this. There are different ways to do this, and somebody else may have their own favorite way, but this way works just as good as any other... 2) Copy the file and paste it into your distribfold folder. 3) Now right click on the file and look for Properties on the pop-up menu. 4) Click Properties then click on the Misc. tab. 5) On the tab look for a checkbox called Warn if still active . Uncheck the box then click Apply . Thats it. Different boxen behave differently to this procedure. I have heard that some boxen will still have the popup message box when you try to shut down, but this works on the vast majority of machines. I've used it on over 50 boxen without problem. You may have to reboot for the procedure to take effect. Generally it will take effect immeditially, but I had to reboot and reset on a couple of machines. Good Luck.

[This message was edited by mad-ness on August 10, 2002 at 16:23.]
 

KD5MDK

Ars Legatus Legionis
23,394
Subscriptor++
I think the problem is the DF finishes working on the current structure, than tries to upload, before quitting. So if your computer shuts down quickly, everying else is ready to go while DF is still finishing up.

That's just a guess, but it reminds me of the problem Win98 had when it would shutdown before the hard drive buffer flushed.
 

Baldy18

Seniorius Lurkius
5
Well I've tried the conagent.exe fix already since this box used to run SETI and I had to do that to get it to shut down SETI properly. However, that fix didn't work with DF for me. :(

It has also been suggested to put a file called _default.pif in the directory and change it's attributes the same way you would for conagent.exe but that didn't work either.

Any other suggestions? If I can't get rid of the shutdown error then I guess I will be force to keep these 4 boxes running SETI for a team other than TLC, but I won't mention who. :eek: ;)
 

IronBits

Ars Scholae Palatinae
1,289
http://www.aplus-certification.com/shutdown.htm
http://howto.lycos.com/lycos/series/1,,5+26+35991+34528+25576,00.html
http://www.protect-me.com/freeware.html
http://www.lucyscreek.com/2046.html
http://www.winutility.com/qsd/
http://www.mediahorizon.net/search/System_Utilities/Startup_Shutdown/index.shtml
Be sure to let us know how you fixed it now ;)
 

mad-ness

Ars Tribunus Militum
2,422
It would be cool if someone knew how to execute a script upon Windows shutdown, you could just delete the foldtrajlite.lock file (which is probably what happens anyways and might still take too long, but might not).

Looking through what IB linked.

Those shutdown apps are nifty, though I wish you could substitute them for the windows shut down (shut down normally and they take over, my personal objective is to make it as if the client is not there at all, i.e. the user does nothing different, sees nothing). In my case, it isn't even a borg exactly but just my families computer and I don't watn them to have ANY hassle with it.

[This message was edited by mad-ness on August 10, 2002 at 18:05.]
 

mad-ness

Ars Tribunus Militum
2,422
I have talked to Howard Feldman about it a bit, but since DF is actually a DOS app things get more complicated. This is really a problem with Windows9x and not the DF software, but he has, as of yet, not been willing to do the extra work to hack the CLI client to make it avoid this problem.

He says "use the screensaver version."

Eventually he may come around, usually we can talk him into any reasonable and useful tweak or feature addition, given time. :)
 

JohnKe

Seniorius Lurkius
27
HideDF is a modified version of another program I have to hide G@H and F@H. HideDF first looks for the foldtrajlite.lock file and deletes it if it exists, then it launches foldit.bat hidden; then HideDF shuts itself down... it does not continue running to monitor DF.

The Win9x "service" that you found on KWSN is not a true service as in NT/W2K/WinXP, mainly because Win9x doesn't support such a service. I use this "service" on a lot of corporate PCs with Win98 (yes, I have permission of the company owner, but you'd be amazed how possessive some users are of their company supplied equipment) because it will launch a program without using the StartUp directory... the StartUp directory is too easy for someone see and to change.

So now you have a hidden method of starting and running a DOS application... and the problem you have is shutting down hidden. This problem is not unique to DF... G@H and F@H have the same problem. The best solution I've found is changing the properties of the Conagent.exe file like you already mentioned. This has been successful for me with DF, G@H and F@H. This has always worked for me, but I have read that occasionally this still does not work on some machines. I have never tried the _DEFAULT.pif thingie...

Just in case you are not familiar with Conagent, go to Windows -> System and look for Conagent.exe. Some people modify the file in the System folder, although others COPY the file to the DC directory and modify it there. I have tried both locations and they both seem to work... which ever location you decide to use, right click on the file and go to Properties. Click on the Misc tab and UNcheck the box "Warn if still active". Click Apply and exit. You may have to reboot for this to take effect.
 
Status
Not open for further replies.