Posts
 
Reputation
Joined
Last Seen
Ranked #520
Strength to Increase Rep
+3
Strength to Decrease Rep
-0
100% Quality Score
Upvotes Received
2
Posts with Upvotes
1
Upvoting Members
2
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
2 Commented Posts
0 Endorsements
Ranked #18.7K
Ranked #4K
~4K People Reached
About Me

Graduated from Electronics Engineering 1997, Computer Engineering 1999 (both in Canada) Worked in Telecom until 2006: - Eftia OSS Solutions (1999-2000) - Newbridge/Alcatel Networks (2000-2006) Specialized in posix threading in Unix and database performance…

Interests
Hockey, Skiing, Sailing, Motorcycle racing
PC Specs
Primary: Sun Enterprise 4500 (14 CPU/14 GB RAM) 12 DISK RAID 0/1 - Solaris 10 Desktop: Intel 3 GHz dual…
Favorite Forums
Favorite Tags
c x 11
Member Avatar for basukinjal

Just a hint since I see a lot of code in here that is huge for what it is trying to do: Build the tree recursively using the pre-order array(The in order array will cause you to have an unbalanced tree). The function to do this is 5 lines or …

Member Avatar for xinhedanti
0
512
Member Avatar for Him3

This is an MSSQL API call and it will only get you the diag info that is directly involved in the previous action or transaction on the current connection. rc = SQLExecDirect(hstmt, SQLStmt, SQL_NTS); if ((rc == SQL_SUCCESS_WITH_INFO) || (rc == SQL_ERROR)) { i = 1; while ((SQLGetDiagRec(SQL_HANDLE_STMT, hstmt, i, …

Member Avatar for monu chauhan
0
475
Member Avatar for Strat79

What did your core file tell you? I don't have a linux machine to test it on and it is fine on my Sun, but it is probably a different architecture than you are using. Generally Unix segmentation faults on a free are caused by over running a dynamic allocation. …

Member Avatar for ahamed101
0
235
Member Avatar for califguy

You might find it easier to read the first packet into a 32 byte allocation (via malloc). Read the size via an overlay of the struct defined way at the top (has the preamble, size and end points). Realloc the current allocation to the size that you need and set …

Member Avatar for rpiper138
0
109
Member Avatar for ashkash

unsigned char values[4] = (char[]) 0xBC1E0400; //Read from file stream long result; for(int i=4;i<4;i++) ((char*)&result)[4-i] = values[i];

Member Avatar for rpiper138
0
2K
Member Avatar for plike922

What are you trying to do????? Shorten the program. It will make it easier to compile. SetLetter and SetNumber don't have returns for all paths and are far too long for what they do. [CODE=C] char setletter(int set[], int x) { char value = (char)((set[x]) + 0x60); //0x61 is lower …

Member Avatar for rpiper138
0
81
Member Avatar for JONZ

This is not a difficult function nor is it well written. I would suggest starting with pseudo code (including error handling) and then writing the actual code.

Member Avatar for rpiper138
0
171