- Strength to Increase Rep
- +3
- Strength to Decrease Rep
- -0
- Upvotes Received
- 2
- Posts with Upvotes
- 1
- Upvoting Members
- 2
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
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…
Re: 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 … | |
Re: 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, … | |
Re: 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. … | |
Re: 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 … | |
Re: 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]; | |
Re: 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 … | |
Re: 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. |