Author Topic: What does mean 0 (zero) of the LoadCtrls value?  (Read 1953 times)

0 Members and 1 Guest are viewing this topic.

Andrey Bushman

  • Swamp Rat
  • Posts: 864
What does mean 0 (zero) of the LoadCtrls value?
« on: October 24, 2016, 08:46:19 AM »
What does mean 0 (zero) of the LoadCtrls value? Look the attached screen, please.

dgorsman

  • Water Moccasin
  • Posts: 2437
Re: What does mean 0 (zero) of the LoadCtrls value?
« Reply #1 on: October 24, 2016, 10:16:14 AM »
Its a binary flag value.  So, no flags are set.
If you are going to fly by the seat of your pants, expect friction burns.

try {GreatPower;}
   catch (notResponsible)
      {NextTime(PlanAhead);}
   finally
      {MasterBasics;}

Andrey Bushman

  • Swamp Rat
  • Posts: 864
Re: What does mean 0 (zero) of the LoadCtrls value?
« Reply #2 on: October 25, 2016, 06:41:23 AM »
Its a binary flag value.  So, no flags are set.
I understand this... But I don't understand what is differ for 0 and 16 values? Both cases don't load the extension.

Andrey Bushman

  • Swamp Rat
  • Posts: 864
Re: What does mean 0 (zero) of the LoadCtrls value?
« Reply #3 on: October 25, 2016, 07:20:44 AM »
Alexander Rivilis answered to my question here. Therefore my curent version of the LoadCtrls enum is:
Code - C#: [Select]
  1. [Flags]
  2. public enum LoadCtrls {
  3.     /// <summary>
  4.     /// Don't load application. This variant allows to load
  5.     /// the application later through the
  6.     /// `HostApplicationServices.LoadApplication` or
  7.     /// `DynamicLinker.LoadApp` functions.
  8.     /// </summary>
  9.     NotLoad = 0,
  10.     /// <summary>
  11.     /// Load application upon detection of proxy object.
  12.     /// </summary>
  13.     LoadWhenProxyDetected = 1,
  14.     /// <summary>
  15.     /// Load the application at startup.
  16.     /// </summary>
  17.     LoadAtApplicationStartup = 2,
  18.     /// <summary>
  19.     /// Load the application at start of a command.
  20.     /// </summary>
  21.     LoadWhenCommandLaunched = 4,
  22.     /// <summary>
  23.     /// Load the application at the request of a user or
  24.     /// another application.
  25.     /// </summary>
  26.     LoadWhenRequestedByUserOrApplication = 8,
  27.     /// <summary>
  28.     /// Do not load the application. Also this variant
  29.     /// forbids to load the application later through the
  30.     /// `HostApplicationServices.LoadApplication` or
  31.     /// `DynamicLinker.LoadApp` functions.
  32.     /// </summary>
  33.     ForbidLoad = 16,
  34.     /// <summary>
  35.     /// Load the application transparently.
  36.     /// </summary>
  37.     LoadTransparently = 32,
  38.     /// <summary>
  39.     /// Load the application when the system is idle.
  40.     /// </summary>
  41.     LoadArxWhenSystemIsIdle = 64
  42. }
« Last Edit: October 25, 2016, 07:24:28 AM by Andrey Bushman »