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

C / C++ / MFC

 
AnswerRe: How to kill a process through VC++ code? Pin
Arsalan Malik6-Sep-04 20:44
Arsalan Malik6-Sep-04 20:44 
GeneralURGENT - Please Help Pin
jasu6-Sep-04 20:15
jasu6-Sep-04 20:15 
GeneralPath to system directories Pin
Imtiaz Murtaza6-Sep-04 20:12
Imtiaz Murtaza6-Sep-04 20:12 
GeneralRe: Path to system directories Pin
Joaquín M López Muñoz6-Sep-04 20:14
Joaquín M López Muñoz6-Sep-04 20:14 
GeneralRe: Path to system directories Pin
David Crow7-Sep-04 3:00
David Crow7-Sep-04 3:00 
GeneralC++ question. Pin
WREY6-Sep-04 19:53
WREY6-Sep-04 19:53 
GeneralRe: C++ question. Pin
Joaquín M López Muñoz6-Sep-04 20:08
Joaquín M López Muñoz6-Sep-04 20:08 
GeneralRe: C++ question. Pin
WREY7-Sep-04 3:58
WREY7-Sep-04 3:58 
Thanks for replying. I appreciate it.

I can understand your concern about how allocation of memory was accomplished for the 'Node' structure, and was one of the many things I investigated myself. (I would be flabbergasted if it turns out to be that, and would definitely be something new for me.) Here it is:

pNode = (Node*(*)[7])calloc(7, sizeof(Node*));

The allocation of memory for the structure is done in 'class First' prior to creating the array.
========================================

After the data had been long created and subsequently transferred from one class to the other, I was able to successfully access the data in the class that received it, and work with it. But somewhere down the line when this other function (in the same class which received the data) was activated, that's when the crash occurred.

The receiving class obtained data from the array by way of the pointer to the array.

First::Node* (*pNd)[7] = pFirst->pNode;

"First::Node* (*pNd)[7]" is declared in the receiving class.
=========================================

What's bewildering is that earlier I was able to work with data (in the class which received it), but then afterwards the program crashed. (If memory allocation is the reason, I would be totally astounded; totally.)

Thanks for any assistance. I appreciate it.

Big Grin | :-D

William

Fortes in fide et opere!
GeneralRe: C++ question. Pin
Joaquín M López Muñoz7-Sep-04 4:13
Joaquín M López Muñoz7-Sep-04 4:13 
GeneralRe: C++ question. Pin
WREY7-Sep-04 4:47
WREY7-Sep-04 4:47 
GeneralRe: C++ question. Pin
Joaquín M López Muñoz7-Sep-04 5:13
Joaquín M López Muñoz7-Sep-04 5:13 
GeneralRe: C++ question. Pin
cmk7-Sep-04 2:23
cmk7-Sep-04 2:23 
GeneralRe: C++ question. Pin
WREY7-Sep-04 4:20
WREY7-Sep-04 4:20 
GeneralRe: C++ question. Pin
Joaquín M López Muñoz7-Sep-04 5:47
Joaquín M López Muñoz7-Sep-04 5:47 
GeneralFound solution!! Pin
WREY7-Sep-04 6:04
WREY7-Sep-04 6:04 
GeneralRe: C++ question. Pin
WREY7-Sep-04 8:42
WREY7-Sep-04 8:42 
GeneralRe: C++ question. Pin
Bob Stanneveld7-Sep-04 9:57
Bob Stanneveld7-Sep-04 9:57 
QuestionUrgent!!How to limit used resources? Pin
mfc_surfer6-Sep-04 19:45
mfc_surfer6-Sep-04 19:45 
GeneralHelp voice chat tech :((( Pin
phamdoan6-Sep-04 18:38
phamdoan6-Sep-04 18:38 
QuestionHow to link the submenu and dialog in MFC dialog based application? Pin
anuchelvi6-Sep-04 17:18
anuchelvi6-Sep-04 17:18 
QuestionHow to disable device in 98/me Pin
max_xiayi6-Sep-04 14:56
max_xiayi6-Sep-04 14:56 
QuestionHow to disable device in 98/me Pin
max_xiayi6-Sep-04 14:56
max_xiayi6-Sep-04 14:56 
GeneralMapping Modes, and Font Size Pin
CoreyCooper6-Sep-04 13:56
CoreyCooper6-Sep-04 13:56 
GeneralListCtrl Stuff Pin
Grahamfff6-Sep-04 11:49
Grahamfff6-Sep-04 11:49 
GeneralRe: ListCtrl Stuff Pin
valikac6-Sep-04 16:50
valikac6-Sep-04 16:50 

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.