Jump to content

Stéphane Wierzbicki

Members
  • Content Count

    230
  • Joined

  • Last visited

Everything posted by Stéphane Wierzbicki

  1. Stéphane Wierzbicki

    10.4.2: Refactor popup menu takes up to 5 min to display

    No, not really. This is a small sized project. I'm trying right now with an empty project.... Tooks 1m30 .... Process monitor displayed almost 2 000 000 events ....
  2. Stéphane Wierzbicki

    Intraweb/MS SQL/FireDAC app Azure deployment problem...

    Looks like an SQL server error. Have you checked that data sent to SQL server is correct? Regarding your error message, it looks like you are sending a text having a length greater than the declared field size.
  3. Stéphane Wierzbicki

    after updating to windows 20h2 i can't register bcb 6 anymore

    Is there any reason to stay with such an old version? Why don''t you update to a much recent version?
  4. Stéphane Wierzbicki

    New/old component re-released: TComPortDrv

    Just to let you know, the link is not working (404 error)
  5. Stéphane Wierzbicki

    I will be less active for a few weeks

    Take care !
  6. Hi, I'm heavily working with Aurelius (which I'm really satisfied) that can store objects within TList<T>. TList<T> is missing a lot of functionalities that ITlist<T> provide. Is there a easy way to have referenced TList<T> object within ITList<T> ? (I can loop through TList<T> but this is not really practical). Thanks
  7. Stéphane Wierzbicki

    Is there an "easy" way to transfert Tlist<T> object into a Spring4D ITlist<T> ?

    Thanks for your reply. Object's lifetime cycle is actually handle by Aurelius' manager. Object's stored within TList are only queried for additional checks, needs to see TList acting like a cache. I'll then use .ToArray and then free TList. Ps: @Wagner Landgraf it will be nice allowing TMS Biz products using Spring4D library 😄
  8. Stéphane Wierzbicki

    Delphi Native Code: Fast or Reliable?

    Well this was almost 14 years ago ! I found some reference but no real explanation (tbh I don't care about). http://www.codenewsfast.com/cnf/article/0/waArticleBookmark.7292264
  9. Stéphane Wierzbicki

    Delphi Native Code: Fast or Reliable?

    I remember a change in the way application was displayed in task bar (twice). If I recall it was an issue specific to application built with Delphi.
  10. Stéphane Wierzbicki

    A Component Named xxxx Already Exists.

    Do you have any IDE experts installed? If so, did you try removing them?
  11. Stéphane Wierzbicki

    kuLibrary

    You meant "At the least"? I agree, if he want to attract more users, it is more than necessary to have English content.
  12. Stéphane Wierzbicki

    How to completely hide application from taskbar (on launch)?

    Would you mind creating a quality entry on Embarcadero website? Btw are you working with which Delphi version?
  13. Why don't you just create one metWhySpineditxxxChange event and bind it to all your components change event? This can be done at design time as well as runtime.
  14. Stéphane Wierzbicki

    Delphi Code-Insight problems

    How ?
  15. Stéphane Wierzbicki

    Disabling IDE Theme ? IDE is so slow

    Hello, I'm trying to disable IDE Theme (because it is damn slow). Setting Computer\HKEY_CURRENT_USER\Software\Embarcadero\BDS\21.0\Theme\Enabled entry to Value: 0 brings me hope but : IDE start with an exception: and there are some disgraceful black painted controls and IDE Is there maybe another way to get rid of this ? I seen a lot of people complaining about VCL Theme speed and IDE slow down.... Why the hell Embarcadero do not listen to their customers? BTW I'm working with Delphi Sydney 10.4.1 + all available patches
  16. Hello everyone, I hope this message finds you all in good health! This year and really weird.... But anyway, let's get back to the point. I recently found a little nugget on the Internet developed by the brilliant @Uwe Raabe : it's a Dataset helper that automatically fills in the properties (or even fields) of an object. The source code can be found at this address : https://www.uweraabe.de/Blog/2017/02/09/dataset-enumerator-reloaded/ I have slightly adapted the source code to use TMS Aurelius attributes (using "Column" attribute instead of "DBField" one provided bu Uwe). The Dataset helper works perfectly well "simple" classes such TCustomer = class private [Column('CustNo')] FCustNo: Double; FCompany: string; FAddress1: string; public [DBField('Addr1')] property Address1: string read FAddress1 write FAddress1; property Company: string read FCompany write FCompany; end; But it gets more difficult as soon as my fields are declared this way: TCustomer = class private [Column('CustNo')] FCustNo: Nullable<Double>;; FCompany: Nullable<String>;; FAddress1: string; FEntity: TObject; public [DBField('Addr1')] property Address1: string read FAddress1 write FAddress1; property Company: string read FCompany write FCompany; property Entity: TObject read FEntity write FEntity; end; At runtime application is throwing "Invalid Type Typecast" exception on every TRTTI.GetValue or TRRTI.SetValue procedure TDataSetHelper.TDataSetRecord<T>.TFieldMapping.LoadFromField(var Target: T); begin FRTTIField.SetValue(GetPointer(Target), TValue.FromVariant(FField.Value)); end; procedure TDataSetHelper.TDataSetRecord<T>.TFieldMapping.StoreToField(var Source: T); begin FField.Value := FRTTIField.GetValue(GetPointer(Source)).AsVariant; end; procedure TDataSetHelper.TDataSetRecord<T>.TPropMapping.StoreToField(var Source: T); begin FField.Value := FRTTIProp.GetValue(GetPointer(Source)).AsVariant; end; procedure TDataSetHelper.TDataSetRecord<T>.TPropMapping.LoadFromField(var Target: T); begin FRTTIProp.SetValue(GetPointer(Target), TValue.FromVariant(FField.Value)); end; I guess this is happening because of either reading/writing values from a Record or an Object. I searched (maybe not enough nor thoroughly) the Internet but I wasn't able to solve this by myself. Can someone helps me sorting this out adapting attached unit to handle simple properties types (integer, double, date, string, boolean....) values as well Nullable one ! (and rejects complex types too 🙂 ) I'll really appreciate some help. Kind regards, Stéphane Ps: I have attached modified Uwe's unit file. Ps2: I'm working with Delphi Sydney Aurelius.Dataset.helper.pas
  17. Thanks, looks like I need either some good sleep or vacation !
  18. Thank you Uwe, but problem still arise, the RTTI code is not able to read (or write) value from (or to) a record.
  19. Thank you Attila, but I've already spotted this 😉. The thing is I don't know actually how to do this 🙂 !
  20. Stéphane Wierzbicki

    ANN: Parnassus Parallel Debugger

    Thanks, this looks really promising. I just want to inform you that IDE is unstable since installing this plugin Delphi is runniing on a Windows 2016 TSE server.
  21. Stéphane Wierzbicki

    git and Delphi tooling?

    I'm using TortoiseGit, never used the IDE integrated one...
  22. Stéphane Wierzbicki

    Delphi 10.4.1 and the IDE FIx Pack

    I do not fully agree. I was able to live without IDE FixPack until XE area, when unit scope was introduced. At that time IDE were barely usable, took a lot of time displaying forms at design time, compiling project (the more directories in the search path the worse the IDE react)...
  23. Stéphane Wierzbicki

    Delphi 10.4.1 and the IDE FIx Pack

    And that is a shame...
  24. Stéphane Wierzbicki

    Delphi 10.4.1 and the IDE FIx Pack

    In my case, IDE's are not usable without FixPack. It was so terrible with RIO https://quality.embarcadero.com/browse/RSP-23000 This is still a pain with Sydney. If I have free time, I'll try to make the same tests. Regards
  25. Stéphane Wierzbicki

    IDEFixPack 6.4.4 stop working

    @jbg (sorry to hijack this thread) but will you provide IDEFix pack for 10.4.1 ? IDE is such slow without your work.
×