Author Topic: Active property  (Read 969 times)


  • Newbie
  • *
  • Posts: 7
    • View Profile
Active property
« on: February 17, 2012, 09:06:34 am »
Hallo !
   I've started using nrCommLib components, but I have a lot of experience with Async professional components. I'm discovering some differences, so I have a question about Active property. Please explain the difference between setting property Active at:

        - nrDataProcessor and data packets (nrDataPacket) defined in this DataProcessor

When should I toggle this property ?

At Async Professional I also have Enabled property and AutoEnable property.
I set AutoEnable property to false and then each time my program exits
OnDataPacket event, I have to reenable this data packet. I prefer doing on
this way. What practice do you suggest for your components ?

Thanks for the answers.

Roman Novgorodov

  • Engineer
  • Administrator
  • Hero Member
  • *****
  • Posts: 1006
  • we will win
    • View Profile
    • Forums.nrCommLib.Com
Re: Active property
« Reply #1 on: February 17, 2012, 09:13:57 am »

Thank you for your information.

TnrDataProcessor.Active disables all component,
TnrDataPacket.Active disables single packet definition. You can disable/enable packet from OnPacket event if necessary.

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.