Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.clipper.visual-objects > #12570

Re: RunPiped

From Franz Rachbauer <office@rachbauer.org>
Newsgroups comp.lang.clipper.visual-objects
Subject Re: RunPiped
Date 2019-07-23 16:34 +0200
Organization Aioe.org NNTP Server
Message-ID <qh75u9$1cnn$1@gioia.aioe.org> (permalink)
References <qh4isf$1jm3$1@gioia.aioe.org> <qh5o3q$tmq$1@news.albasani.net>

Show all headers | View raw


Hi Jamal,
Error 5 is not an error from blat.exe but is defined with 5 when 
RunPiped returns False. The RunPiped return codes are
	* 0= Ok
	* 1= Error MemAlloc()
	* 2= Error CreatePipe()
	* 3= SetStdHandle()
	* 4= Timeout
	* 5= Error CreateProcess()
	* 6= Error from application

IF CreateProcess( NULL,  ;
                   PTR(_CAST, cCmdLine), ;
                   NULL,;
                   NULL,;
                   TRUE,;
                   dwFlags,;
                   NULL,;
                   NULL,;
                   @si,;
                   @PI)
	// Code when ok
ELSE
	nRet:=5
ENDIF

Franz

Am 23.07.2019 um 03:32 schrieb Jamal:
> See: http://www.blat.net/examples/blat_return_codes.htm
> 
> 5 -  Error Reading File (message text)
> 
> Jamal
> 
> "Franz Rachbauer"  wrote in message news:qh4isf$1jm3$1@gioia.aioe.org...
> Hi there,
> I'm using a function "RunPiped" to synchron start blat.exe to send an 
> email. I found this function somewhere in the net or in the vo usergroup 
> (maybe Karl-Heinz?)
> 
> At my pc it does well, but at the customer pcs it returns false 
> (returncode 5). All pcs with W7 32bit 4GB. The command line is
> 
> blat.exe C:\TMP\BLAT.HTM -server alfa3085.alfahosting-server.de -port 25 
> -u web128p7 -pw xxxx -subject "Link Cuttings" -to office@visagemodels.at 
> -f office@visagemodels.at -log C:\TMP\BLAT.LOG -html -alttextf 
> C:\TMP\BLAT.TXT -embed C:\TMP\~PM00001.JPG,h:\cuttings\VISAGE.JPG
> 
> Does anyone have an idea what the problem could be?
> 
> Regards, Franz

Back to comp.lang.clipper.visual-objects | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

RunPiped Franz Rachbauer <office@rachbauer.org> - 2019-07-22 16:57 +0200
  Re: RunPiped "Jamal" <noooospam@example.com> - 2019-07-22 21:32 -0400
    Re: RunPiped Franz Rachbauer <office@rachbauer.org> - 2019-07-23 16:34 +0200
      Re: RunPiped "Jamal" <noooospam@example.com> - 2019-07-23 13:14 -0400
        Re: RunPiped Franz Rachbauer <office@rachbauer.org> - 2019-07-24 09:51 +0200
          Re: RunPiped Franz Rachbauer <office@rachbauer.org> - 2019-08-03 16:43 +0200

csiph-web