Author Topic: [Solved] Application triggers message about unsupported 16-bit application  (Read 934 times)

Bart

  • Hero Member
  • *****
  • Posts: 5776
    • Bart en Mariska's Webstek
Re: Application triggers message about unsupported 16-bit application
« Reply #15 on: August 08, 2026, 11:05:18 pm »
I still think that Windows half-way through the download kills the download so when after that kill my program tries to rename it (via RenameFile) then the incorrect Windows message appears.

Maybe the download is just corrupt for some other reason.
If Windows would cut it down, it would make more sense if it either deleted it, or fully downloaded itand put it in quarantaine (or lockt it some other way).
It may be worth while replacing the new (to be donwloaded) executable with some other (large) file and see what happens?

Bart

Josh

  • Hero Member
  • *****
  • Posts: 1463
Re: Application triggers message about unsupported 16-bit application
« Reply #16 on: August 09, 2026, 12:18:22 am »
Hi

If you download your application.xyz via a browser or ftp to you documents folder, by-passing your 'utilty'

then check its size and upload it to VirusTotal , to see if any virus engine flags anything.

if its locatable via https, you can give VirusTotal the link and it may hi-light something else.

If all that is fine, then look at your utility, it could be something simple ie your reading the stream as a block of 64MB and writing to disk, but now your xyz has exceeded 64Mb is size and its not completing the following blocks, ie truncates the size.

Do not upload your file to VirusTotal if it contains sensitive, private, or proprietary data. VirusTotal shares uploaded files with the global cybersecurity community for analysis. But if its for other users to download, this shouldn’t be a problem.

addition, make sure your web server hasn’t had any updates recently, ie, changing php version, each php version has a maximum file download size, set in its ini file.
« Last Edit: August 09, 2026, 12:24:51 am by Josh »
The best way to get accurate information on the forum is to post something wrong and wait for corrections.

JanRoza

  • Hero Member
  • *****
  • Posts: 755
    • http://www.silentwings.nl
Re: Application triggers message about unsupported 16-bit application
« Reply #17 on: August 09, 2026, 12:22:31 am »
@Bart
I will do some more experimenting, first with another large file and then with your splitted solution.
May take a few days as I have some other things to do, but I will report back.
OS: Windows 11 / Linux Mint 22.3
       Lazarus 4.6 RC FPC 3.2.2
       CodeTyphon 8.90 FPC 3.3.1

JanRoza

  • Hero Member
  • *****
  • Posts: 755
    • http://www.silentwings.nl
Re: Application triggers message about unsupported 16-bit application
« Reply #18 on: August 09, 2026, 12:26:52 am »
@Josh: the download is just 14 mb so size should not be a problem. Let me first try Bart's suggestions.
OS: Windows 11 / Linux Mint 22.3
       Lazarus 4.6 RC FPC 3.2.2
       CodeTyphon 8.90 FPC 3.3.1

JanRoza

  • Hero Member
  • *****
  • Posts: 755
    • http://www.silentwings.nl
Re: Application triggers message about unsupported 16-bit application
« Reply #19 on: August 10, 2026, 09:29:03 pm »
@Bart: Thank you so much for your exesplit, that is really an beautiful solution.
It works but there is a next hickup further in the traject, but that probably has to do with my program logic and -luckily- nothing to do with Windows. So for now this problem is solved and I will debug my program some more.
OS: Windows 11 / Linux Mint 22.3
       Lazarus 4.6 RC FPC 3.2.2
       CodeTyphon 8.90 FPC 3.3.1

 

TinyPortal © 2005-2018