RAD Studio (Common)
ContentsIndex
PreviousUpNext
E2364: Cross-assembly protected reference to [%s]%s.%s in %s.%s

In Delphi for .NET, members with protected visibility cannot be accessed outside of the assembly in which they are defined. If possible, you may want to use the publicly-exposed members of the class to accomplish your goal. 

Other ways to resolve this error:

  • Increase the visibility of the member from protected to public, so it can be accessed outside of its assembly.
  • “Link in” the assembly where the protected member is defined, so that this assembly is incorporated into the assembly you are building, and the access will be inside the assembly.

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!