Jump to content

Leaderboard


Popular Content

Showing content with the highest reputation on 12/08/22 in all areas

  1. Anders Melander

    Searching for full-time remote position...

    P.S. Good luck with the writing
  2. I doubt, this is by definition how Binary search works. To get the lowest index you just to iterate from the matched item and find the lowest index.
  3. P@Sasa

    FastMM5. Can't get a log file

    I also have problems with logging and here is what I did to get log file. I make FastMM5.INC in FastMM5 directory. {$define FastMM_EnableMemoryLeakReporting} {$define FastMM_FullDebugMode} {$define FastMM_UseOutputDebugString} {$define FastMM_ClearLogFileOnStartup} {$define FastMM_EnterDebugMode} Then, included FastMM5.INC in FastMM5.pas before interface. unit FastMM5; {$Include FastMM5.inc} interface Now, when I add FastMM5 in some project I'm getting log file.
  4. And where is this written? Whoever made the change obviously did it to handle lists with duplicates, so it's pointless to argue that lists are usually without duplicates. It's fine that there are corner cases that performs worse than optimal, like with quick sort, but the worst case here is a bit extreme considering that it could have been avoided with a bit of effort - or they could have just Googled the solution. There's just no excuse for the current implementation.
  5. Dave Nottage

    iOS application build in Delphi 11.2

    As long as the PAServer is exposed to the "outside world" (perhaps by port forwarding), yes.. that is possible. Bear in mind however that if you're deploying to a device, the machine that has PAServer on it needs to be able to access the device, either by being connected directly to that machine, or possibly using something like this: https://www.net-usb.com/
  6. Dalija Prasnikar

    function returning interface

    I just looked at that code and the problem is not in the inline variable. Casting as interface creates hidden interface reference no matter what and that reference hinders release. This behavior is not a regression and it is not related to inline variables so I wouldn't hope it will be fixed soon. Reported as https://quality.embarcadero.com/browse/RSP-40166
  7. The famous Quick Fix™ technique - Sponsored by Intel and your local power company.
  8. Fellow Delphi developers, This is with great pleasure that we announce the immediate availability of HelpNDoc 8.3, an easy to use yet powerful help authoring tool producing CHM help files, responsive HTML 5 and mobile Websites, DocX and PDF manuals, Markdown documents, ePub and Kindle eBooks as well as Qt Help files from a single source. HelpNDoc is Free for personal use and evaluation purposes and is available at: https://www.helpndoc.com HelpNDoc 8.3 provides many new features and enhancements such as the ability to mass update hyperlinks throughout the project, greatly reduced documentation generation time, improved Word/PDF generation and much more... You can learn more about this update at: https://www.helpndoc.com/news-and-articles/2022-12-08-locate-and-update-hyperlinks-in-bulk-filtered-keywords-and-improved-documentation-generation-speed-in-helpndoc-8.3/ Video of some of the new features in HelpNDoc 8.3: Download HelpNDoc now and use it for free for personal and evaluation purposes: https://www.helpndoc.com/download Follow our step-by-step video guides to learn how to use HelpNDoc: Best regards, John, HelpNDoc team. https://www.helpndoc.com
  9. Anders Melander

    function returning interface

    Not quite fixed it seems 😞 Casting a function result with the interface as operator and the old behavior is back. Reproduced with Delphi 11.2. This works: begin var Foo := FunctionReturningInterface; // RefCount = 1 Foo := nil; // RefCount = 0 ... end; but this doesn't: begin var Foo := FunctionReturningInterface as IFoo; // RefCount = 2 Foo := nil; // RefCount = 1 ... end; // RefCount = 0 Workaround: begin var Foo: IFoo; begin var := TempFoo := FunctionReturningInterface; // RefCount = 1 Foo := TempFoo as IFoo; // RefCount = 2 end; // RefCount = 1 Foo := nil; // RefCount = 0 ... end; or function FooFunc: IFoo; begin Result := FunctionReturningInterface as IFoo; // RefCount = 2 end; // RefCount = 1 begin var Foo := FooFunc; // RefCount = 1 Foo := nil; // RefCount = 0 ... end;
×