English
Forum

nProc runs not Process

 

funkheld
Hello, good day.

How can Please a nProc in the Process to that walk bring ?

If I this under reinsetze comes The Message : Variable not declared

nProc teste
endproc

GRuss
 
04/19/16  
 



I wealth, that the not at all weg might -

anyway not without nachträgliches adjust the ENH-File.

Roland jumping presumably same into benannte Proc with the function "process", accordingly the notwendige Overhead for nProc-ASM but not at all implemented becomes.
 
04/20/16  
 




funkheld
Yes thanks for response.

Perhaps takes Roland time a Anpassung to?

greeting
 
04/20/16  
 




funkheld
..........
 
04/20/16  
 



plenty plainer for this object not "process" use separate "shell" with Kommandozeilenparameter - already can You nProcs benefit.

[OFFTOPIC]PS: can Posts too delete:



[/OFFTOPIC]
 
04/20/16  
 




funkheld
Thank you.

Please time one small example with Shell whom Process data hinschieben and retrieve.

greeting
 
04/20/16  
 



simply with FileMap data send,

Process Start with shell my.exe -p2

in the Program same To Beginn: case par$... = "-p2" : dieseProc

In dieseProc are nProcs possible.
 
04/21/16  
 




funkheld
Hmmm..thanks.

Zeig me the Please once short on , what there in the program happened to one example.
so integrally have I not begriffen.

Thank you.
greeting
 
04/24/16  
 




Michael
W.
Shell says Yes, that the aufrufende Program moreover runs. means are The processes in reality simple programs The together with the Hauptprogramm launched go.

(the impliziert incidentally, the The Process-File as EXE exist ought to. Wenn's quick weg should is the Yes eh' nothing for Interpreter.)

the Hauptprogramm (only one Schema; not run)

' Hauptprogramm

Declare hFileMap&
Declare Austauschpuffer#
Dim Austauschpuffer#, 1000

' the Tauschpuffer becomes under the names "Tauscher" already to whom Prozessen laid out.
hFileMap& = Create("FileMap", "Tauscher", 1000)
' Austauschdatei with Puffer contact
Austauschpuffer# = FileMap("Map", hFileMap&)
' data into
String Austauschpuffer#,0 = "Init"
' and To
FileMap("Close", hFileMap&)


' then go processes launched, also nProcs imply can
Shell "processes.exe -p1"
'Shell "processes.exe -p2 -p3"

' then becomes a Loop aufgebaut and therein the Send and receive gesteuert.
Cls


While 1
Case Abbruchkriterium% : BREAK
If DatenEmpfangen%
hFileMap& = FileMap("Open", "Tauscher")
Austauschpuffer# = FileMap("Map", hFileMap&)
Print "receptions: "; String$(Austauschpuffer#,0)
FileMap("Close", hFileMap&)
EndIf
If DatenSenden%
hFileMap& = FileMap("Open", "Tauscher")
Austauschpuffer# = FileMap("Map", hFileMap&)
String Austauschpuffer#,0 = "Init"
FileMap("Close", hFileMap&)
EndIf
EndWhile
Dispose Austauschpuffer#
End

and the code for processes.exe (only one Schema; not run)

' processes

' The Parameter process
Declare p$, p1%, p2%, p3%
p1% = 0
p2% = 0
p3% = 0
WhileLoop 0, %ParCount
p$ = Par$(&Loop)
Case Upper(p$) = "-P1" : p1% = 1
Case Upper(p$) = "-P2" : p2% = 1
Case Upper(p$) = "-P3" : p3% = 1
EndWhile

' ........example only with a Process........

' a Puffer set up
Declare hFM&
Declare Puffer#
Dim Puffer#, 1000

Declare data$

hFM& = FileMap("Open", "Tauscher")
Puffer# = FileMap("Map", hFM&)
// While 1
// If Abbruchkriterium% : BREAK
// ' data take in
// String Puffer#,0 = nProc1() 'data to that Send
// EndWhile

If p1%
data$ = nProc1()
ElseIf p2%
data$ = nProc2()
ElseIf p3%
data$ = nProc3()
Else
data$ = "If you none Process angibst, get' too no data."
ENDPROC
String Puffer#,0 = data$ ' data to that Send
FileMap("Close", hFM&)

nProc proz1
' ...
ENDPROC

nProc proz2
' ...
ENDPROC

nProc proz3
' ...
ENDPROC

Dispose Puffer#
End

The processes should then of Hauptprogramm a Info get, when tappt im dunkeln itself terminate can. here You can then too with several FileMap-Files works.

so can the program each individual Process data Send and eachone Process on the Hauptprogramm.

Or processes benefit one Unterprogramm, the The of Hauptprogramm conceived data auswertet and on whom right Process heading and The data from the Prozessen collecting and on the Hauptprogramm gives.

Here one then a log-Übertragung.
The Datenstrom sees then about so from:

AN P1: data....
AN P2: ABBRUCH
AN P3: WAIT 5000
OF P1: data.....


so can then right simply everything speedy into nProcs and the remainder alights in normalem XProfan-code.
 
System: Windows 8/10, XProfan X4
Programmieren, das spannendste Detektivspiel der Welt.
04/24/16  
 




funkheld
Hello, thank you very much for Help.
now have I it begriffen.

I thought it was one Process the so zb called go must.

pExec("|Prozess", "A", 100, 100, rgb(rnd(256),rnd(256),rnd(256)), 1, h&[0])

Thank you.
greeting
 
04/24/16  
 



Answer


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

9.496 Views

Untitledvor 0 min.
p.specht08/02/18
E.T.04/12/18
Ernst06/22/16
Torsten Rümker05/10/16
More...

Themeninformationen

this Topic has 3 subscriber:

funkheld (6x)
iF (3x)
Michael W. (1x)


Admins  |  AGB  |  Applications  |  Authors  |  Chat  |  Privacy Policy  |  Download  |  Entrance  |  Help  |  Merchantportal  |  Imprint  |  Mart  |  Interfaces  |  SDK  |  Services  |  Games  |  Search  |  Support

One proposition all XProfan, The there's!


My XProfan
Private Messages
Own Storage Forum
Topics-Remember-List
Own Posts
Own Topics
Clipboard
Log off
 Deutsch English Français Español Italia
Translations

Privacy Policy


we use Cookies only as Session-Cookies because of the technical necessity and with us there no Cookies of Drittanbietern.

If you here on our Website click or navigate, stimmst You ours registration of Information in our Cookies on XProfan.Net To.

further Information To our Cookies and moreover, How You The control above keep, find You in ours nachfolgenden Datenschutzerklärung.


all rightDatenschutzerklärung
i want none Cookie