Issue of DEFINE KBMMW_SUPPORT_MRWSLOCK

Home Forums kbmMW Issue of DEFINE KBMMW_SUPPORT_MRWSLOCK

Viewing 2 reply threads
  • Author
    Posts
    • #56417
      TomYU
      Participant

      hi,

      Can’t compile project when i used DEFINE KBMMW_SUPPORT_MRWSLOCK,

      function TkbmMWThreadedCircularBuffer.BeginRead(const ATimeOutMS:integer = 0):TkbmMWCircularBuffer;
      begin
      FLock.BeginRead(ATimeOutMS);;//[DCC Error] kbmMWDataStructures.pas(1697): E2034 Too many actual parameters
      Result:=FBuffer;
      end;

       

      best regards

      Tom YU.

    • #56422
      Babis Michael
      Participant

      Is it better ?

      • #56423
        TomYU
        Participant

        I’m not sure. I just want to test FLock.BeginWrite work as expected?

    • #56503
      kimbomadsen
      Keymaster

      It is definitely not better 🙂
      The compile problem comes due to that Delphi MREW do not support timeout for BeginRead or BeginWrite methods.
      As some parts of code will want to support timeout, I am not so sure if it is worth retrofitting it to support the parameter but ignore it.
      /Kim/C4D

Viewing 2 reply threads
  • You must be logged in to reply to this topic.