Author Topic: nrASTM  (Read 1040 times)

felorza

  • Newbie
  • *
  • Posts: 8
    • View Profile
nrASTM
« on: August 25, 2012, 02:34:12 pm »
After the event OnProcess, I save the record (STX send by device medical) in an array. After the event close session, I check if the array has query requests, existing, run the event start and return order record after the event onAck.
After returning all orders I must close the session?

Thanks
Flavio Elorza

Roman Novgorodov

  • Engineer
  • Administrator
  • Hero Member
  • *****
  • Posts: 994
  • we will win
    • View Profile
    • Forums.nrCommLib.Com
Re: nrASTM
« Reply #1 on: August 26, 2012, 05:07:00 am »
Hello

Remote ASTM host initiates session. And closes too.
You do not need to call EndSession directly if you receive records.

Roman Novgorodov
DeepSoftware llc
DeepSoftware llc - The professional components for Delphi/CBuilder/.NET. The high quality custom software development.
Forums.nrCommLib.Com - DeepSoftware Tech Support Forum.

felorza

  • Newbie
  • *
  • Posts: 8
    • View Profile
Re: nrASTM
« Reply #2 on: August 27, 2012, 01:40:57 pm »
Even though the session has been initiated by me (nrAstm1.SessionStart)?


Roman Novgorodov

  • Engineer
  • Administrator
  • Hero Member
  • *****
  • Posts: 994
  • we will win
    • View Profile
    • Forums.nrCommLib.Com
Re: nrASTM
« Reply #3 on: August 29, 2012, 10:11:08 am »
Hello

If you initiated sending ASTM records you need open session
by TnrAstm.SessionStart() call and after all records are sent close session by TnrAstm.SessionEnd() call.

Roman Novgorodov
DeepSoftware llc
DeepSoftware llc - The professional components for Delphi/CBuilder/.NET. The high quality custom software development.
Forums.nrCommLib.Com - DeepSoftware Tech Support Forum.