Uploaded image for project: 'Thrift'
  1. Thrift
  2. THRIFT-5620

Option to force usage of COM types to allow for cross-module references

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 0.18.0
    • Delphi - Compiler
    • None
    • Patch Available

    Description

      Currently, the Delphi compiler generates code that uses TBytes and System.String types. Both use dynamically allocated memory.

      Due to the way in which Delphi manages memory this implies, that such interfaces cannot be shared between modules unless ShareMem or some other shared memory manager is explicitly used in all affected modules, which is an undesirable option in certain cases for a number of reasons.

      Goal of this ticket is to enable the Delphi code generator to either directly use COM types (e.g. System.WideString instead of System.String) or implement any other safe means where necessary to deal with this issue (and especially without the use of ShareMem or the like).

      Attachments

        Activity

          People

            jensg Jens Geyer
            jensg Jens Geyer
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: