Subj : How can I make a very large program run? To : borland.public.cpp.borlandcpp From : "Richard Hufford" Date : Wed Feb 04 2004 05:32 pm I've been working on a very large program for several years, and I believe I've run into a size limitation. My problem is with TPrintDlg, and the dialog does or does not work, depending on what my Windows default printer is. The problem appears to go away if I either delete a few modules from the project file or if I make the STACKSIZE or HEAPSIZE smaller in the project's .DEF file. I think that by making the stack and heap smaller, I must be making room for some other part of the program. This is a 32-bit Windows program, using Borland C++, v. 5.01 and OWL. What kinds of limits could I be running into, and could I avoid these limits if I put much of the code into a DLL? I don't know if this helps, but here's a copy of the summary at the top of the .MAP file: Start Length Name Class 0001:00000000 00011CB3FH _TEXT CODE 0002:00000000 0000396E4H _DATA DATA 0002:000396E4 000000000H _TLSCBA TLSCBA 0002:000396E4 00000002AH _INIT_ INITDATA 0002:0003970E 000000000H _INITEND_ INITDATA 0002:0003970E 000000024H _EXIT_ EXITDATA 0002:00039732 000000000H _EXITEND_ EXITDATA 0002:00039734 000000000H CONST CONST 0002:00039734 0000005A8H _BSS BSS 0002:00039CDC 000000000H _BSSEND BSS Thanks for any ideas. -Richard Hufford .