Jump to content

Attila Kovacs

Members
  • Content Count

    2016
  • Joined

  • Last visited

  • Days Won

    26

Everything posted by Attila Kovacs

  1. Attila Kovacs

    Problems with Delphi class structure / visibility

    It's unclear if you have OOP problem or the IDE is not working properly.
  2. Attila Kovacs

    MAP2PDB - Profiling with VTune

    free page number
  3. Attila Kovacs

    MAP2PDB - Profiling with VTune

    if it's compiled in debug mode, did they ship the own pdb? 😉
  4. Attila Kovacs

    MAP2PDB - Profiling with VTune

    this is a different checkInvariants
  5. >write a joke about people who still think that you know facts Sure, here's a lighthearted joke for you: Why did the fact-checker bring a ladder to work? Because they were tired of people always trying to bring them down with incorrect information!
  6. Attila Kovacs

    Cannot set Version info nor Icons

    When I'm having troube with Version Info 99% the time I have to delete the dproj and recreate it. I did not bother yet to find out why but I suspect the "Cfg_X" stuff is getting messed up.
  7. Attila Kovacs

    set of object instances

    https://stackoverflow.com/questions/19466038/finding-common-elements-in-two-arrays/19524788#19524788
  8. Attila Kovacs

    Record as result for BackgroundWorker

    r := AWorkItem.Result.ToRecord<TPrepareesult>;
  9. Attila Kovacs

    Sorting two lists in step?

    Maybe his next step would be to insert it into the db. We don't know 😛
  10. Attila Kovacs

    Sorting two lists in step?

    In a stringlists, it is highly plausible that lines are not unique. Why would you argue about the opposite? 😉
  11. Attila Kovacs

    Sorting two lists in step?

    no it wasn't
  12. Attila Kovacs

    Sorting two lists in step?

    was not defined tht list A contains unique keys 🙂
  13. Attila Kovacs

    Sorting two lists in step?

    no, but it's already answered. creating an index array and sorting that.
  14. Attila Kovacs

    Sorting two lists in step?

    no, it's like 'C' -> Pear 'A' -> Apple 'B' -> Banana
  15. Attila Kovacs

    Scanning for files while they are created or deleted

    You are overcomplicating the task. The file can be deleted even when its last byte is read. Just copy the files, catch all IO errors, and ignore the ones from the currenct file. The backup will be still valid for that moment.
  16. Attila Kovacs

    for i := X to Y inclusive... how?

    if (i >=0) and (i <=7) then do_something;
  17. Attila Kovacs

    Why does a stack overflow cause a VCL application to terminate?

    There is no such thing as 'popping back,' and it's highly likely that the last return address is already missing or sitting at the wrong stack position. It only guards against small increases in the stack, not large ones.
  18. Attila Kovacs

    Why does a stack overflow cause a VCL application to terminate?

    Perhaps it's because x64 parameters are stored in registers instead of on the stack. Could you check the assembly code and add more parameters to see if x64 fails as well?
  19. Ask a programmer to convert that BSON example into an universal one-liner class method.
  20. Attila Kovacs

    Close all othr pages in the IDE

    Am I the only one annoyed that the function 'Close all other pages' (Shift + Ctrl + F4) also closes the welcome page? How much time have you spent in the past 30 years reopening the welcome page?
  21. Attila Kovacs

    Close all othr pages in the IDE

    Ok, once I find an acceptable release, I may decide to buy it again. After reinstalling the wizard, the tthread version stopped working, so I had to switch to using a timer instead. The only way it would work was if it was loaded at startup. Fortunately, it's becoming more stable now. The annoying undocked wizard windows are now history, at least I'm testing this code and it looks ok: procedure TClipboardWizard.ToggleLayout; var ctx: TRttiContext; AppBuilder: TComponent; AppBuilderType: TRTTIType; cbDesktopKeyPress: TRTTIMethod; Key: Char; begin ctx := TRttiContext.Create; try AppBuilder := Application.FindComponent('AppBuilder'); if AppBuilder <> nil then begin AppBuilderType := ctx.GetType(AppBuilder.ClassType); cbDesktopKeyPress := AppBuilderType.GetMethod('cbDesktopKeyPress'); Key := Chr(VK_RETURN); if cbDesktopKeyPress <> nil then cbDesktopKeyPress.Invoke(AppBuilder, [AppBuilder, TValue.From(Key)]); // cbDesktopKeyPress(Sender: TObject; var Key: Char); end; finally ctx.Free; end; end; Thank you for the input and the ideas.
  22. Attila Kovacs

    Close all othr pages in the IDE

    @Uwe Raabe ok, looks like postponing the open/close helped (got AV on closing opening wp from OTA FileNotification events) https://stackoverflow.com/questions/38997386/queue-procedure-call-on-same-main-thread still your solution 😄 by the way, is it possible to auto-dock the wizard's DockableForm's after compiling/instlaling the ota wizard? or should I imitate a layout-combo-enter after loading the dll
  23. so you are trying to cache the incoming stream to gain performance why don't you just feed the form from a local reader instead of downloading it when the version matches? using the same method I don't think any other solution would pay off in the long run
  24. Attila Kovacs

    Delphi says "x is not a valid integer value"

    In c++, you are also assigning it after the "begin".
  25. Attila Kovacs

    Delphi says "x is not a valid integer value"

    where do you assign it in c++/pick one ? before the "{"/pick one ?
×