Delphi #179 – TZipFile FileComment Bug



Delphi #179 – TZipFile FileComment Bug

Delphi #179 - TZipFile FileComment Bug

http://LearnDelphi.tv TZipFile allows you to handle zip files in Delphi without relying on a third party library – it’s pretty good, but I’ve found a bug in it. In this video, I explain the bug, create a test project to confirm it, then create a fix. This bug will probably be the same for FileName and ExtraField.

You may have noticed that when I tried to free the TMemoryStream (at 11:20) I got an access violation, which had me confused during the video. What I needed to do was close the zip file first (z.close), then I could free the memory stream (ms.free).

Alister Christie is a Delphi MVP (Most Valued Professional), Consultant, Developer, Trainer, Presenter, and Author. He has presented at ADUG (Australasian Delphi Users Group) Symposia and Code Rage Conferences for many years. Alister holds a degree in Mathematics and Computer Science from Victoria University, Wellington. He lives near Wellington, New Zealand.

On this YouTube Channel, Alister has created many hours of video tutorials to help you learn Delphi Programming in efficient and effective ways. Using his lessons, you will program faster and better, skills applicable for beginners through to experts wanting to expand their programming and coding proficiency.

Video topics by Alister Christie include VCL (Visual Component Library), FireMonkey, FireDAC, Cross-platform, Android, iOS (iPad or iPhone Operating System), Mac OS/X, Windows, IoT (Internet of Things), Algorithms, and more.

If you wish to increase your Delphi programming skills further, Alister has commercial online video courses designed to build your understanding and proficiency. These are available from Embarcadero Academy https://www.embarcaderoacademy.com/courses/author/97421, Udemy https://www.udemy.com/user/alister-christie/, or from http://learndelphi.tv/products

For more Delphi video content by Alister Christie go to his website http://LearnDelphi.tv where you will find informative Delphi videos ranging from beginner to expert

Subscribe to this Youtube channel and never miss a video: https://www.youtube.com/user/codegearguru
Visit the Website: http://LearnDelphi.tv
Contact Alister Christie on LinkedIn: https://linkedin.com/in/alisterchristie/
Follow on Twitter: https://twitter.com/AlisterChristie
Follow on Facebook: https://www.facebook.com/LearnDelphitv/
Follow on Instagram: https://www.instagram.com/christiealister/
Buy from Embarcadero Academy: https://www.embarcaderoacademy.com/courses/author/97421
Buy from Udemy: https://www.udemy.com/user/alister-christie/
Buy from LearnDelphi: http://learndelphi.tv/products

Buy Delphi here: https://www.embarcadero.com/products/
Get the FREE Delphi Community Edition: https://www.embarcadero.com/products/delphi/starter

Comments are closed.