Re: Reasons for an exception thrown at "new"

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: Kalevet (Kalevet_at_discussions.microsoft.com)
Date: 10/20/04


Date: Wed, 20 Oct 2004 08:49:08 -0700

Thanks, Jochen.
I wasn't familiar with the exception record option, but now that I am it
didn't get me any further. I've installed a custom translator, but non of the
exceptions had gone through it. Perhaps this has some meaning?
I've noticed the exceptions are thrown when the process virtual memory get
as high as about 1.7GB. The server has 2G of RAM and about 2 more G's of
virtual memory, so the it's definitly not out of memory. I have also tried to
make some large allocation before the throwing constructor, just to see if it
throws as well, but it doesn't.
Any other ideas, then?

"Jochen Kalmbach" wrote:

> Hi =?Utf-8?B?S2FsZXZldA==?=,
>
> > Any suggestions as to what could be the source of an exception thrown
> > at a "new" call, then?
>
> Look at the expection record and tell us the reason...
>
> There might be different reasons...
>
> --
> Greetings
> Jochen
>
> My blog about Win32 and .NET
> http://blog.kalmbachnet.de/
>



Relevant Pages

  • Re: Reasons for an exception thrown at "new"
    ... 1.7Gig of ram, given the fragmentation of the address space problems, ... > I wasn't familiar with the exception record option, but now that I am it ... > virtual memory, so the it's definitly not out of memory. ... >> Look at the expection record and tell us the reason... ...
    (microsoft.public.vc.language)
  • Re: Reasons for an exception thrown at "new"
    ... > I wasn't familiar with the exception record option, ... I've installed a custom translator, ... > and about 2 more G's of virtual memory, so the it's definitly not out ... Can you please tell us the exception??? ...
    (microsoft.public.vc.language)
  • Re: Reasons for an exception thrown at "new"
    ... >> I wasn't familiar with the exception record option, ... I wish I had known what kind of exception was thrown. ... I got deeper and deeper into the code this way. ...
    (microsoft.public.vc.language)
  • Re: Coding inside the debugger
    ... but why isn't the test written so that the reason it fails is ... If something fails in tests like these, ... public void testCreateWithDefaultthrows Exception { ... Ghostworld world = worldWithClass; ...
    (comp.object)
  • Re: Defensive Programming - Where do you Draw the Line?
    ... try/catch or try/catch/finally blocks. ... well-written exception code, try-finally is far more common than try-catch. ... exception is incredibly unlikely to occur, is there any good reason to ... It should be the other way round - if your method fails to execute, ...
    (microsoft.public.dotnet.languages.csharp)