![]() |
![]() ![]()
Experimental Physics and
| ||||||||||||||
|
Dear all, When I was developing a server tool with Portable Channel Access Server library, caput to scalar string or array of number data types can execute successfully. However, caput to array of string like "caput -a MTEST:NAME 3 xxx yyy zzz" will cause the server tool crash even if an empty write() method as follows is provided. Sometimes the crash occurs when caput multiple times rather than the first time. caStatus SimplePV::write(const casCtx &ctx, const gdd &value) { return S_casApp_success; } My platform is Windows 10, Visual Studio 2022 and the PCAS in EPICS-3.14.12.8 I also tried pcaspy with the following Python code and it had the same behaviour as shown in the following picture. #!/usr/bin/env python from pcaspy import Driver, SimpleServer prefix = 'MTEST:' pvdb = { 'NAME': { 'type' : 'string', 'count': 3, 'value': ['aaa', 'bbb', 'ccc'] }, } class myDriver(Driver): def __init__(self): super(myDriver, self).__init__() if __name__ == '__main__': server = SimpleServer() server.createPV(prefix, pvdb) driver = myDriver() # process CA transactions while True: server.process(0.1) ![]() Am I doing something wrong or understanding something incorrectly? Thanks, Lin
| ||||||||||||||
ANJ, 14 Dec 2023 |
![]() · Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing · |