Jump to content

Larry Hengen

Members
  • Content Count

    66
  • Joined

  • Last visited

  • Days Won

    1

Larry Hengen last won the day on April 18

Larry Hengen had the most liked content!

Community Reputation

34 Excellent

Recent Profile Visitors

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

  1. Larry Hengen

    Delphi Rio IDE hangs again and again

    I always make sure the IDE AutoSave options for both Editor and Project are enabled and find that I compile often enough to validate my changes that loss of significant work is usually not a problem.
  2. Larry Hengen

    CalDavServer and Client

    Thanks for the links. From what I understand the TMS Cloudpack has a Synchronization component which I will have to investigate. As for Sabre, I ran into that in my google searches but I didn't think it would work for me as it's not a Delphi solution. Will look into it's plugins further...thanks all for your suggestions.
  3. Larry Hengen

    CalDavServer and Client

    Does anyone know of a good CalDAV server and client implementation for Delphi?
  4. Larry Hengen

    Profiler for Delphi

    I agree the price is quite reasonable. Not crazy about the UI, but it's usable. I have been trying to use the ProDelphi 64 bit profiler against a large project using many run-time packages that has lots of code in the DPR. I am not getting the body code profiled. Any tips? I am trying to profile performance from startup to the appearance of the main form including any calls into the run-time packages.
  5. Larry Hengen

    FireDAC Change Notifications

    I was looking at the MS SQL sample project demonstrating FireDAC support for change notifications. Has anyone used this to refresh data-aware lookup combo boxes? What is the real world database overhead? How does it compare to polling? The sample project works fine, but I've noticed that if you launch multiple instances with a unique subscription name, only one gets notified of a change made in SSMS. Any idea why? I was hoping to use the sample app as a POC to help determine SQL Server overhead, and prove that all connected applications will receive change notifications. I am using Berlin 10.2 and the only bug reports seem to be for Rio.
  6. Larry Hengen

    Threading question

    If I am among the suspects I would have to disappoint. I agree that it is likely related to thread ownership of the string passed. That is why in old code you often see the use of a record type or short strings allocated in the calling thread and freed in the receiving thread. Like a flaming bag of dung thrown over a wall...up to the receiver to dispose of it.🤣
  7. Larry Hengen

    Threading question

    I suspect your problem is due to reentrancy. The code is using Windows messages to update to the UI only in the main VCL thread. This is a common old school approach prior to the use of TTHread.Synchronize(). I would venture the issue lies in the fact that Application.ProcessMessages is called in the message handler. As such it will attempt to process any pending messages in the message queue. When the load created by other threads is sufficient, there will be messages in the queue, and AVs will result as the stack variables will be overwritten. Take out the Application.ProcessMessages I would bet the AVs disappear. Calling Application.ProcessMessages is common when the main VCL thread may be very busy, but you want the UI controls to update to reflect progress. It is a CODE SMELL. If you see it, remove it. A background thread should be used for longer running tasks and these days there is no excuse for not using one because with the PPL, OTL or even just TThread it isn't that hard any more. In this case someone who didn't understand how the program works must have added the call to Application.ProcessMessages or thought it might help because the method call to write the log was taking so long. You might want to move the log writing to a background thread as well, and that would keep the entire processing headless, which is an excellent way to ensure it is testable with minimal dependencies.
  8. Larry Hengen

    Delphi Rio IDE hangs again and again

    Go to Tools - Options - select the Editor Options - Code Insight treeview item (at least this is the path in Berlin). You will then see the features I am referring to.
  9. Larry Hengen

    Delphi Rio IDE hangs again and again

    I would suggest turning off features one at a time to try to isolate the issue. It is very likely related to your code, but it doesn't mean the code is incorrect. Cyclic references can can cause issues. I would try disabling error insight, and turn off code insight or increase the delay and see if that helps.
  10. Larry Hengen

    Squint and read: CreateFormFromStings

    It is really discouraging to see the excuse that we can't fix it because it might break someone else's code...again and again. I would encourage the bug reporter to contest the "resolution" on such tickets and put comments I see here on those tickets. Without push back, there will be no change and I don't think the decision was made at a very high level. I bet @Marco wouldn't support that decision publicly.
  11. Larry Hengen

    Interface Completion

    @Jason Smartmuchas gracias!
  12. Larry Hengen

    Interface Completion

    @Jason Smart That is a great approach. Care to share your templates?
  13. Larry Hengen

    Interface Completion

    Yes that is exactly what I am asking. I too have traditionally used class completion on the class and then copied the Getter/Setters to the interface, but ideally the IDE limitations should not prevent you from working the way you wish too, it should facilitate most use cases. You should not have to implement an interface on a class in order to define the interface.
  14. Larry Hengen

    Interface Completion

    When re-factoring code so I can introduce an interface I need to have properties implemented on the interface for compatibility to the existing implementation, so I need setters and getters to be implemented. I f I copy all the property declarations from the existing class and change the Field references to Get/Set methods, I would like to have the Delphi IDE generate the Get/Set methods the same way class completion does so for classes. Is there a way in the Delphi IDE to get Interface declarations "completed" IOW the method declarations generated in the interface? Here is some sample code to illustrate the issue: ICRSAMClient = interface(IInterface) ['{FF3CA485-A0CA-4ED6-8D70-9A757E8E9E0E}'] //property Getters/Setters function GetCRSAMData :TCRSAMDataArray; procedure SetCRSAMData(Value: TCRSAMDataArray); function GetCRSAMDataCount :integer; procedure SetCRSAMDataCount(const Value: integer); function Q22Search(Param: TCRSAMSearchParam; Threshold, RowLimit: double): boolean; property UserId: string read GetUserID write SetUserID; // User ID (authorization) property UserFirstName: string read GetUserFirstName write SetUserFirstName; // User First Name (authorization) property UserLastName: string read GetUserLastName write SetUserLastName; // User Last Name (authorization) property SendingApplication: string read GetSendingApplication write SetSendingApplication; // property SendingFacility: string read GetSendingFacility write SetSendingFacility; // property ProcessingID: string read GetProcessingID write SetProcessingID; // property Data: TCRSAMDataArray read GetCRSAMData write SetCRSAMData; // CRS returned data structure property DataCount: integer read GetCRSAMDataCount write SetCRSAMDataCount; // Data structure object count end;
  15. Larry Hengen

    New free firebird tool... (Didn't make it ;) )

    I have 64 bit Firebird installed but I did not generate the GDS dll as I am using FBClient.dll.
×