|
From: Ioannis V. <no...@ho...> - 2002-06-09 18:07:20
|
> -----Original Message----- > From: dev...@li... > [mailto:dev...@li...] On Behalf > Of Raghunath Marella.S > Sent: Sunday, June 09, 2002 12:42 PM > To: dev...@li... > Subject: [Dev-C++] memory violation.... > > > Hi, > > I have been facing a simple but strange problem in my > C++ code. I have declared an integer pointer and whose > size has been fixed at a large value dynamically. > Like... > > seneles = 1000,ncn = 6; You forgot the type, e.g. int. > int *EleTopo = new int[seneles*ncn]; > > Once this block is filled with valid data, once those > values are printed and observed they seem to be > correct. But in between of the code, retrieving the > same had returned some junk values for some of the > indexes. Obviously you are doing something wrong. We must see the code. Ioannis * Ioannis Vranos * Programming pages: http://www.noicys.cjb.net * Alternative URL: http://run.to/noicys |