Jump to content

Fr0sT.Brutal

Members
  • Content Count

    2268
  • Joined

  • Last visited

  • Days Won

    46

Everything posted by Fr0sT.Brutal

  1. Fr0sT.Brutal

    Delphi or Lazarus/Free Pascal

    I understand all of the circumstances - project is free, nobody obliges anything, devs work at it in their spare time and so on. Just mentioning the result. I had experience working with a project of moderate size (PasDoc) in Lazarus and the experience was OK but debugger just drove me sad.
  2. Fr0sT.Brutal

    Delphi or Lazarus/Free Pascal

    ...with historical excursus 🙂
  3. Fr0sT.Brutal

    Delphi or Lazarus/Free Pascal

    Okay, built FPC/Laz from trunk. Started debugging. Goodbye. Yes, this is annoying. However, I find useful unfolding on a real error - I use to enter "(*" at some place to unfold everything below.
  4. Fr0sT.Brutal

    Delphi or Lazarus/Free Pascal

    Ctrl-K+M for methods, Ctrl-K+R for regions. Anyway I want to tell the editor what I'm folding not where these fragments are in the code. I probably want to fold all long comments, or nested procedures inside current procedure only, or all methods of currently focused class, or anything except currently focused class... options are endless when the folding engine operates full-featured AST instead of filthy fold-tree P.S. I added an example to my previous post
  5. Fr0sT.Brutal

    OldCreateOrder and Delphi 11

    Wow, you're right, all components are read after call to inherited c-tor. That's good. Adding c-tor still requires some more code but it could be fastened by templates
  6. Fr0sT.Brutal

    Delphi or Lazarus/Free Pascal

    No. Top-level procedures could have any folding level and there could be fragments of the same folding level which I do not want to fold (consider: class declaration - f.l. 1, routines = f.l. 1, methods inside a region - f.l. 2. You can never fold routines+methods and leave class decl in one call). And I obviously don't want to count which folding level I'm currently on (so this 1-9 hotkeys are absolutely useless feature IMHO).
  7. Fr0sT.Brutal

    Delphi or Lazarus/Free Pascal

    Duh. Sorry for unclear phrase. I meant "Fold ALL procedures" hotkey which I use frequently in Delphi.
  8. Fr0sT.Brutal

    OldCreateOrder and Delphi 11

    Damn. While this is acceptable (though requiring more code) option for inner fields it's completely useless for initing of child controls. And I don't trust OnShow because it could be called multiple times.
  9. Fr0sT.Brutal

    The Delphi 11.2 release thread

    If only it were possible to build C/C++ OBJ files inside the EXE without hassle...
  10. Fr0sT.Brutal

    Delphi or Lazarus/Free Pascal

    Which command does this?
  11. Fr0sT.Brutal

    Profiling Clipper2

    Directive is just a syntax sugar. THugeArray = array[0..999999] of X; PHugeArray = ^THugeArray; PHugeArray(list)^[N] :=...
  12. Fr0sT.Brutal

    Delphi or Lazarus/Free Pascal

    FPC/Lazarus pros: - More features in language and in IDE - More platforms supported - Code tools correctly handle $IF blocks which Delphi can't for about 15 years Cons: - Debugger SUCKS - Some Delphi features not available (RTTI, anonymous functions) - IDE cannot fold procedures* - ridiculously missing the very important UI feature added * I mean "Fold ALL procedures" hotkey
  13. Haven't you noticed that:
  14. Fr0sT.Brutal

    TTimer limit..

    Provided you have your clocks correctly synced
  15. StringReplace(FilePath, 'SysWOW64', 'System32') 😄
  16. Fr0sT.Brutal

    FastMM5 LogFile Absent

    Dumb question - do you actually have leaks?
  17. Fr0sT.Brutal

    Can't make a popup form go behind the main form in z-order

    You'll get several annoying glitches with this setting like window thumbnail displayed incorrectly, not working minimize command with Win+Down and so on
  18. Fr0sT.Brutal

    Variable Hints

    Translit is another compromise option
  19. Fr0sT.Brutal

    FB-3 Create a New Table

    No You'll have to use some other way
  20. Fr0sT.Brutal

    Line number of source code at runtime

    https://github.com/Fr0sT-Brutal/Delphi_StackTraces with Ice.Utils.GetCurrentAddress function you can get address of current line in the executable, then launch the app in debugger and use "Goto address". Or at least determine current function with routines from Ice.Debug unit (requires MAP file generated)
  21. In your case of one-time check, the most simple option is to log breakpoint passes (evaluate some expression + log result) then copy to some text editor and count the lines
  22. Fr0sT.Brutal

    Hiring-related question: Delphi + javascript ?

    IMHO: look for Delphi WebCore dev who knows a bit of JS. If you build the GUI with WebCore and only need to integrate some JS libs, JS knowledge is not critical (well, some basic knowledge will be enough). But mixing WebCore with JS libs heavily doesn't seem clever option to me. The ideal solution is back-end with textual API only + JS-powered UI. Then you only need one Delphi dev for server and any JS-junior to build UI
  23. You can also include debug DCU's, set non-stopping breakpoint to Stream's realloc method and see how many times it will be called
  24. Fr0sT.Brutal

    "Home made" data replicaion with Nexusdb

    Alas, no. The info I read was scattered into numerous topics where he explained why there's no "quick & simple" replication. It was Dmitry Sibiryakov, the one of active contributors to FB code, and the product is https://www.ibphoenix.com/products/software/ibreplicator The forum where I read that is dead now so maybe you can only reach Dmitry in FB mailing list.
  25. In this case I think this could be optimized. Depending on overall sizes, of course. Reallocating 100-Mb chunks slow down the process anyway even if FastMM reserves some space. In this application (lots of writing, total large size) that stream you mentioned (storing its contents in separate small chunks) will beat any contiguous periodically growing buffer. Another option, of course, it so actually stream the data not buffer.
×