Click here to Skip to main content
15,905,867 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: SetWindowRgn problems Pin
Ceri14-Jan-03 0:06
Ceri14-Jan-03 0:06 
GeneralRe: SetWindowRgn problems Pin
jhwurmbach14-Jan-03 0:08
jhwurmbach14-Jan-03 0:08 
GeneralRe: SetWindowRgn problems Pin
Hans Ruck14-Jan-03 1:17
Hans Ruck14-Jan-03 1:17 
GeneralRe: SetWindowRgn problems Pin
Joaquín M López Muñoz14-Jan-03 0:02
Joaquín M López Muñoz14-Jan-03 0:02 
General[OT] Determine the compiler-version Pin
tabor2513-Jan-03 23:09
tabor2513-Jan-03 23:09 
GeneralRe: [OT] Determine the compiler-version Pin
Oliver Anhuth13-Jan-03 23:20
Oliver Anhuth13-Jan-03 23:20 
GeneralRe: [OT] Determine the compiler-version Pin
tabor2513-Jan-03 23:53
tabor2513-Jan-03 23:53 
GeneralFirst-chance exception: Mem violation Pin
boon kian13-Jan-03 22:56
boon kian13-Jan-03 22:56 
Hi,

can anyone help me with this prob ??? I am at a total lost

I have several pointers (using them as matrix) and i have always allocate mem to them using the "new" operator. However i encounter a strange problem with one of them (temp). Whenever my program trys to access the pointer 'temp' up to a location, it would generate an "First-chance exception: 0xC00000005: Access violation" error.

an eg of the code is like this:

double * temp

temp = new double (5000);

for (i = 0; i < 5000; i ++)
{
temp[i] = x*y;
}

I use breakpoints and see that the index of temp from 1 to 2577 is valid. However when i > 2578 all the values are invalid ("CXX0030: Error: expression cannot be evaluated") and hence causing my program to hit the ""First-chance exception: 0xC00000005: Access violation" error. This seems so strange to me and i am at a lost of what to do......

Can anyone tell me why is it so ?? and how can i solve this problem??
Thank you very much for your kind attention !!
GeneralRe: First-chance exception: Mem violation Pin
Hans Ruck13-Jan-03 23:11
Hans Ruck13-Jan-03 23:11 
GeneralRe: First-chance exception: Mem violation Pin
boon kian13-Jan-03 23:17
boon kian13-Jan-03 23:17 
Generalendless loop interruption Pin
geluionescu13-Jan-03 22:46
geluionescu13-Jan-03 22:46 
GeneralRe: endless loop interruption Pin
Joaquín M López Muñoz13-Jan-03 23:48
Joaquín M López Muñoz13-Jan-03 23:48 
GeneralRe: endless loop interruption Pin
geluionescu14-Jan-03 1:08
geluionescu14-Jan-03 1:08 
GeneralRe: endless loop interruption Pin
Ceri14-Jan-03 0:04
Ceri14-Jan-03 0:04 
GeneralRe: endless loop interruption Pin
geluionescu14-Jan-03 3:21
geluionescu14-Jan-03 3:21 
GeneralRe: endless loop interruption Pin
Ceri14-Jan-03 4:55
Ceri14-Jan-03 4:55 
GeneralRe: endless loop interruption Pin
geluionescu14-Jan-03 5:45
geluionescu14-Jan-03 5:45 
GeneralRe: endless loop interruption Pin
Ceri14-Jan-03 22:06
Ceri14-Jan-03 22:06 
QuestionHow can I get the standard size of a control before creation ? Pin
JohnMcL13-Jan-03 22:46
JohnMcL13-Jan-03 22:46 
AnswerRe: How can I get the standard size of a control before creation ? Pin
Alvaro Mendez14-Jan-03 7:10
Alvaro Mendez14-Jan-03 7:10 
GeneralRe: How can I get the standard size of a control before creation ? Pin
JohnMcL15-Jan-03 14:10
JohnMcL15-Jan-03 14:10 
GeneralNon ascii character in CSV file Pin
Alberto Bar-Noy13-Jan-03 22:30
Alberto Bar-Noy13-Jan-03 22:30 
GeneralRe: Non ascii character in CSV file Pin
Ted Ferenc13-Jan-03 22:43
Ted Ferenc13-Jan-03 22:43 
Generalnew&delete, malloc&free Pin
raner13-Jan-03 22:26
raner13-Jan-03 22:26 
GeneralRe: new&delete, malloc&free Pin
jhwurmbach13-Jan-03 22:46
jhwurmbach13-Jan-03 22:46 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.