Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
My compiled app on my new PC hangs
Message
From
17/07/2018 05:28:55
 
 
General information
Forum:
Visual FoxPro
Category:
Installation, Setup and Configuration
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 10
Miscellaneous
Thread ID:
01661202
Message ID:
01661220
Views:
50
>>>>>My VFP program that has run forever hangs at random places when run on my new PC.
>>>>>I tried to disable SMB as in the picture but it made no difference.
>>>>>There is no error - just the usual "Not responding" message from Windows.
>>>>>
>>>>>
>>>>>Any suggestions as to what I can try?
>>>>
>>>>Are you running with an admin account or a standard/limited account?
>>>>
>>>>Are all components of VFP9 SP2 properly installed? Any reliance on 3rd party ActiveXs etc which may need to be installed, registered etc?
>>>>
>>>>Does your app expect any files/folders/network mapped drives etc to be present?
>>>>
>>>>Does your app work with any environment variables that may not be present?
>>>>
>>>>Not responding messages sometimes are caused by too much disk I/O or a disk hardware or driver issue. Are any errors or warnings present in the System or Application event logs? Are there any other foreground apps or background services that might be causing a lot of disk I/O, maybe a backup program, File History etc? If you go into Task Manager/Performance tab while your app hangs, is there any indication of high disk or CPU utilization?
>>>>
>>>>If you're using an antivirus program that's not Windows Defender (built-in), can you temporarily turn off its real-time scanning component(s) and retry?
>>>
>>>Answers to your questions:
>>>Admin account
>>>Mapped drives not used, program runs in C:\vcfe
>>>Looking at task manager and performance monitor shows no abnormal activity
>>>I turned off Nortons by disabling Autoprotect. Didn't help.
>>>
>>>Everything seems normal. I do notice that the "Not responding" message from Windows seems to occur while the program is doing some data processing. It happened today while indexing the files.
>>>
>>>I tried this: In Services, I stopped Windows search. Didn't help.
>>>
>>>It looks to me like the problem could be something to do with accessing or writing data to the disk. It happens at random - repeating the same procedure works, and it then hangs in a different part of the program. This is a major problem, in that it hangs several times an hour. Rebooting the PC and not launching anything else didn't help.
>>>
>>>Is there another disk setting you can think of that I can try?
>>
>>How about the other things in my second-to-last paragraph?
>>
>>When it "hangs", does it eventually start responding again if you leave it alone? What is the disk activity light status - off, blinking intermittently or on solid?
>
>My PC (laptop) has no lights for disk activity - I never see blinking disk lights.
>
>I have the Event Viewer open. Ran my program until it stopped with the Not responding message.
>No new event raised under Administrative Events. System logs just have Info events - no warnings or errors.
>
>Never recovers from a hang, but it does allow me to close the Window with the X. Windows message saying the application is not responding. Says: Do you want to end this process? I end it OK.
>
>After ending still nothing noticeable (to me) in the Administrative or System Event Viewer.
>
>I have an index routine in my program. Sometimes it hangs at different places during the indexing; sometimes it goes all the way through. I see no indication of high CPU or disk usage by anything else. My program just gets stuck, with apparently do disk thrashing.
>
>Tomorrow I'll try on another PC.
>
>Any other ideas?

What make/model is the laptop?

If it's a new one I assume it came with Windows 10 pre-installed. Is it OEM/"stock" or have you upgraded it say, from a mechanical disk drive to an SSD?

Assuming it's unmodified, most manufacturers pre-install a pretty well optimized set of drivers for the hardware. That said, you could still go into Device Manager and see if there are any "Unknown devices" showing. Those would indicate missing drivers (or worst case scenario, hardware not supported under Windows 10). However, even if Device Manager is "clean" there are some potential issues, especially with brand-new computers:

1. System board BIOS/firmware may require an update. Go to the manufacturer's site and see if there are any newer firmware updates for your make/model. There may also be updated chipset or disk drivers, if so install those

2. Bloatware. Laptops are especially prone to getting large suites of mostly unnecessary software installed e.g. "Toshiba" utilities or "Lenovo". You might want to look at what they do, if present. If any do "automatic backup" or "data protection" or similar they might be suspect

Another thing you can do, which is applicable to all PCs but especially for laptops, is to simplify. In normal use you might have an external keyboard and mouse plugged in to the laptop, maybe an external hard drive or USB flash drive, USB printer etc. For troubleshooting, disconnect everything except the power cable (and wired networking if you need that to run your app), and test using the built-in keyboard and trackpad. Some issues I've seen cause weird problems with laptops:

- External keyboards or mice with weak/failing batteries
- USB devices that require more power than the port on the laptop can supply e.g. some external USB3 hard drives when plugged into a USB2 port

You might also check that Windows itself is up-to-date in Windows Update. A lot of new machines are still being delivered with Windows 10 1709 (September 2017), while Microsoft has been rolling out 1803 (March 2018) updates for a while now. You can check by running "winver" from the search/start menu. If you're still on 1709 it might be worth doing the major "feature update" to 1803. That takes a long time (~2 hours with a mechanical hard drive) during which time you can't use the computer, so bear that in mind.
Regards. Al

"Violence is the last refuge of the incompetent." -- Isaac Asimov
"Never let your sense of morals prevent you from doing what is right." -- Isaac Asimov

Neither a despot, nor a doormat, be

Every app wants to be a database app when it grows up
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform