Hi,
I called "TP_CALL" function in a thread which will send the data on the particular port to server and should receive the data. Currently the program sends the data properly but is not waiting till the data comes back (recv()). and the thread terminates.
Please help me out.
void*...
The same code works fine at my office and giving problem at clients place. Is the problem is comming because of UNIX environment or something like that.
Below is the code where program hangs(stops) and no further execution (it executes fine for first 3-4 times). After 5-10 minutes if i execute...
StringUtil& StringUtil::operator=(const StringUtil& src)
{
m_str.resize(src.m_str.length()+10);
m_str = src.m_str; //This gives problem
m_initialized = src.m_initialized;
return *this;
}
In the above mentioned function i am resizing m_str to...
Hi,
I am having a variable of type string (string m_str). The problem is it is able to add to m_str till the length of m_str reaches 300 / 400 and beyond that the program hangs. I wants to store more than 1000 / 2000 characters. I tried resize (m_str.resize()) but this works at some places and...
I have written a program which will accept only 20 connections to the server port. If connection goes beyond 20 then below mentioned code will be executed which is in while loop
memset(cSendBuf,' ',23);
memset(&sd, '\0', 23);
printf("\nRejecting Excess Client %s...
I have written a program which will accept only 20 connections to the server port. If connection goes beyond 20 then below mentioned code will be executed which is in while loop
memset(cSendBuf,' ',23);
memset(&sd, '\0', 23);
printf("\nRejecting Excess Client %s...
I have structure called
struct senddata
{
int istatus;
char cstrmsg[50];
}sd;
char cSendBuf[100]; //char arr
I wants to copy the data of structure in to cSendBuf. i tried to copy but not successful. code is as follows
memset(&sd, '\0', sizeof(sd));
memset(cSendBuf...
Below is the code which is mainly used 1) main and 2) RECEIVEBUFFER and client code.
If i use context then progran works fine for 13 times but 14th time fopen function
in RECEIVEBUFFER fails. If i do not use context then program runs without any problem.
there is some problem in the way i am...
Below is the code which is mainly used 1) main and 2) RECEIVEBUFFER and client code.
I am facing below mentioned problems along with recv function problem:
If anything wrong in my code, please let me know
1) Error while accessing file (Access and fopen function fails when i fire 4 requests to...
I am using socketing and multi threading. Problem is when i fire 4 request to the server, the recv function fails for 1 request (recv function returns zero). I used pthread_cond_wait function before recv function but still getting the same problem. Client is sending all 4 requests properly, but...
I have 10 global variables (the purpose of making it global is that all the variables are used in different functions). I am using multithreading and i do not want interaction between the threads. is there is a way to make threads to treat all global variables as local. what i mean to say is...
I am having a server which will do the database operations. client will connect to server through port. multiple client can connect to server (In server Multithreading is implemented). if one client connects to server then server will do all the DML /DDL operations without any problem but if 2...
Im calling com dll through IIS (ASP invokes VC++ COM dll).
dll is used to send request to remote machine and waits for response and sends back to front end (ASP.) dll writes request and response logs in one text file.
when i had installed the application logs were generating properly but now its...
I am using SQLAllocHandle(),SQLConnect(),SQLFreeHandle() functions. When i compile the code it gives me the following error at the linking time.What could be the problem.
Linking...
testDlg.obj : error LNK2001: unresolved external symbol _SQLAllocHandle@12
Debug/test.exe : fatal error LNK1120: 1...
earlier i was using CTime but year must be with in 1970–2038 so i dropped the idea of using CTime and CTimeSpan. and difftime returns double-precision floating-point number.
but i want date/month/year difference.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.