Jump to content

Dmitry Arefiev

  • Content Count

  • Joined

  • Last visited

  • Days Won


Dmitry Arefiev last won the day on May 11

Dmitry Arefiev had the most liked content!

Community Reputation

29 Excellent


Technical Information

  • Delphi-Version
    Delphi 10.3 Rio

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Dmitry Arefiev

    JSON string value

    No, because they are rather "features", than bugs, introduced from library beginning. "Fixing" them will break backward compatibility.
  2. Dmitry Arefiev

    Firedac and simultaneous connection to different version of Firebird

    More to read: http://docwiki.embarcadero.com/RADStudio/Tokyo/en/Configuring_Drivers_(FireDAC)
  3. Dmitry Arefiev

    TFDEventAlerter bug?

    There are two options: 1) Modify your code. In EventAlert use: TThread.Queue(nil, procedure begin Caption := AEventName + ' ' + DateTimeToStr(Now); end); And in FormCreate set: FEvents.Options.Synchronize := False; 2) Modify FireDAC sources. For that in FireDAC.Phys.pas change method: function TFDPhysEventMessage.Perform(AThread: TFDThread): Boolean; begin FMsgThread := AThread as TFDPhysEventThread; if FMsgThread.Active then begin if FMsgThread.FAlerter.GetOptions.Synchronize then TFDThread.Queue(nil, BasePerform) else BasePerform; end; Result := True; end;
  4. Dmitry Arefiev

    JSON string value

    BTW, the test suite in above link is 98% successfully passed by 10.3.1 System.JSON. From 7 failing tests, 3-4 may be considered as a "feature" ...
  5. Dmitry Arefiev

    JSON string value

    We have two problems: 1) REST, DBX, System.JSON duplicating JSON serialization classes. 2) Non complete docu for (1) classes. We want to keep only System.JSON with options for backward compatibility with REST, DBX. And only to develop System.JSON. When this will happen, then all demos, tests (internal), docu, must be updated to reflect the current RTL state. Now it is not the time for docu work ...
  6. Dmitry Arefiev

    JSON string value

    function JsonEncodeString(const AStr: string): string; var LStr: TJSONString; begin LStr := TJSONString.Create(AStr); try Result := LStr.ToJSON; Result := Result.Substring(1, Result.Length - 2); finally LStr.Free; end; end; It expects AStr without double quotes, and returns text without double quotes. You can adjust it to your own needs. There are several options, eg with/without double quotes, encode non-ASCII chars/do not encode, etc. Probably more simple to implement the above according your needs.
  7. Dmitry Arefiev

    Saving a large project takes soooo Loooonnnnggg..

    In short future this and other IDE performance issues will be resolved ... I hope 🙂
  8. Dmitry Arefiev

    Tool Palette Item properties?

    1. You can see this info in hint for component. 2. Because it serves not only as "Component Palette". 3. Not sure, for example me, need it ...
  9. Dmitry Arefiev

    THTTPReqResp.OnBeforePost breaking change

    The upcoming 10.3.2 Update will address all above issues. They are really reported in JIRA. Stay tuned ...
  10. Dmitry Arefiev

    function stripcslashes()

    May be a bit unexpected approach. And sorry not C but JS, but they are close here. uses System.JSON; function StripJSSlashes(const AStr: string): string; var LVal: TJSONValue; begin LVal := TJSONObject.ParseJSONValue('"' + AStr + '"', False, True); try Result := TJSONString(LVal).Value; finally LVal.Free; end; end;
  11. Dmitry Arefiev

    DPI-change, crashes tDrawgrid.

    Great. Thank you for testing.
  12. Dmitry Arefiev

    ITask.Wait() behaving differently when called multiple times

    Once the exception has been raised, it's considered having notified the caller.
  13. Dmitry Arefiev

    Git UI tools

  14. Dmitry Arefiev

    Can TFDQuery (SQLite) work as fast as TFDmemtable ?

    Using Array DML, or as I wrote above - TFDBatchMove, you can get even better speed.
  15. Dmitry Arefiev

    Can TFDQuery (SQLite) work as fast as TFDmemtable ?

    TFDTable produces many additional queries to mimic TTable and to maintain Live Data Window: http://docwiki.embarcadero.com/RADStudio/Tokyo/en/Browsing_Tables_(FireDAC)#Live_Data_Window_Mode