-
Content Count
1977 -
Joined
-
Last visited
-
Days Won
26
Everything posted by Attila Kovacs
-
This is so beautiful, I'll take it for my signature.
-
DBGrid selected row does not highlight the selected row when ClientDataSet is Closed and Open again
Attila Kovacs replied to ChrisChuah's topic in Databases
The thumbnail suggests that you have owner-drawing on, the bug must be in your code. -
[DCC Warning] W1013 Constant 0 converted to NIL
Attila Kovacs replied to dummzeuch's topic in RTL and Delphi Object Pascal
Well, it is. Explicit. -
FreeAndNil() - The Great Delphi Developer Debate
Attila Kovacs replied to AlexBelo's topic in Tips / Blogs / Tutorials / Videos
I can't see any valid reason not to use FreeAndNil() yet, just complaints about not being able to read others code by ppl. who are well known for being ARC advocates. -
FreeAndNil() - The Great Delphi Developer Debate
Attila Kovacs replied to AlexBelo's topic in Tips / Blogs / Tutorials / Videos
Thought so. GC warriors. Why not Java? Anyway, if they were interfaces that would be a different program. I don't think you are familiar with pointers at all. -
FreeAndNil() - The Great Delphi Developer Debate
Attila Kovacs replied to AlexBelo's topic in Tips / Blogs / Tutorials / Videos
:DDDDDDD It's the same as x1.fee; in your ecample. Are you sure you understand pointers? Maybe Java would be a better choice? -
FreeAndNil() - The Great Delphi Developer Debate
Attila Kovacs replied to AlexBelo's topic in Tips / Blogs / Tutorials / Videos
poor freeandnil(), it has nothing to do with it, it's a low-level design pattern you don't like -
FreeAndNil() - The Great Delphi Developer Debate
Attila Kovacs replied to AlexBelo's topic in Tips / Blogs / Tutorials / Videos
At night in the cemetery, a dwarf bounces in front of the humpy and asks: - What's on your back? - A hump. - Do you need it? - No. - Then I'll take it. The humpy suddenly straightens, happily seeing that he is no longer crippled. He hurries home and meets the lame and tells what happened to him. The lame immediately rushes to the cemetery, searching for the dwarf. The dwarf jumps in front of him and asks: - What's on your back, lame? - Nothing... - Then get it, here's a hump! -
FreeAndNil() - The Great Delphi Developer Debate
Attila Kovacs replied to AlexBelo's topic in Tips / Blogs / Tutorials / Videos
that would be wasting resources -
FreeAndNil() - The Great Delphi Developer Debate
Attila Kovacs replied to AlexBelo's topic in Tips / Blogs / Tutorials / Videos
I don't care, sorry. -
DBGrid selected row does not highlight the selected row when ClientDataSet is Closed and Open again
Attila Kovacs replied to ChrisChuah's topic in Databases
@Brian Evans cool, thx. It's time to forget this 30yo limitation and fixing FD. -
DBGrid selected row does not highlight the selected row when ClientDataSet is Closed and Open again
Attila Kovacs replied to ChrisChuah's topic in Databases
This is ridiculous. I can even free the dataset (TUniQuery), recreate it and use the bookmark again on it. Are you sure you have key-fields in your table? Maybe keyfields property should be set for firedac? procedure Run; var a: TQAdresse; bm: TBookmark; begin a := TQAdresse.Create; try a.Open; a.ID.Locate(105); WriteLn(a.ID.AsString); bm := a.Bookmark; a.Free; a := TQAdresse.Create; a.Open; if a.BookmarkValid(bm) then a.Bookmark := bm; WriteLn(a.ID.AsString); a.Next; WriteLn(a.ID.AsString); finally a.Free; end; end; Prints: 105 105 106 Done. -
DBGrid selected row does not highlight the selected row when ClientDataSet is Closed and Open again
Attila Kovacs replied to ChrisChuah's topic in Databases
I don't believe you. There was no bookmark in Delphi 1. Just tested with Devart's UniQuery, I can close the dataset and open it again, the bookmark is still valid. Maybe you are referring to some old BDE component or some other 3rd party which is for some reason saves an instance pointer/memory address too, instead of just key-field values. But I have never seen that before. -
DBGrid selected row does not highlight the selected row when ClientDataSet is Closed and Open again
Attila Kovacs replied to ChrisChuah's topic in Databases
@ChrisChuah Interesting, I suspect some extra unusual code what we can't see. Furthermore always use BookmarkValid() and do not use FreeBookmark. By the way, you have 2 indicators on the first pic, I never used Indicators but I don't think it's normal, do you have multiselect or similar turned on? -
DBGrid selected row does not highlight the selected row when ClientDataSet is Closed and Open again
Attila Kovacs replied to ChrisChuah's topic in Databases
Huh? Since when is that? -
2022 StackOverflow dev survey - salary results
Attila Kovacs replied to Darian Miller's topic in Tips / Blogs / Tutorials / Videos
No, it's pension and usually given before the elections. -
Is there anything which works like ctrl-H but for all Visible=False controls?
-
IDE Hide / Show Non-Visible controls
Attila Kovacs replied to Attila Kovacs's topic in Delphi IDE and APIs
Correct -
IDE start randomly stops with error message
Attila Kovacs replied to PeterPanettone's topic in Delphi IDE and APIs
@PeterPanettone that's why I suggest madExcept: http://help.madshi.net/madExceptConfiguration.htm , give it a try -
IDE start randomly stops with error message
Attila Kovacs replied to PeterPanettone's topic in Delphi IDE and APIs
madExcept should catch it in the IDE too, you could install it temporarily -
If you are just asking about "'Action := caFree;", yes it's fine. Otherwise what David said. Non-modal needs different logic.
-
Access violation on DataModule := TDataModuleMain.Create(nil);
Attila Kovacs replied to ioan's topic in General Help
@ioan I'd check what exactly is on 0x0000000000921298 this could give you more hints what is failing. For this reason I'm always archiving the map file for a release, otherwise you have to look up the asm in the (failing) release and try to identify the place with the latest src/build. -
Parnassus Bookmarks for Delphi 11 Alexandria?
Attila Kovacs replied to PeterPanettone's topic in Delphi IDE and APIs
I'm still using my own stack bookmark plugin to parnassus bookmarks but I have only one shortcut and it's ctrl-shift-1, no other hocus-pocus. Sadly you have removed the (official) plugin support after selling it to embarcadero. At least the documentation and examples are deleted from your site. Why I'm not disappointed when we moving backward again. -
I'm not sure if you asked this but I'm using this https://clevercomponents.com/products/inetsuite/ and I'm fully satisfied.