home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / os / mswindo / programm / misc / 4234 < prev    next >
Encoding:
Internet Message Format  |  1992-12-15  |  1.1 KB

  1. 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
  2. From: duitz@mksol.dseg.ti.com (mitchel n duitz)
  3. Newsgroups: comp.os.ms-windows.programmer.misc
  4. Subject: Re: Borland and Memory
  5. Message-ID: <1992Dec15.144205.16197@mksol.dseg.ti.com>
  6. Date: 15 Dec 92 14:42:05 GMT
  7. References: <1gilfkINNjmd@crcnis1.unl.edu> <BzA2sp.199@newsserver.technet.sg> <BzAyI5.BrH@world.std.com>
  8. Distribution: usa
  9. Organization: Texas Instruments, Inc
  10. Lines: 19
  11.  
  12. I seem to have a point in my code, where I am stuck.
  13.  
  14. I do a lot of new and delete inside my code, and first,
  15. I do see a memory leak somewhere, but I can;t pin it down.
  16.  
  17. The problem I have is that the program just spins.  This
  18. can happen in two different places - either when I declare ofstream ofs(name),
  19. or when I'm in a loop allocating a 2 dimensional array - similar to the
  20. following
  21.  
  22. float **kalamazoo
  23.  
  24. kalamazoo = new float *[150];
  25. for(i=0;i<150;i++)
  26.    kalamzoo[i]=new float[30];
  27.  
  28. It seems to just hang inside this loop.
  29. PLEASE HELP - ANY AND ALL HELP APPRECIATED.
  30. mitch
  31.