Jump to content

Микола Петрівський

Members
  • Content Count

    38
  • Joined

  • Last visited

Community Reputation

6 Neutral

Recent Profile Visitors

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

  1. Микола Петрівський

    On-demand ARC feature discussed

    Your code contains memory leak. After a call to "Modify", pointer to original object, inside "classic" variable, will be lost.
  2. Микола Петрівський

    Delphi compiler need to be opensourced

    No matter what you do, sooner or later RTL will have to insert a call to UniqueString. For example when you pass your variable to a function with var parameter. For strings this is not a problem, because they are value types, their copying does not have side effects. For objects you can't guarantee, that copying is safe. You can ask programmers to mark their objects as copy safe, and add additional compiler restrictions for unsafe objects. But how many times some object will happen to have wrong mark, and how easy it will be to debug and fix it?
  3. Микола Петрівський

    GetIt Package Manager Item buttons only partially visible

    If Embarcadero had been testing IDE for HiDPI, then they would spot the problems in IDE manifest first of all. But manifest remains broken for several releases already. So they clearly do not test for HiDPI. And in the docs you will not find any statements, that IDE is HiDPI-aware.
  4. Микола Петрівський

    When is a Delphi form actually visible to the user on Android?

    As far, as I know, TBitmap had problems with threads in Tokyo. In Rio it should be fine.
  5. Микола Петрівський

    When is a Delphi form actually visible to the user on Android?

    You are using Application.ProcessMessages, right? This is a well known feature of latest versions of FMX on Android. Details and workarounds are here: https://quality.embarcadero.com/browse/RSP-22888
  6. Микола Петрівський

    Delphi Rio Android application.processMessages; dosent work

    Explanation from Marco why it does not work and they are not going to fix it: https://quality.embarcadero.com/browse/RSP-22888
  7. Микола Петрівський

    Runtime Error on Closing with ScaleMM2 Memory Manager

    Usually, you should not call memory-related functions after MM unloading. There is a bug somewhere. Maybe FastMM4 is not the first in uses clause, or something gets uninitialized too late.
  8. Микола Петрівський

    Did anybody have the guts to try XCode 10.2

    It has iOS SDK 12.2. C++ apps do not compile with that, while Delphi apps are OK. Have not tested MacOS.
  9. Микола Петрівський

    Runtime Error on Closing with ScaleMM2 Memory Manager

    Try FastMM4 in FullDebugMode. Probably some code tries to call interface method, but reference is nil.
  10. Микола Петрівський

    Read of address DEADBEE7. - Source of this raise?

    It is not so easy to detect, that current AV really is a usage of freed object. Especially if you have multiple DLLs, compiled in different versions of Delphi, or something like that. SafeMM can shed some light even in such situation, but at a cost of big memory leak.
  11. Микола Петрівський

    Read of address DEADBEE7. - Source of this raise?

    In such situation I usually try other debugging tools and compare results. In my list I have FastMM4 in FullDebugMode and SafeMM: https://stackoverflow.com/questions/1039646/trying-to-locate-safemm-for-delphi The last one is especially useful when you want to see precise line of code with the bug. If nothing helps, then I read this article: https://www.eurekalog.com/help/eurekalog/eaccessviolation.php And especially list of mistakes that can cause AV. Usually it is one of them.
  12. Микола Петрівський

    Rapid generics

    Have you looked in to Free Pascal Compiler? It is open source, so you can tweak output assembler as you like, but in the same time it uses Delphi language, which we all love.
  13. If I had to interact with another desktop, I would start separate process there. Probably even separate EXE-file. Then i would send it commands somehow (tethering ?) and get results back.
  14. Микола Петрівський

    Does application.processmessages behaviour differ between VCL and FMX?

    You should use Synchronize as little as possible, because you are not using threads, when Synchronize is running. Usually you need it only for UI.
  15. Микола Петрівський

    Solution(s) for coder with quite poor eyesight

    RAD Studio works like that since Berlin, probably. But on HiDPI screens everything is very small. And do not mix real Screen DPI and Windows Screen DPI, these two values do not have to be the same.
×