bad_alloc



Hello everyone,


I am wondering except when there is no memory on heap, are there any other situations when we will get bad_alloc exceptions? For example, invalid input of the size (e.g. very huge number or zero or negative number) will cause exception?


thanks in advance,
George

EggHeadCafe - .NET Developer Portal of Choice
http://www.eggheadcafe.com
.



Relevant Pages

  • Re: bad_alloc
    ... I am wondering except when there is no memory on heap, ... situations when we will get bad_alloc exceptions? ... Note however that you shouldn't rely on this mechanism to detect invalid ...
    (microsoft.public.win32.programmer.kernel)
  • Re: bad_alloc
    ... :: any other situations when we will get bad_alloc exceptions? ... invalid input of the size (e.g. very huge number or zero ... A bad_alloc tells you that a memory allocation failed. ...
    (microsoft.public.vc.language)
  • Re: xmalloc string functions
    ... a bit over three quarters of the memory, Lotus Notes, another email ... I have good reasons for using multiple email clients ... propagating the error conditions back to the caller. ... event processing against oom exceptions either. ...
    (comp.lang.c)
  • Re: Address Verification
    ... called correctly is only w/in the memory manager itself. ... not loaded in RAM (i.e P bit of its corresponding entry in the page ... MmIsAddressValid() returns FALSE straight away. ... but this throws exceptions on ...
    (microsoft.public.development.device.drivers)
  • Re: Address Verification
    ... i discussed this w/the owner of the memory manager. ... not loaded in RAM (i.e P bit of its corresponding entry in the page ... MmIsAddressValid() returns FALSE straight away. ... but this throws exceptions on ...
    (microsoft.public.development.device.drivers)