Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

System freezez while debugging

Intel_C_Intel
Employee
4,623 Views
Good folks, all of you who have Win XP!

Please start a new workspace and a new QuickWin application, paste the following code as your source code, build the executable, and insert a breakpoint at line 17. Now begin running the program in debug mode by pushing F5. Repeat pushing F5 very quickly. This makes my system freeze in some minutes after less than 10 times pushing F5. This does not happen if I make a console application with the same code, not either with DLL application even if I USE DFWIN and MessageBox in the DLL. This is just a little example. I have many deeply nested programs in QiuckWin which makes the system freeze a long time and it is impossible to debug them. I didn?t have this problem when I had W2K.

Does this happen to you too?

I have Win XP /SP1 in a Compaq Evo W4000 with a 2 GHz P4 and 256 MB RAM and have updated drivers for mouse and graphics.

	Program FreezeTest

	Implicit None
	Integer I
	Real(8) X(10000), Y(10000)

	Write(*,*) ' *** Start!'

	X = Acos(-1D0)
	Y = Acos(-1D0)

	Do I = 2, 9999
	  X(I:9999) = X(I+1) * X(I-1)
	  Y(I:9999) = Y(I+1) * Y(I-1)
	  X(I:9999) = - Cos(Sqrt(X(I))) * Sqrt(Y(I))
	  Y(I:9999) = - Cos(Sqrt(Y(I))) * Sqrt(X(I-1)*X(I-1))
	  Write(*,*) ' *** I = ', I      ! Breakpoint here
	End Do

	Write(*,*) ' Finished!'

	End

Regards,
Sabalan.
0 Kudos
32 Replies
fela
Beginner
1,761 Views
Hi

I have exactly the same problem. My application is a Fortran windows application, my computer is a pentium 4 2,2 GHz, 1,0 GB ram, win XP. I freezes several times a day during debugging. My colleague working on the same application has exactly the same type of machine but no problems at all. I wonder if the sequence of installing Compaq Visual Fortran/Visual C++/CVF upgrades can be of importance. We have upgraded from Digital Visual Fortran 6.0 A to CVF 6.6.B.
Previously we used win 2000 but I have only seen the problem on XP.

Regards,
Fela
0 Kudos
Steven_L_Intel1
Employee
1,761 Views
No, the order of installation wouldn't affect this. Did you look at the earlier replies?

Steve
0 Kudos
Intel_C_Intel
Employee
1,761 Views
Fela, please do this both in your and your colleague's computer:

1- Press CTRL-Alt-Delete (at the SAME time) and select from the pop-up window "Task Manager" or right-click on an unused part of your task-bar and select "Task Manager";

2- Select the "Processes" tab in the Task Manager and check if ctfmon.exe is amoung those processes which are running in the background;

3- Read my message posted on Feb. 6 in this thread;

4- Please let us know whatever you find.

Sabalan.
0 Kudos
paruk
Beginner
1,761 Views
Sabalan - just want to say thanks for investigating this problem so thoroughly and posting up your findings. Our Fortran team have been having the same problem after getting new machines. Your solution worked in all cases!
0 Kudos
wurong
Beginner
1,761 Views
I envy you guys so much! I am still having the same problem eventhough I've follow the instructions to remove ctfmon.exe. I don't see it in the task lists now. I ended up building a console workspace and replace all those plotting subroutines with dummy codes. Now I finally can smoothly debug my code on my WinXP. I guess it is probably more of a bug in QuickWin than ctfmon.exe
0 Kudos
Steven_L_Intel1
Employee
1,761 Views
The problem is ctfmon - it causes problems for many applications, a problem that is well-documented.
0 Kudos
Jugoslav_Dujic
Valued Contributor II
1,761 Views
A particularly nice thing is that it's by default switched on (although I guess some 0.1% of total Windows users could make use of it), and, of course, means to switch it off are well hidden. Like "Hide file extensions for known file types". Like "Replace text as you type". And the newest bell&whistle -- try to press Ctrl+F in Windows XP Explorer, which I do at least 10 times a day. (Luckily, it can be retreated to normal Win2K behaviour aftera baredozen mouse clicks.)
Jugoslav
0 Kudos
wurong
Beginner
1,761 Views
Wow, you guys are responding so fast!

But as I said, I don't see ctfmon.exe in the task manager anymore, and I had followed the instruction to remove it. So Steve, why am I still getting this problem if it is because of ctfmon.exe?

That code hangs after I press F5 for exactly 10 times.

wurong
0 Kudos
Steven_L_Intel1
Employee
1,761 Views
I don't know - what compiler version are you using? I have not seen other reports of this problem that weren't fixed by disabling ctfmon.
0 Kudos
wurong
Beginner
1,761 Views
I have Compaq Visual Fortran Professional Version 6.6.C.
And I have Visual C++ 6.0 installed as well if that matters.
I thought it might be the mouse driver, so I went on to update my driver the Microsoft IntelliMouse Explorer.
I have attached a screen shot of my task manager
0 Kudos
Steven_L_Intel1
Employee
1,761 Views
Sorry, I can't be of further help regarding CVF issues. You can try writing to vf-support@hp.com. I have not seen any reports of this problem with Intel Visual Fortran.
0 Kudos
sabalan
New Contributor I
1,761 Views
Wurong, according to your task manager you have a pretty long list of processes running. I suggest that you follow How to perform a clean boot in Windows XP to find out if there is some "new" background program which may cause this behavior.
Sabalan.
0 Kudos
Reply