40 views
Skip to first unread message

kamlesh patel

unread,
Nov 4, 2025, 7:40:31 AM (3 days ago) Nov 4
to harbou...@googlegroups.com
Hello,
Below code working fine no error but windows 10 is fast replay and
Windows 11 is slow replay.

Any idea.

PROCEDURE Main()
LOCAL cData := "Hello World"
LOCAL cEXE := "ChildProc.exe"
LOCAL nBytes, nChild, nError, nStdIN, nStdOUT, nStdERR

CLS
? "Opening child process:", cEXE

nChild := HB_OpenProcess( cEXE, @nStdIN, @nStdOUT, @nStdERR )

IF nChild < 0
? "Error:", FError()
QUIT
ENDIF

? "Reading errors : "
cData := Space( 1000 )
nBytes := Fread( nStdERR, @cData, Len(cData) )
?? Left( cData, nBytes )

? "Waiting for end :", HB_ProcessValue( nChild )

FClose( nChild )
FClose( nStdIN )
FClose( nStdOUT )
FClose( nStdERR )
RETURN

Regards
Kamlesh

Gerald Drouillard

unread,
Nov 4, 2025, 8:46:27 AM (3 days ago) Nov 4
to harbou...@googlegroups.com
Turn off virus scan and see if it makes a difference.
Is it the harbour code as shown slow or is it the running of childproc.exe that is slow?

--
You received this message because you are subscribed to the Google Groups "Harbour Users" group.
Unsubscribe: harbour-user...@googlegroups.com
Web: https://groups.google.com/group/harbour-users
---
You received this message because you are subscribed to the Google Groups "Harbour Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to harbour-user...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/harbour-users/CAPFyMQNXCrAYPJi%2BfYOnwdf-XkBOKpUVh8LE3ed9JYgukxsODw%40mail.gmail.com.
Reply all
Reply to author
Forward
0 new messages