A
Alex
Hello
Im working on project for my college, nevermind (but it urgent (()...
So I have this code example (in VS 6.0) in main class :
REAL *Input[NUM_DATA];
....
size[br] = r.getSize();
Input[br] = new double [size[br]];
for (i=0; i<size[br]/12; i++) {
for (j =0; j< 12; j++){
Input[br][i*12+j]=r.vector[j];
}
....
delete[] r.values;
//
size iz a static field witch contains a number of data in object r. Br
is variable which values go from 0 to NUM_VALUES.
when I execute my program, it crashes. I have tried to put breakpoints
and Debug it and Ive found out that it crashes in line
Input[br][i*12+j]=r.vector[j];
when br comes to 3. Debug message is:
Loaded 'ntdll.dll', no matching symbolic information found.
Loaded 'C:\WINDOWS\system32\kernel32.dll', no matching symbolic
information found.
Loaded 'C:\WINDOWS\system32\shimeng.dll', no matching symbolic
information found.
First-chance exception in NN.exe (NTDLL.DLL): 0xC0000005: Access
Violation.
First-chance exception in NN.exe: 0xC0000005: Access Violation.
How can I fix this? I dont know if it matters, but size[br] values are
very high / around 8500, so "new double[size[br]]" will have to
allocate pretty much space in memory. Is there any limit for allocation
of dynamic fields?
(I doubt in line "Input[br] = new double [size[br]];" when br comes to
3, when no allocation is possible, so it crashes in line I mentioned-
when it wanted to put value from r into "nothing"
But before I change whole code, I wanted to ask if Im wrong..pls answer
me soon).
Thank you a lot.
Aleksandra
Im working on project for my college, nevermind (but it urgent (()...
So I have this code example (in VS 6.0) in main class :
REAL *Input[NUM_DATA];
....
size[br] = r.getSize();
Input[br] = new double [size[br]];
for (i=0; i<size[br]/12; i++) {
for (j =0; j< 12; j++){
Input[br][i*12+j]=r.vector[j];
}
....
delete[] r.values;
//
size iz a static field witch contains a number of data in object r. Br
is variable which values go from 0 to NUM_VALUES.
when I execute my program, it crashes. I have tried to put breakpoints
and Debug it and Ive found out that it crashes in line
Input[br][i*12+j]=r.vector[j];
when br comes to 3. Debug message is:
Loaded 'ntdll.dll', no matching symbolic information found.
Loaded 'C:\WINDOWS\system32\kernel32.dll', no matching symbolic
information found.
Loaded 'C:\WINDOWS\system32\shimeng.dll', no matching symbolic
information found.
First-chance exception in NN.exe (NTDLL.DLL): 0xC0000005: Access
Violation.
First-chance exception in NN.exe: 0xC0000005: Access Violation.
How can I fix this? I dont know if it matters, but size[br] values are
very high / around 8500, so "new double[size[br]]" will have to
allocate pretty much space in memory. Is there any limit for allocation
of dynamic fields?
(I doubt in line "Input[br] = new double [size[br]];" when br comes to
3, when no allocation is possible, so it crashes in line I mentioned-
when it wanted to put value from r into "nothing"
But before I change whole code, I wanted to ask if Im wrong..pls answer
me soon).
Thank you a lot.
Aleksandra