Page 1 of 1

Module size limit?

PostPosted: Thu Jan 29, 2009 9:38 pm
by ORWoody
I have a macro that is composed of multiple large and somewhat similar bloated modules. Is there a strict line limit for modules? Each one has 8000 lines or so.
When I add a call at the same location in each of the modules, I begin getting a heap overflow message. Up until that single add, the modules all compile without a problem.
Would anyone be willing to look at one of the modules and see if the problem can be resolved or if I've hit a limit?

PostPosted: Sat Jan 31, 2009 5:23 am
by rod_walker
I would be willing to check out one of the modules. Highlight the problem area. I do not think you have hit a limit; but DCAL is an old compiler.
Regards
Rod Walker.

Apologies for delayed reply; but we have had successive days of 47 deg Celsius and air-con out.

PostPosted: Tue Feb 03, 2009 9:02 am
by Jsosnowski
If I understand correctly, you are failing during the compile process. Instead of attempting the compile as a single DOS operation, try it separately using DCC1 & DCC2 instead of DCC to compile units and join them in a single step. This has usually worked for me. You can stremaline the process by using batch files to manage the process.

macro procedural limiy

PostPosted: Wed Feb 04, 2009 1:04 am
by rod_walker
I checked out one of Woody,s modules which had over a 110 procedures.
DCC1 crashed. Breaking the module into two separate modules solved the problem

Regards
Rod Walker

PostPosted: Fri Feb 06, 2009 12:01 am
by Jsosnowski
I'm not surprised. The compiler goes back to DOS and probably is limited in how it uses memory.

By the way it was -1C here in Cleveland, Ohio, USA today and my AC was out too!