# runtime error

**URL:** <https://forums.developer.nvidia.com/t/runtime-error/132805>\
**Category:** Legacy PGI Compilers (archived)\
**Created:** [March 2, 2012, 5:39am UTC](https://forums.developer.nvidia.com/t/runtime-error/132805 "2012-03-02T05:39:23Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![kuldeep\_gupta](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@kuldeep\_gupta](https://forums.developer.nvidia.com/u/kuldeep_gupta)\
**Post date:** [March 2, 2012, 5:39am UTC](https://forums.developer.nvidia.com/t/runtime-error/132805/1 "2012-03-02T05:39:23Z")

</div>

this is my program

```nohighlight
program cpf
implicit none
integer n,m,b,k,D1,i,j,r,a,p,p1
complex, dimension(2,2) :: Y
real ,dimension(2,2) :: Yabs,angle
real ,dimension(D1,1) :: deltaAp,deltaAc
real, dimension(1,2) :: V,d
real, dimension(:,:) :: dia1
real v2,d2,Lm,it,g,pp0,qq0
v2=1.004
d2=0.013
Lm=0
it=0
g=1
n=2
m=0
D1=2*n-2-m+1
b=10
pp0=0.1
qq0=0
k=1
r=10
a=10
p=0
p1=0
Y(1,1)=(0,-10)
Y(1,2)=(0,10)
Y(2,1)=(0,10)
Y(2,2)=(0,-10)
Yabs=abs(Y)
angle=atan2(aimag(Y),real(Y))

do i=1,D1
deltaAp(i,1)=0
deltaAc(i,1)=1
end do

end program cpf

```

it is running successfully but after sometime a message comes  
\_\_\_.exe file has stopped working…

reason is 0xC0000374: A heap has been corrupted.

where the problem is??

---

_[View the full topic](https://forums.developer.nvidia.com/t/runtime-error/132805)._
