Jump to content

Jeff Steinkamp

Members
  • Content Count

    30
  • Joined

  • Last visited

Everything posted by Jeff Steinkamp

  1. Jeff Steinkamp

    Include External Text Files in Output Folder

    I've dropped those files into the project manager. I see nothing that resembles the Deployment screen you show above. I get this: But, at this stage of the game I'm not even close to project deployment, I am barely into the development phase. But I do need these files in the output folder for continued development. I'm not sure exactly how the build events are helpful unless there are some commands that can be used to copy these files during the pre-build event.
  2. Jeff Steinkamp

    FireDac variable column length overflow

    I am getting this error anytime the county field length seems to exceed 20. In the table structure, that field is defined as a VARCHAR(32). So, what is truncating this field to a maximum length of 20, and how do I fix this. I can set StrsTrim2Len and that will eliminate the error and truncate the data in the field to 20 characters, but that is not the behavior I want. The database is SQLite.
  3. Jeff Steinkamp

    Thread or ProcessMessage?

    I am returning to Delphi and Object Pascal after a 15+ year hiatus over in Visual Studio with C# and VB. I think the last IDE I used might have Delphi 2 or 3. So, working my way around this 10.4 monster has been somewhat of a challenge. I have built a File Download Dialog with a progress bar and some labels to show total byte count and a running total of bytes downloaded. I'm using the Indy IDHttp component with the SSL handler to fetch the files and the associated events. I am updating the UI with the Application.ProcessMessage pump, but I'm not sure this is the proper way to update a UI and maybe threading this is the proper solution. If that is the case, then can someone point me in the right direction on how to properly use threads as my google search have turned up a lot of 'mis-information' to say the least. This seems to work fine with a 25MB file, but I'm not sure how it will work with 350MB file!! I can upload my code if someone is interested.
  4. Jeff Steinkamp

    Thread or ProcessMessage?

    Thanks for your updates!! I was concerned about this, and I will look into getting rid of the Anonymous Thread and replacing it. First, I will see if I can duplicate that behavior. I think this will suffice for my purposes and I should be able to use this in other projects that I am considering.
  5. Jeff Steinkamp

    Thread or ProcessMessage?

    I took a page out of this Indy demo and applied it to my code, and once I got the FileStream creating straightened out for the thread, it is functioning quite well indeed!. I have attached the file for that unit if you want to have a look and see if there is anything that can be done differently. FileDownload.dfm FileDownload.pas
×