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 3988416
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T06:14:57+00:00 2026-05-20T06:14:57+00:00

I have been requested to solve a problem of memory usage of a CAD

  • 0

I have been requested to solve a problem of memory usage of a CAD application written on Visual C++ that occurs when trying to export the drawing to PDF3D.

Exporting feature behaves well for simple models or only parts of a complex model, but not for an whole complex model.

We are using the U3D sourceforge project for creating the U3D object; after we insert it into the PDF. It is the object creating part that is problematic.

The U3D sourceforge project is a library built in C++ for use in C++ too that is dead since 2007, has a poor documentation and its samples’ collection is far from enough! In the TODO list of the project is also stated that it has memory issues!

So I have been asked to attack the problem by two sides:

  1. Do maintenance of the U3D code.

  2. Change the way the application interacts with the U3D library.

They also said the side 2. preferrable, as it is under our control.

When trying to solve the problem, I got two conclusions:

  1. I am strongly suspecting that the U3D method EncodeX is responsible for memory misusage.

  2. I tried a lot of changes of small things for the way the apllication interacts with the lib (changing compression parameters, flags, etc) and everytime the result was memory over-allocation.

So the question is: Is it worth to continue using this library? The code of it is not a joy to read… Or maybe it could be a good idea to look at other libs for the same purpose?
I didn’t explore them, but I am seriously thinking about switching to VCGlib or libharu… please suggest something else if you know that is good.

The other alternatives would be: use the Visual Technologies PDF3D exporter, which has an inacceptable cost, or to develop my own implementation of an U3D exporter,which would have the disadvanges of being a very limited set of the U3D funcionality and also it could’nt get ready for the expected deadline.
So take these options as forbidden.

I really need help to decide what’s best.

Thanks in advance,
Sérgio

  • 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-05-20T06:14:57+00:00Added an answer on May 20, 2026 at 6:14 am

    After some desperation and bad-sleeping nights, trying to discovery memory leaks or some other memory troubles, we concluded for the most practical solution:

    Extract only the code part needed to load a file and export it as U3D to a small program and make the main CAD application call it. Even though it is not the most elegant solution, it really works well – none of the processes reaches memory usage even close to the 2 GB barrier.

    I wish I had been authorized to solve things this way earlier. I proposed some other things like:

    • migrating to 64 bits

    • use an option that modern Windows versions support for extending the memory limit of each process to more than 2 GB

    None of these two solutions were acceptable, because it would be needed to force some customers to reinstall already-running hardware or software.

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

Sidebar

Related Questions

I have been trying to solve this problem all day, I googled a lot,
I have been trying to solve this problem for three days now, it's really
For some time I have been trying to solve fairly common problem consisting of
I've been trying to solve this problem all day, and I've read some conflicting
I've been trying to solve this problem for about a week now. I posted
We have been requested to stream a single video (+500MB) from a web site.
I have been dealing with a problem for some time and would really appreciate
I've been struggling with the following problem for some days now. I have found
I have an application that connects to a database and can be used in
I have been working on a small Chrome extension with a problem I cant

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.