problems debugging big-heap apps with CW Pro 3

problems debugging big-heap apps with CW Pro 3

Post by Doug Fri » Fri, 29 May 1998 04:00:00



Anybody had problems debugging large-heap applications using
the CW Pro 3 integrated IDE/de*?

I have several programs with large arrays (75-150MB) declared
as heap globals, not pointers to malloc()'ed memory. The
CW Pro 2 de* doesn't have any problems debugging these
applications, but the CW Pro 3 IDE/de* brings up the
debugging "Thread 0x64" window and then just sits there with
a wait cursor. After 30 minutes, still no sign of activity.
The programs run fine, as long as I don't invoke the de*.

Changing the array declarations to pointers with calloc()'s
to grab the memory makes the problem go away, but this isn't
what I want to do. I've tried starting the IDE with 100MB
RAM allocated to it, and it gets farther along in the debugging
process (i.e., it brings up the source code window now), but
still hangs up.

This is just plain old C code, no MacOS Toolbox calls or
anything. I'll file a bug report if I don't hear from anybody
about this. (If you try the example, be sure to set the
Target:Heap Size to 70000 or so.)

/* fatboy sample code */

#include <stddef.h>
#include <stdlib.h>
#include <stdio.h>

#define too_many  8000000

double fatboy[too_many];
/* double* fatboy; */

int main(void)
{
    fprintf(stdout, "starting...\n");

/*
    fatboy = (double*) calloc(too_many, sizeof (double));
    if (fatboy == NULL) {
        fprintf(stdout, "error allocating fatboy[]\n");
        exit(1);
    }
*/

    fatboy[0] = 0.0;

    fprintf(stdout, "finished.\n");

    return 0;

Quote:}

--
--
Doug Frick


 
 
 

problems debugging big-heap apps with CW Pro 3

Post by Sean Humme » Sat, 30 May 1998 04:00:00




>Anybody had problems debugging large-heap applications using
>the CW Pro 3 integrated IDE/de*?

>I have several programs with large arrays (75-150MB) declared
>as heap globals, not pointers to malloc()'ed memory. The
>CW Pro 2 de* doesn't have any problems debugging these
>applications, but the CW Pro 3 IDE/de* brings up the
>debugging "Thread 0x64" window and then just sits there with
>a wait cursor. After 30 minutes, still no sign of activity.
>The programs run fine, as long as I don't invoke the de*.

>Changing the array declarations to pointers with calloc()'s
>to grab the memory makes the problem go away, but this isn't
>what I want to do. I've tried starting the IDE with 100MB
>RAM allocated to it, and it gets farther along in the debugging
>process (i.e., it brings up the source code window now), but
>still hangs up.

>This is just plain old C code, no MacOS Toolbox calls or
>anything. I'll file a bug report if I don't hear from anybody
>about this. (If you try the example, be sure to set the
>Target:Heap Size to 70000 or so.)

>/* fatboy sample code */

>#include <stddef.h>
>#include <stdlib.h>
>#include <stdio.h>

>#define too_many  8000000

Maybe you should try just allocating this on the fly instead of expecting
the compiler to set it up for you.

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
                   Sean Hummel
                 RealNetworks Inc.
           Core Technologies Developer

"The trouble with political jokes is that they get
elected."

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

 
 
 

1. Constructor application in CW Pro for java - Big problem

Problem
I created an interface of an applet whith the help of constructor for
java.
When i run the applet using Metrow. Java, there is no problem. But when
itry it with netscape, it does not run because of a Locate Error ( The
problem is the Reanimator.Locator method).
Can someone explain me this very surprinsing problem and if possible
solve it ?

2. Held Needed: Implied Carriage Control

3. Setting CLASSPATH when running/debugging an app(let) under CW pro for Java 5

4. OS/2 Warp 4.0 - Selective Install locks up

5. Big CW Pro Bug with PP and MSL-Streams

6. Action Printer 4000 driver?

7. PPC Stand-alone code resources BIG w/ CW Pro

8. win32s+os/2+Win9x

9. CW Acacemic Pro 9 (Gold) => CW Pro 1 -- possible problems???

10. BIG CW Pro Bug with PowerPlant and MSL-Streams

11. Problem debugging java apps in CW 6

12. Debugging problem with CW Pro 5