Click here to Skip to main content
15,910,009 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHow to get a list of tables from a access database Pin
King_of_Queens23-Aug-03 8:52
King_of_Queens23-Aug-03 8:52 
AnswerRe: How to get a list of tables from a access database Pin
Manfred Staiger24-Aug-03 22:01
Manfred Staiger24-Aug-03 22:01 
Questionfault on delete[ ] ? Pin
Brian C Hart23-Aug-03 8:49
professionalBrian C Hart23-Aug-03 8:49 
AnswerRe: fault on delete[ ] ? Pin
Navin23-Aug-03 9:43
Navin23-Aug-03 9:43 
GeneralRe: fault on delete[ ] ? Pin
Brian C Hart23-Aug-03 12:16
professionalBrian C Hart23-Aug-03 12:16 
GeneralRe: fault on delete[ ] ? Pin
armentage25-Aug-03 8:03
armentage25-Aug-03 8:03 
GeneralRe: fault on delete[ ] ? (Solved) Pin
Brian C Hart25-Aug-03 8:39
professionalBrian C Hart25-Aug-03 8:39 
GeneralRe: fault on delete[ ] ? (Solved) Pin
armentage25-Aug-03 8:48
armentage25-Aug-03 8:48 
Brian Hart wrote:


I discovered this goes away when I set the size of the array to size + 1; i.e. delete[] sometimes faults because the debug version of things told me that I was having buffer overruns. Setting the array size to size + n where n is some arbitary number gives the computer a 'buffer' to work with to protect agsinst overruns.


What you're describing here is a sever programming error. You're going past the end of your allocated 'arr' somewhere, and corrupting your stack. Your 'buffer' is just hiding the problem. You really should take a close look at your code, and figure out what's going wrong. You probablu have an array bounds problem. I would bet you're not even performing your calculation correctly.

What you've said about "protecting against buffer overruns" is complete nonsense.
GeneralRe: fault on delete[ ] ? Pin
JT Anderson25-Aug-03 12:29
JT Anderson25-Aug-03 12:29 
AnswerRe: fault on delete[ ] ? Pin
Neville Franks23-Aug-03 10:09
Neville Franks23-Aug-03 10:09 
GeneralRe: fault on delete[ ] ? (Solved) Pin
Brian C Hart25-Aug-03 8:41
professionalBrian C Hart25-Aug-03 8:41 
AnswerRe: fault on delete[ ] ? Pin
igor196023-Aug-03 16:32
igor196023-Aug-03 16:32 
GeneralRe: fault on delete[ ] ? (Solved) Pin
Brian C Hart25-Aug-03 8:42
professionalBrian C Hart25-Aug-03 8:42 
GeneralMFC problem with templates and VS2003 : plz help!!! Pin
berserker_r23-Aug-03 8:39
berserker_r23-Aug-03 8:39 
GeneralRe: MFC problem with templates and VS2003 : plz help!!! Pin
igor196023-Aug-03 16:47
igor196023-Aug-03 16:47 
GeneralRe: MFC problem with templates and VS2003 : plz help!!! Pin
berserker_r24-Aug-03 0:43
berserker_r24-Aug-03 0:43 
Generalscript blocking Pin
Chen Jiadong23-Aug-03 4:39
Chen Jiadong23-Aug-03 4:39 
QuestionHow can i get the 9th bit in Serial communication? Pin
Cyclist23-Aug-03 4:17
Cyclist23-Aug-03 4:17 
AnswerRe: How can i get the 9th bit in Serial communication? Pin
Ernest Laurentin23-Aug-03 4:39
Ernest Laurentin23-Aug-03 4:39 
GeneralRe: How can i get the 9th bit in Serial communication? Pin
Cyclist23-Aug-03 17:25
Cyclist23-Aug-03 17:25 
Questionhow to code CDialogBar into SDI? Pin
coda_x23-Aug-03 3:09
coda_x23-Aug-03 3:09 
GeneralNeed Compiler crack Pin
Babayan Hovhannes23-Aug-03 2:00
Babayan Hovhannes23-Aug-03 2:00 
GeneralRe: Need Compiler crack Pin
Trollslayer23-Aug-03 3:05
mentorTrollslayer23-Aug-03 3:05 
GeneralRe: Need Compiler crack Pin
Terry O'Nolley23-Aug-03 7:43
Terry O'Nolley23-Aug-03 7:43 
GeneralRe: Need Compiler crack Pin
leppie23-Aug-03 17:15
leppie23-Aug-03 17:15 

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.