Hi,
> 2. On windows when I run an epics based ioc using procServ, a blank terminal opens up seperately for procServ.exe. Is there a way to not display this. I am sure there > is a way and I haven't searched hard enough!
You will probably get a console window for the running IOC and for procServ itself, both can do something like:
HWND conwin = GetConsoleWindow();
if ( NULL != conwin )
{
ShowWindowAsync(conwin, SW_HIDE);
}
To hide the window (I've had more success with this approach than linking the executables as /SUBSYSTEM:WINDOWS ). You don't necessarily need to modify the IOC code - if the IOC is run from a batch file by procServ then the IOC will share the same console window created by the batch file and you can instead run a separate executable from within this bat file that just does a SW_HIDE as above prior to the IOC starting.
We run native windows IOC's via procServ and found that we also needed to turn off buffering of output (it will be fully buffered for a non-interactive session on windows) to get things to respond properly. This does require modifying the EPICS base ioc code to add:
setvbuf(stdout, NULL, _IONBF, BUFSIZ)
setvbuf(stderr, NULL, _IONBF, BUFSIZ)
I've made a couple of other small changes to procServ for running on Windows which I've been meaning to post for a while, I'll collect them together and post them later
Regards,
Freddie
- Replies:
- RE: procServ+devIocStats questions freddie.akeroyd
- References:
- procServ+devIocStats questions Alireza Panna
- Navigate by Date:
- Prev:
Re: Strange StreamDev behaviour Jörn Wüstenfeld
- Next:
RE: procServ+devIocStats questions freddie.akeroyd
- Index:
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
<2015>
2016
2017
2018
2019
2020
2021
2022
2023
2024
- Navigate by Thread:
- Prev:
Re: procServ+devIocStats questions Kasemir, Kay
- Next:
RE: procServ+devIocStats questions freddie.akeroyd
- Index:
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
<2015>
2016
2017
2018
2019
2020
2021
2022
2023
2024
|