Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: kathyayini
  • Order by date
  1. kathyayini

    Thread and Socket.

    Upto "bytesSent" it gets printed after that nothing is getting printed.
  2. kathyayini

    Thread and Socket.

    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*...
  3. kathyayini

    Regarding String.

    I think string system functions (m_str.insert().... m_str.append...... etc) behaves differently in itanium server. Still not getting the solution.
  4. kathyayini

    Regarding String.

    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...
  5. kathyayini

    Regarding String.

    Below is the code of StringUtil.cpp and StringUtil.h //******* STRINGUTIL.CPP ************* #include "StringUtil.h" #include <string.h> #include <stdlib.h> #ifdef WIN32 #include <tchar.h> #endif #include <string> StringUtil::StringUtil() { m_initialized = true; } StringUtil::StringUtil...
  6. kathyayini

    Regarding String.

    i tried with std::string and removed all resizing, but still giving the same problem.
  7. kathyayini

    Regarding String.

    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...
  8. kathyayini

    Regarding String.

    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...
  9. kathyayini

    Send Problem (Socket)

    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(&quot;\nRejecting Excess Client %s...
  10. kathyayini

    Send Problem (Socket)

    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(&quot;\nRejecting Excess Client %s...
  11. kathyayini

    memcpy

    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...
  12. kathyayini

    context problem

    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...
  13. kathyayini

    Socketing (URGENT)

    Above mentioned progran runs fine thirteen time but 14th time fopen function in RECEIVEBUFFER fails. waiting for the reply.
  14. kathyayini

    Socketing (URGENT)

    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...
  15. kathyayini

    Socketing (URGENT)

    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...
  16. kathyayini

    Multi threading and Global variables.

    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...
  17. kathyayini

    Error while DML / DDL operation through multiple threads.

    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...
  18. kathyayini

    COM logs generation problem

    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...
  19. kathyayini

    Problem while compilation in VC++.

    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...
  20. kathyayini

    Date in VC++

    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.

Part and Inventory Search

Back
Top