bb.donnay-software.com

Donnay Software Web Forums
It is currently Fri Jun 05, 2020 12:05 am

All times are UTC - 7 hours




Post new topic Reply to topic  [ 15 posts ]  Go to page Previous  1, 2
Author Message
PostPosted: Sat Jun 23, 2018 4:42 pm 
Offline
User avatar

Joined: Thu Jan 28, 2010 1:33 pm
Posts: 387
Location: Republica Dominicana
the disc is 100% of its use when the system hangs up and I do not understand why this is happening.

_________________
Nolberto Paulino
Regards


Top
 Profile  
 
PostPosted: Sat Jun 23, 2018 5:51 pm 
Offline
User avatar

Joined: Wed Feb 24, 2010 3:44 pm
Posts: 1185
digitsoft wrote:
I am using SQLExpress with Postgress
perhaps you find something in PostgreSQL Log
Code:
x:\Program Files\PostgreSQL\10.4\data\pg_log\

---
on some PC i notice when upgrade 1709 -> 1803 that Energy-Save-Setting was reset.
so have a look that Network Card does not use Energy-Save-Setting.

_________________
greetings by OHR
Jimmy


Top
 Profile  
 
PostPosted: Sun Jun 24, 2018 3:34 am 
Offline
User avatar

Joined: Thu Jan 28, 2010 1:33 pm
Posts: 387
Location: Republica Dominicana
Thank this is not problem



Auge_Ohr wrote:
digitsoft wrote:
I am using SQLExpress with Postgress
perhaps you find something in PostgreSQL Log
Code:
x:\Program Files\PostgreSQL\10.4\data\pg_log\

---
on some PC i notice when upgrade 1709 -> 1803 that Energy-Save-Setting was reset.
so have a look that Network Card does not use Energy-Save-Setting.

_________________
Nolberto Paulino
Regards


Top
 Profile  
 
PostPosted: Mon Jun 25, 2018 6:29 am 
Offline
User avatar

Joined: Thu Jan 28, 2010 1:33 pm
Posts: 387
Location: Republica Dominicana
hello Roger
how to activate the debugger to see all the processes that I am doing and see where the problem is.


rdonnay wrote:
Tom is right. Probably your CPU is hitting 100%.

This can be caused mostly by DO WHILE or FOR NEXT loops that are doing processing in another thread.
If you have this situation in your program, you should always put a Sleep(.1) in the loop.

Other than that, I don't have any ideas.
Maybe it's a network that isn't responding.

_________________
Nolberto Paulino
Regards


Top
 Profile  
 
PostPosted: Mon Jun 25, 2018 9:37 am 
Offline
Site Admin
User avatar

Joined: Wed Jan 27, 2010 6:58 pm
Posts: 4127
Location: Boise, Idaho USA
Quote:
how to activate the debugger to see all the processes that I am doing and see where the problem is.


You can try calling DC_InspectThreads().

I have seen slowing occasionally by the Garbage Collector thread.
This can happen if you are re-creating a large array in a loop.

Example:

DO WHILE .t.

aDir := Directory()

nFound := AScan(aDir,{|a|a[1] == 'SHUTDOWN.TXT'})
IF nFound > 0
QUIT
ENDIF

ENDDO

The above code will make the garbage collector work overtime. This is because each time you store the Directory() info to the aDir variable it creates a new array pointer. The previous array pointer is thrown into the garbage.
The garbage collector thread will then release that pointer and its contents from memory. If you put a long sleep in the DO..WHILE loop, it will release processing time to other threads, including the garbage collector so it can keep up.

_________________
The eXpress train is coming - and it has more cars.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 15 posts ]  Go to page Previous  1, 2

All times are UTC - 7 hours


Who is online

Users browsing this forum: No registered users and 3 guests


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 post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group