Click here to Skip to main content
15,913,115 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: SQLConnect --Invalid string or buffer length Pin
0v3rloader24-Mar-04 10:00
0v3rloader24-Mar-04 10:00 
GeneralRe: SQLConnect --Invalid string or buffer length Pin
BlackDice24-Mar-04 10:09
BlackDice24-Mar-04 10:09 
GeneralMemory allocation failure Pin
AJarrett24-Mar-04 8:57
AJarrett24-Mar-04 8:57 
GeneralRe: Memory allocation failure Pin
l a u r e n24-Mar-04 9:02
l a u r e n24-Mar-04 9:02 
GeneralRe: Memory allocation failure Pin
AJarrett24-Mar-04 9:09
AJarrett24-Mar-04 9:09 
GeneralRe: Memory allocation failure Pin
Neville Franks24-Mar-04 9:16
Neville Franks24-Mar-04 9:16 
GeneralRe: Memory allocation failure Pin
AJarrett24-Mar-04 9:25
AJarrett24-Mar-04 9:25 
GeneralRe: Memory allocation failure Pin
John R. Shaw24-Mar-04 9:59
John R. Shaw24-Mar-04 9:59 
The problem probably isn't where you think it is. Normaly when this type of error occurs it is because of a miscalulation which eventualy caused a memory overwrite that occured some time earlier in the program. Therefore, you need to look backwards at what happen before you made the allocation, it most likely occured in some other function usualy one that was called from the current function or one of the functions up the line that eventualy called the function where the failure. One way that might help track down the problem (that I have used) is to use TRACE, in all realated function (nomaly same class) to show every allocation/deletion and read/write invold. For an example of what I am talking about download a CDibData (@codeproject), it contains code for doing this type of tracking. I had the same problem when I wrote that code (and others) and did not bother to remove the tracing (yet!).

Well, I hope this helps!
Good luck!

INTP
GeneralRe: Memory allocation failure Pin
axid3j1al24-Mar-04 11:37
axid3j1al24-Mar-04 11:37 
GeneralAccessing a COM object in a DLL Pin
aafflyer24-Mar-04 8:52
aafflyer24-Mar-04 8:52 
GeneralRe: Accessing a COM object in a DLL Pin
aafflyer26-Mar-04 7:58
aafflyer26-Mar-04 7:58 
GeneralMemory leak msg... Pin
0v3rloader24-Mar-04 8:39
0v3rloader24-Mar-04 8:39 
GeneralRe: Memory leak msg... Pin
David Crow24-Mar-04 9:12
David Crow24-Mar-04 9:12 
GeneralRe: Memory leak msg... Pin
0v3rloader24-Mar-04 9:22
0v3rloader24-Mar-04 9:22 
GeneralLowLevelKeyboardProc possible return values Pin
0v3rloader24-Mar-04 8:30
0v3rloader24-Mar-04 8:30 
GeneralSQLConnect connection string Pin
BlackDice24-Mar-04 7:49
BlackDice24-Mar-04 7:49 
GeneralRe: SQLConnect connection string Pin
David Crow24-Mar-04 7:53
David Crow24-Mar-04 7:53 
GeneralRe: SQLConnect connection string Pin
BlackDice24-Mar-04 8:01
BlackDice24-Mar-04 8:01 
GeneralRe: SQLConnect connection string Pin
David Crow24-Mar-04 8:10
David Crow24-Mar-04 8:10 
GeneralRe: SQLConnect connection string Pin
BlackDice24-Mar-04 8:18
BlackDice24-Mar-04 8:18 
GeneralRe: SQLConnect connection string Pin
David Crow24-Mar-04 9:11
David Crow24-Mar-04 9:11 
QuestionMouse direction settings? Pin
DaFrawg24-Mar-04 7:31
DaFrawg24-Mar-04 7:31 
GeneralLink Error Pin
satcat24-Mar-04 6:27
satcat24-Mar-04 6:27 
GeneralRe: Link Error Pin
Navin24-Mar-04 6:35
Navin24-Mar-04 6:35 
GeneralRe: Link Error Pin
satcat24-Mar-04 7:21
satcat24-Mar-04 7:21 

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.