Click here to Skip to main content
16,007,814 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Threads and mutexes [modified] Pin
Cyrilix17-Jun-07 16:12
Cyrilix17-Jun-07 16:12 
GeneralRe: Threads and mutexes Pin
Matthew Faithfull17-Jun-07 22:23
Matthew Faithfull17-Jun-07 22:23 
GeneralRe: Threads and mutexes Pin
Bram van Kampen18-Jun-07 13:30
Bram van Kampen18-Jun-07 13:30 
NewsAboubt Barcode printing, VC++ master-hand Come in and help me. Pin
h_boy200816-Jun-07 20:46
h_boy200816-Jun-07 20:46 
AnswerRe: Aboubt Barcode printing, VC++ master-hand Come in and help me. Pin
Matthew Faithfull17-Jun-07 0:38
Matthew Faithfull17-Jun-07 0:38 
GeneralRe: Aboubt Barcode printing, VC++ master-hand Come in and help me. Pin
Matthew Faithfull18-Jun-07 1:44
Matthew Faithfull18-Jun-07 1:44 
Questionmsi setup project Pin
deeps_cute16-Jun-07 20:25
deeps_cute16-Jun-07 20:25 
QuestionFirst-chance exception ... access violation ... pointer issue Pin
moonraker92816-Jun-07 20:18
moonraker92816-Jun-07 20:18 
i have just finished compiling my application and everything is in order, but when i run it to test the different features, there is a runtime error...and it deals with access violation, hence a pointer issue. i need help fixing this and following is the call stack:

int wNode::getId() <br />
{<br />
	return id;<br />
}


-----

int* workflow::getIDArray()<br />
{ <br />
	int total = numNodes; <br />
	int i = 0;<br />
	int* IDs = new int[total];<br />
	wNode* temp = first;<br />
	while (temp != NULL) {<br />
		IDs[i] = temp->getId();<br />
		if (temp->getHasLeft()) {<br />
			IDs[i+1] = temp->getLeft()->getId();<br />
			i++;<br />
		}<br />
		temp = temp->getNext();<br />
		i++;<br />
	}<br />
	return IDs;<br />
}


-----
<br />
int* wf_ids = dg_scenario::dg_workflow->getIDArray();<br />


any help would be greatly appreciated..i am new to c++ and thus am having a hard time tracing my steps and finding which line has the faulty pointer issue.

NOTE: the application has no compiler errors.

--
dg

AnswerRe: First-chance exception ... access violation ... pointer issue Pin
Hans Dietrich16-Jun-07 20:33
mentorHans Dietrich16-Jun-07 20:33 
GeneralRe: First-chance exception ... access violation ... pointer issue Pin
moonraker92816-Jun-07 21:48
moonraker92816-Jun-07 21:48 
GeneralRe: First-chance exception ... access violation ... pointer issue Pin
Bram van Kampen18-Jun-07 13:38
Bram van Kampen18-Jun-07 13:38 
AnswerRe: First-chance exception ... access violation ... pointer issue Pin
Stephen Hewitt17-Jun-07 12:51
Stephen Hewitt17-Jun-07 12:51 
GeneralRe: First-chance exception ... access violation ... pointer issue Pin
Bram van Kampen18-Jun-07 13:49
Bram van Kampen18-Jun-07 13:49 
Questiondrawing 2D in C++ Pin
moonraker92816-Jun-07 19:33
moonraker92816-Jun-07 19:33 
AnswerRe: drawing 2D in C++ Pin
Cyrilix16-Jun-07 21:41
Cyrilix16-Jun-07 21:41 
GeneralRe: drawing 2D in C++ Pin
moonraker92816-Jun-07 22:01
moonraker92816-Jun-07 22:01 
GeneralRe: drawing 2D in C++ Pin
moonraker92816-Jun-07 22:51
moonraker92816-Jun-07 22:51 
GeneralRe: drawing 2D in C++ Pin
Cyrilix17-Jun-07 0:17
Cyrilix17-Jun-07 0:17 
QuestionCLSID Pin
Rose8116-Jun-07 16:14
Rose8116-Jun-07 16:14 
AnswerRe: CLSID Pin
Randor 18-Jun-07 4:06
professional Randor 18-Jun-07 4:06 
GeneralRe: CLSID Pin
Rose8118-Jun-07 11:59
Rose8118-Jun-07 11:59 
GeneralRe: CLSID Pin
Randor 18-Jun-07 14:37
professional Randor 18-Jun-07 14:37 
QuestionRe: CLSID-proxystub Pin
Rose8124-Jun-07 11:49
Rose8124-Jun-07 11:49 
Questionopengl Pin
kayana16-Jun-07 16:13
kayana16-Jun-07 16:13 
AnswerRe: opengl Pin
leckey17-Jun-07 16:53
leckey17-Jun-07 16:53 

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.