CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 12 of 12

Threaded View

  1. #2
    Join Date
    Oct 2008
    Posts
    1,456

    Re: How best to prevent memory exhaustion in time-critical dynamic programming?

    Quote Originally Posted by GeoRanger View Post
    the performance begins to drop on some inputs and the program crashes due to memory exhaustion (or maybe fragmentation???) on others.
    can't you catch the memory allocation error and the performance decrease at runtime and then shrink the memory consumed by the algorithm accordingly ? I ask, because you alluded to a time critical code yet running on the seconds order-of-magnitude time scale, hence such an auto profiling/error handling code should not impact the running time significantly anyway ...
    Last edited by superbonzo; February 13th, 2013 at 04:33 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured