Re: Access violation after nullifiying and again allocating pointer
- From: Klemens Barfus <klemens.barfus@xxxxxxxxxxxxxxxxxxx>
- Date: Thu, 08 Sep 2005 15:25:58 +0200
Thanks for your answer, Jan !
Now I have checked the runtime error, which appears when allocating the pointer array, where the proramm crashes. It is runtime error 41 - which means that there is not enough virtual memory.
But it appears if I replace the nullify with a deallocate, too.
Klemens
Jan Vorbrüggen wrote:
You should be aware that nullifying the pointer does _not_ deallocate the memory that now, possibly, has become inaccessible to the program. Of course, a deallocate also nullifies the pointer. So, perhaps you program is running out of memory, and VF 5's RTL is unkind in just crashing instead of providing a useful error message?
BTW, VF 5 is....well...old. Why not use, for instance, the non-commercial license for the Intel compiler? There was some strange wording in that license recently with regard to academic, though...
Jan
.
- Follow-Ups:
- Re: Access violation after nullifiying and again allocating pointer
- From: Jan Vorbrüggen
- Re: Access violation after nullifiying and again allocating pointer
- References:
- Access violation after nullifiying and again allocating pointer
- From: Klemens Barfus
- Re: Access violation after nullifiying and again allocating pointer
- From: Jan Vorbrüggen
- Access violation after nullifiying and again allocating pointer
- Prev by Date: Re: Access violation after nullifiying and again allocating pointer
- Next by Date: Re: Access violation after nullifiying and again allocating pointer
- Previous by thread: Re: Access violation after nullifiying and again allocating pointer
- Next by thread: Re: Access violation after nullifiying and again allocating pointer
- Index(es):
Relevant Pages
|