tag:blogger.com,1999:blog-29331675.post5679835981237545268..comments2024-03-05T17:37:00.995+01:00Comments on The Delphi Geek: GpDelphiUnits updategabr42http://www.blogger.com/profile/06903558857617342477noreply@blogger.comBlogger19125tag:blogger.com,1999:blog-29331675.post-33097420868243883962012-07-31T09:48:26.277+02:002012-07-31T09:48:26.277+02:00Hi,
thank you so much for this great library!!
I ...Hi,<br />thank you so much for this great library!!<br /><br />I just have 1 question, regarding the function DSiExecuteAndCapture.<br /><br />Is it possible to increase buffer size to more than 1 MB? <br /><br />Is there a reason of 1Mb or can i use whatever I want? I often receive the error of Buffer FULL....<br /><br />thank you so much!!Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-29331675.post-71337675084249119492012-07-15T21:08:42.432+02:002012-07-15T21:08:42.432+02:00Yes, they will be compatible. OTL is typically qui...Yes, they will be compatible. OTL is typically quite in sync with the GpDelphiUnits repo while OmniXML indeed laps behind but I always make sure that OmniXML works with the current version of the units too.gabr42https://www.blogger.com/profile/06903558857617342477noreply@blogger.comtag:blogger.com,1999:blog-29331675.post-35598825674161065612012-07-13T04:36:58.777+02:002012-07-13T04:36:58.777+02:00Are those, and will them be compatible with eachot...Are those, and will them be compatible with eachother? I mean, both OXML and OTL uses rather old versions of the Gp units.terrynoreply@blogger.comtag:blogger.com,1999:blog-29331675.post-17137739375005544892012-05-15T11:42:05.197+02:002012-05-15T11:42:05.197+02:00true, you are right. i found the problem, the prob...true, you are right. i found the problem, the problem appears when it can't find the BAT, it starts returning wrong error codes.<br /><br />I had the bat in the wrong folder. looks like it's working now.<br /><br />Think you can fix the message if the file is not found ?Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-29331675.post-34505894754551081722012-05-15T11:29:41.502+02:002012-05-15T11:29:41.502+02:00Works fine here.Works fine here.gabr42https://www.blogger.com/profile/06903558857617342477noreply@blogger.comtag:blogger.com,1999:blog-29331675.post-89802497886302679912012-05-15T11:22:30.144+02:002012-05-15T11:22:30.144+02:00Hi, there's still something wrong...
I tried a...Hi, there's still something wrong...<br />I tried another thing, a BAT that runs Notepad. It should wait until i close notepad. <br /><br />I don't know why but sometimes it returns all kind of error exitcode.<br /><br />Can you double check please?<br /><br />try this:<br /><br />1) debug this:<br />Error := DSiExecuteAndCapture('a.bat', slerrori, '', ExitCode, 60);<br /><br />2) the first time it should wait, but terminate the program (CTRL-F2)<br /><br />3) try it again, it will not wait anymore and it will send you all kind of errors.<br /><br />Any Idea?Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-29331675.post-90297621742893124442012-05-10T08:47:44.531+02:002012-05-10T08:47:44.531+02:00It is because the 'pause' doesn't real...It is because the 'pause' doesn't really pause when you execute your batch in a hidden window. Command line processor is too smart.<br /><br />Replace it with<br /><br />for /l %i in (1, 1, 100) do sleep 1<br /><br />and you'll get the timeout.gabr42https://www.blogger.com/profile/06903558857617342477noreply@blogger.comtag:blogger.com,1999:blog-29331675.post-44485443716928232172012-05-10T08:32:26.065+02:002012-05-10T08:32:26.065+02:00Updated, thanks!Updated, thanks!gabr42https://www.blogger.com/profile/06903558857617342477noreply@blogger.comtag:blogger.com,1999:blog-29331675.post-49912782503269038812012-05-09T13:55:26.738+02:002012-05-09T13:55:26.738+02:00thanks! that would help me so much!thanks! that would help me so much!Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-29331675.post-24476324174965091232012-05-09T12:07:26.913+02:002012-05-09T12:07:26.913+02:00Yes, I'll look into it. As soon as I find some...Yes, I'll look into it. As soon as I find some time.gabr42https://www.blogger.com/profile/06903558857617342477noreply@blogger.comtag:blogger.com,1999:blog-29331675.post-65373756485783831572012-05-09T12:02:05.958+02:002012-05-09T12:02:05.958+02:00Please can you tell me something about it? That fu...Please can you tell me something about it? That function is great and I need it so much, but I need it to stop and wait for the bat. <br />Is there a bug or is it me that I'm doing something wrong?Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-29331675.post-70158669070615909872012-05-08T18:13:26.628+02:002012-05-08T18:13:26.628+02:00also, the link lets me download version 1.64a not ...also, the link lets me download version 1.64a not 1.66Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-29331675.post-9796721011088884282012-05-08T18:06:16.763+02:002012-05-08T18:06:16.763+02:00i tried it i have a simple bat like:
echo "h...i tried it i have a simple bat like:<br /><br />echo "hi"<br />pause<br /><br />then i called:<br /><br />NumHdl := DSiExecuteAndCapture(BatPath, TmpSl, '', CodErr, 60);<br /><br />but it does not wait. it should wait because of "pause" shouldn't it?Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-29331675.post-20555230225897121462012-05-08T17:56:18.737+02:002012-05-08T17:56:18.737+02:00DSiExecuteAndCapture has waitTimeout_sec parameter...DSiExecuteAndCapture has waitTimeout_sec parameter which does what you want.gabr42https://www.blogger.com/profile/06903558857617342477noreply@blogger.comtag:blogger.com,1999:blog-29331675.post-26578814173713151262012-05-08T17:54:55.930+02:002012-05-08T17:54:55.930+02:00Fixed, thanks for the warning.Fixed, thanks for the warning.gabr42https://www.blogger.com/profile/06903558857617342477noreply@blogger.comtag:blogger.com,1999:blog-29331675.post-52120598181931865802012-05-08T17:32:51.428+02:002012-05-08T17:32:51.428+02:00Hi,
thank you for everything! But please, could y...Hi,<br /><br />thank you for everything! But please, could you help me set DSiExecuteAndCapture so that it will wait a custom time for the application to close, otherwise will force the exit with an error?Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-29331675.post-84589629839851185052012-04-23T14:20:04.525+02:002012-04-23T14:20:04.525+02:00Check the links, please (they refer to localhost)Check the links, please (they refer to localhost)Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-29331675.post-16477516190514208212012-04-23T13:42:38.319+02:002012-04-23T13:42:38.319+02:00No, this is the original. OmniXML uses a copy of s...No, this is the original. OmniXML uses a copy of some of those units. As does OmniThreadLibrary.gabr42https://www.blogger.com/profile/06903558857617342477noreply@blogger.comtag:blogger.com,1999:blog-29331675.post-89742677265171053142012-04-23T13:36:29.106+02:002012-04-23T13:36:29.106+02:00Aren't this omnixml units?
Is this a fork (o...Aren't this omnixml units? <br /><br />Is this a fork (or the original?)Anonymousnoreply@blogger.com