Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9183431
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T18:48:03+00:00 2026-06-17T18:48:03+00:00

I really lack experience on developing things on Windows, and I may have missed

  • 0

I really lack experience on developing things on Windows, and I may have missed some obvious things, try to stay calm 🙂

I have an application (Qt C++) which uses some .dlls from its own path (I mean I deliver those .dlls along with the .exe). When I deliver the app, I compress the dlls via upx. It dramatically compresses them and I can use those dlls without decompressing.

I have the impression that I am doing something wrong but it just works by chance, so I wanted to be sure, is it ok to use a compressed dll? Or should I expect unpredictable problems at anytime? (This is being the main question)

If .dlls can be used in compressed mode so why the earth do we have them uncompressed in the first place.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T18:48:05+00:00Added an answer on June 17, 2026 at 6:48 pm

    This is not something that “works by chance”, UPX is intended to compress Win32-PE (and many other formats), whether that’s executables or DLLs.

    As for “Is it OK?”, well yes, of course it is “OK”, as long as you don’t violate another party’s license.
    This is highly unlikely to happen with anything related to Qt, but in principle, it is a possibility. One could for example be using some DLLs which have a license clause such as “distribution in binary form, blah blah, not allowed to modify”. Say, something like a MSVC or DirectX redistributable, or some graphic card vendor’s proprietary API. In any case, it’s not a mistake to keep this in mind and check the licenses before risking to violate them.

    Wording your question “Is it OK?” slightly different: “Is it wise?”, the answer is: probably not. A few megabytes extra on the disk normally don’t matter a lot. When you pack everything into an installer, and a user downloads it over the internet, the data is compressed anyway, so it’s the same in that respect.

    However, compression, whether you use UPX or another executable packer, or Windows’ filesystem compression, has side effects. It causes additional address space fragmentation, it disables asynchronous transfers, and it forfeits the operating system’s ability to discard pages from the DLL from the working set and to transparently reload them from the PE image upon access.

    That last sentence means the operating system must make an allocation in the page file and it must write pages to the page file when your process’ working set is moved out to make room for something else. There is no other way. Now what if the user has disabled page files…

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Really basic question I'm sure for some of you Java heads out there. I
Really ripping my hair out on this one. I have a JAAS Authentication Provider
Really quick jQuery question... I have this function: $(document).ready(function() { $('a#show1').click(function() { $('.item1').toggle(1000); return
I spent hundreds of ours developing an Adobe AIR Application with Flex 4.0 and
How should I really go about implementing the following? I will have to handle
The lack of expression trees in Compact Framework has bugged me for some time
This bug or my lack-of-knowledge or smth else is really starting to bother me.
I'm a bit baffled here. But it might just be my lack of experience.
In a recent question I was encouraged to try using some basic data structures
JCrop it is a really great plugin but unfortunately lack of Zoom-In Zoom-Out feature.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.