Click here to Skip to main content
14,970,229 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Treeview Question Pin
simotix7-Sep-07 19:04
Membersimotix7-Sep-07 19:04 
GeneralRe: Treeview Question Pin
Michael Dunn7-Sep-07 20:06
sitebuilderMichael Dunn7-Sep-07 20:06 
GeneralRe: Treeview Question Pin
simotix8-Sep-07 6:49
Membersimotix8-Sep-07 6:49 
QuestionC question, can't free string from a struct Pin
gizmokaka7-Sep-07 15:06
Membergizmokaka7-Sep-07 15:06 
AnswerRe: C question, can't free string from a struct Pin
Leslie Sanford7-Sep-07 15:28
MemberLeslie Sanford7-Sep-07 15:28 
GeneralRe: C question, can't free string from a struct Pin
gizmokaka7-Sep-07 21:51
Membergizmokaka7-Sep-07 21:51 
AnswerRe: C question, can't free string from a struct Pin
John R. Shaw7-Sep-07 17:30
MemberJohn R. Shaw7-Sep-07 17:30 
GeneralRe: C question, can't free string from a struct Pin
gizmokaka7-Sep-07 22:01
Membergizmokaka7-Sep-07 22:01 
Hello john and thanks for the attention, never the less, you did not supply me with any new information, for things I didn't do , nor was your answer "problem oriented" because it didn't address my problem.

my problem is specific, I am declaring a char** pointer inside my struct that 's purpose is to hold an array of chars in the near future.
during run time I am initializing it with values(pointers to strings).
now in one of my functions I am supposed to free the memory each of the members take, and then the pointer itself.

//t = a pointer to table_rec
//local_data = pointer to data 
for(i = 0 ; i < width ; i++)
{
    free(t->local_data->colName[i]);
}
free(t->local_data_colName);


still for some odd reason I get the error already posted.
GeneralRe: C question, can't free string from a struct Pin
John R. Shaw7-Sep-07 22:34
MemberJohn R. Shaw7-Sep-07 22:34 
GeneralRe: C question, can't free string from a struct Pin
gizmokaka7-Sep-07 23:05
Membergizmokaka7-Sep-07 23:05 
GeneralRe: C question, can't free string from a struct Pin
John R. Shaw7-Sep-07 23:42
MemberJohn R. Shaw7-Sep-07 23:42 
GeneralRe: C question, can't free string from a struct Pin
Leslie Sanford7-Sep-07 22:34
MemberLeslie Sanford7-Sep-07 22:34 
GeneralRe: C question, can't free string from a struct Pin
John R. Shaw7-Sep-07 22:54
MemberJohn R. Shaw7-Sep-07 22:54 
GeneralRe: small sample of where problem ocurres. Pin
gizmokaka7-Sep-07 22:34
Membergizmokaka7-Sep-07 22:34 
GeneralRe: small sample of where problem ocurres. Pin
John R. Shaw7-Sep-07 22:42
MemberJohn R. Shaw7-Sep-07 22:42 
GeneralRe: small sample of where problem ocurres. Pin
markkuk7-Sep-07 23:12
Membermarkkuk7-Sep-07 23:12 
GeneralRe: small sample of where problem ocurres. Pin
gizmokaka7-Sep-07 23:21
Membergizmokaka7-Sep-07 23:21 
GeneralRe: small sample of where problem ocurres. Pin
John R. Shaw7-Sep-07 23:24
MemberJohn R. Shaw7-Sep-07 23:24 
GeneralRe: small sample of where problem ocurres. Pin
Leslie Sanford7-Sep-07 23:42
MemberLeslie Sanford7-Sep-07 23:42 
GeneralRe: Another qestion on the same subject. Pin
gizmokaka8-Sep-07 0:20
Membergizmokaka8-Sep-07 0:20 
GeneralRe: small sample of where problem ocurres. Pin
Russell'7-Sep-07 23:33
MemberRussell'7-Sep-07 23:33 
QuestionClosing a view Pin
bob169727-Sep-07 11:08
Memberbob169727-Sep-07 11:08 
AnswerRe: Closing a view Pin
Russell'7-Sep-07 23:02
MemberRussell'7-Sep-07 23:02 
GeneralRe: Closing a view Pin
bob169728-Sep-07 4:44
Memberbob169728-Sep-07 4:44 
GeneralRe: Closing a view Pin
Mark Salsbery8-Sep-07 7:04
MemberMark Salsbery8-Sep-07 7:04 

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.