home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!olivea!spool.mu.edu!yale.edu!qt.cs.utexas.edu!cs.utexas.edu!csc.ti.com!tilde.csc.ti.com!mksol!duitz
- From: duitz@mksol.dseg.ti.com (mitchel n duitz)
- Newsgroups: comp.os.ms-windows.programmer.misc
- Subject: Re: Borland and Memory
- Message-ID: <1992Dec15.144205.16197@mksol.dseg.ti.com>
- Date: 15 Dec 92 14:42:05 GMT
- References: <1gilfkINNjmd@crcnis1.unl.edu> <BzA2sp.199@newsserver.technet.sg> <BzAyI5.BrH@world.std.com>
- Distribution: usa
- Organization: Texas Instruments, Inc
- Lines: 19
-
- I seem to have a point in my code, where I am stuck.
-
- I do a lot of new and delete inside my code, and first,
- I do see a memory leak somewhere, but I can;t pin it down.
-
- The problem I have is that the program just spins. This
- can happen in two different places - either when I declare ofstream ofs(name),
- or when I'm in a loop allocating a 2 dimensional array - similar to the
- following
-
- float **kalamazoo
-
- kalamazoo = new float *[150];
- for(i=0;i<150;i++)
- kalamzoo[i]=new float[30];
-
- It seems to just hang inside this loop.
- PLEASE HELP - ANY AND ALL HELP APPRECIATED.
- mitch
-