© J.C. Kessels 2009
MyDefrag Forum
May 24, 2013, 04:43:37 pm
Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News
:
Home
Help
Search
Login
Register
MyDefrag Forum
>
MyDefrag v4 Forum
>
Bugs and problems
>
Mydefrag does not start
Pages: [
1
]
2
3
...
5
« previous
next »
Print
Author
Topic: Mydefrag does not start (Read 11983 times)
Johan
JkDefrag Junior
Posts: 8
Mydefrag does not start
«
on:
April 08, 2009, 10:33:37 am »
I have been using JKDefrag succesfully on several computers. Recently i started using Mydefrag for testing purposes with good result on several computers. There is however 1 computer where Mydefrag does not start at all (not even start writing a log file). Are there some dependencies for Mydefrag that are different than those for JKDefrag, because the latter runs without any problems?
The system is an normal Pentium 4 M laptop with windows XP.
Thanks in advance.
Logged
gerdb
JkDefrag Hero
Posts: 70
Re: Mydefrag does not start
«
Reply #1 on:
April 08, 2009, 12:46:25 pm »
Are you running on battery power? MyDefrag will detect this and refuse to do anything.
Logged
Johan
JkDefrag Junior
Posts: 8
Re: Mydefrag does not start
«
Reply #2 on:
April 08, 2009, 01:12:35 pm »
No, it is not running on batteries, and i assume at least something is logged when starting the program, even if it refuses to defragment?
Logged
jeroen
Administrator
JkDefrag Hero
Posts: 7155
Re: Mydefrag does not start
«
Reply #3 on:
April 11, 2009, 09:53:42 pm »
I wonder what the problem could be. Can you please try running MyDefrag with the "-d 6" commandline switch?
Logged
Johan
JkDefrag Junior
Posts: 8
Re: Mydefrag does not start
«
Reply #4 on:
April 14, 2009, 01:03:51 pm »
Thanks Jeroen for the reply.
When I run mydefrag.exe -d 6 (from command line to be sure to see everything) nothing happens and the prompt immediately returns. Can not find any log file, event in the event viewer or dump somewhere. Looks really strange.
I looked at your exe with the Dependency walker from MS and this is the result, which looks ok to me (see attachement)
The only file that gets created around the time Mydefrag is started is a prefetch file (.pf) for Mydefrag.
Any other suggestion?
CropperCapture[1].Png
(45.82 KB, 1122x234 - viewed 943 times.)
Logged
jeroen
Administrator
JkDefrag Hero
Posts: 7155
Re: Mydefrag does not start
«
Reply #5 on:
April 14, 2009, 02:40:18 pm »
With the "-d 6" commandline switch the program should always create a logfile called "c:\Program Files\MyDefrag v4.0b3\MyDefrag.log". The logfile is created when MyDefrag starts analyzing the commandline, after some basic Windows initialization stuff and before loading a MyDefrag script. I have no idea what could be wrong. Without any logfile or error message whatsoever there is not much for me to go on...
Logged
Johan
JkDefrag Junior
Posts: 8
Re: Mydefrag does not start
«
Reply #6 on:
April 14, 2009, 03:19:35 pm »
Jeroen,
Mydefrag is not installed in the default directory, will test if this makes a difference (it does not on other systems ...).
Will report everything i can find, I understand this is really difficult to debug, but there should be some reason ....
Logged
Johan
JkDefrag Junior
Posts: 8
Re: Mydefrag does not start
«
Reply #7 on:
April 27, 2009, 12:40:32 pm »
Jeroen,
Did a new test because of b6, but with the same results.
As I have VS2008 installed on this system (for VB and C# development), i created an empty project and set it to run mydefrag for debugging. (see pictures.)
I get the same error over and over again, somewhere in advapi.dll, and the dissasembly does not ring a bell for me, but maybe it does for you ...
Best regards,
Johan.
CropperCapture[2].Png
(12.81 KB, 445x205 - viewed 857 times.)
CropperCapture[3].Png
(21.52 KB, 423x529 - viewed 876 times.)
CropperCapture[4].Png
(4.12 KB, 429x79 - viewed 835 times.)
Logged
jeroen
Administrator
JkDefrag Hero
Posts: 7155
Re: Mydefrag does not start
«
Reply #8 on:
April 28, 2009, 12:04:33 pm »
Quote from: Johan on April 27, 2009, 12:40:32 pm
Did a new test because of b6, but with the same results.
Thanks for testing and for the feedback, I appreciate it! The assembly dump looks to me as the beginning of a subroutine. It creates space on the stack for local variables, and stuff like that. The line with the yellow arrow is presumably where the program crashes. It's an initialization, it stores zero in one of the variables on the stack. I fail to see what could possibly be wrong with that....
Quote
As I have VS2008 installed on this system
The debug file with all the symbols "MyDefrag.pdb" is included in the distribution. Visual Studio should be able to tell exactly at which line in the sources it went wrong. You said earlier that you do not run from the default directory, perhaps you have only copied the "mydefrag.exe" executable?
Logged
gemisigo
JkDefrag Hero
Posts: 110
Re: Mydefrag does not start
«
Reply #9 on:
April 29, 2009, 08:15:18 am »
I did a "copy-uninstall-try-to-run" sequence somewhere around beta4 and it worked without any problems for me. From that on I never installed it into the default directory. So that should not be a problem. Not tried the copy thing with beta6 though.
Logged
Johan
JkDefrag Junior
Posts: 8
Re: Mydefrag does not start
«
Reply #10 on:
June 25, 2009, 01:59:51 pm »
Jeroen,
Some latest updates around this issue. The error described above seems to occur in the exe loader, before any code you wrote executed. I have used tools like process monitor to view what happened, but the results where not conclusive. The crash occurs around the time imgutil.dll is loaded, but there seems no reason on this machine why this should fail. Because i hope to replace this machine in the next few months, i will not try to investigate this further unless there is a good reason to do so (Jkdefrag runs happily on this machine). MyDefrag runs (mostly) fine on the rest of the machines i have access to.
Logged
jeroen
Administrator
JkDefrag Hero
Posts: 7155
Re: Mydefrag does not start
«
Reply #11 on:
June 26, 2009, 07:02:56 am »
Thanks for the feedback, I appreciate it. I'm assuming that you are experiencing the same problem with the latest beta? And still no debuglogfile? Nobody else has reported this problem, so for the moment I am assuming it's something on this single computer, not a bug in MyDefrag.
Logged
Ben
Newbie
Posts: 3
Re: Mydefrag does not start
«
Reply #12 on:
July 20, 2009, 09:24:30 pm »
Hi
Just like Johan, JKDefrag worked fine for me.
I decided to install MyDefrag, but it won't start. Nothing happens. No logs are created.
I use XP on a HP Pavilion.
Maybe a XP service that i disabled ?
Hope you can help.
Thank you, great job anyway.
Logged
jeroen
Administrator
JkDefrag Hero
Posts: 7155
Re: Mydefrag does not start
«
Reply #13 on:
July 20, 2009, 09:29:47 pm »
Quote from: Ben on July 20, 2009, 09:24:30 pm
I decided to install MyDefrag, but it won't start. Nothing happens. No logs are created.
No "C:\Program Files\MyDefrag v4.0\MyDefrag.debuglog" file? The program should always create that debug logfile.
Logged
Ben
Newbie
Posts: 3
Re: Mydefrag does not start
«
Reply #14 on:
July 20, 2009, 10:50:24 pm »
Thanks for the answer.
No, nothing, no .debuglog file.
Here is what you can find in the folder "C:\Program Files\MyDefrag v4.0\" :
untitled01.jpg
(16.89 KB, 504x244 - viewed 658 times.)
Logged
Pages: [
1
]
2
3
...
5
Print
« previous
next »
Jump to:
Please select a destination:
-----------------------------
MyDefrag v4 Forum
-----------------------------
=> Announcements
=> Questions and help
=> Bugs and problems
=> Requests for new features
=> Scripts, and other contributions
-----------------------------
JkDefrag v3 Forum
-----------------------------
=> Announcements
=> Questions and help
=> Bugs and problems
=> Requests for new features
=> Programming with the library
Loading...