Click here to Skip to main content
15,890,186 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionDefrag Registry Pin
Adnan56218-Dec-09 4:38
Adnan56218-Dec-09 4:38 
AnswerRe: Defrag Registry Pin
Richard MacCutchan18-Dec-09 9:18
mveRichard MacCutchan18-Dec-09 9:18 
GeneralRe: Defrag Registry Pin
Adnan56218-Dec-09 9:36
Adnan56218-Dec-09 9:36 
GeneralRe: Defrag Registry Pin
Richard MacCutchan18-Dec-09 9:52
mveRichard MacCutchan18-Dec-09 9:52 
GeneralRe: Defrag Registry Pin
Adnan56218-Dec-09 13:04
Adnan56218-Dec-09 13:04 
GeneralRe: Defrag Registry Pin
Richard MacCutchan18-Dec-09 23:29
mveRichard MacCutchan18-Dec-09 23:29 
GeneralRe: Defrag Registry Pin
Adnan56219-Dec-09 7:39
Adnan56219-Dec-09 7:39 
Questionwinsock select don´t react on incoming message Pin
CrazyDogg18-Dec-09 4:31
CrazyDogg18-Dec-09 4:31 
Hi @ all,´
i have the problem, i´m trying to send a message via UPD to a client but the select method reacts if the message is incoming on the client.
The client is running as a windows service.
With wireshark I can see the incoming message.

The client is waiting on messages following

while(g_bRun)

{

FD_ZERO(&fdSet);

FD_SET(g_pSipSocket->getSocket(), &fdSet);

rv = select(maxfd + 1, &fdSet, NULL, NULL, &timeVal);

AddDBS(1, "fdSet: %d\n", fdSet.fd_count);

if(rv > 0)

{

rv = recvfrom(g_pSipSocket->getSocket(), buf, sizeof(buf), 0, (SOCKADDR*)&sa, &salen);



if(rv != -1)

{



delay(100);

buf[rv] = '\0';

writeLog(buf);

}

}

}


the special clue is, if I´m sending a message to the client directly after starting my service then it works. If I´m waiting then or before ca. 2 - 3 minutes then the problem manner.

Sorry for my bad english

Best regards
Crazy
QuestionJNI CallVoidMethod leads to Runtime Error Pin
TheInfernalCrow18-Dec-09 4:22
TheInfernalCrow18-Dec-09 4:22 
AnswerRe: JNI CallVoidMethod leads to Runtime Error Pin
Richard MacCutchan18-Dec-09 9:21
mveRichard MacCutchan18-Dec-09 9:21 
GeneralRe: JNI CallVoidMethod leads to Runtime Error Pin
TheInfernalCrow18-Dec-09 23:53
TheInfernalCrow18-Dec-09 23:53 
GeneralRe: JNI CallVoidMethod leads to Runtime Error Pin
Richard MacCutchan19-Dec-09 3:16
mveRichard MacCutchan19-Dec-09 3:16 
GeneralRe: JNI CallVoidMethod leads to Runtime Error Pin
TheInfernalCrow19-Dec-09 4:08
TheInfernalCrow19-Dec-09 4:08 
GeneralRe: JNI CallVoidMethod leads to Runtime Error Pin
Richard MacCutchan19-Dec-09 7:27
mveRichard MacCutchan19-Dec-09 7:27 
GeneralRe: JNI CallVoidMethod leads to Runtime Error Pin
TheInfernalCrow21-Dec-09 3:00
TheInfernalCrow21-Dec-09 3:00 
GeneralRe: JNI CallVoidMethod leads to Runtime Error Pin
Richard MacCutchan21-Dec-09 5:57
mveRichard MacCutchan21-Dec-09 5:57 
QuestionRelease Build to Debug Build Pin
Benjamin Bruno18-Dec-09 1:46
Benjamin Bruno18-Dec-09 1:46 
AnswerRe: Release Build to Debug Build Pin
Rajesh R Subramanian18-Dec-09 1:55
professionalRajesh R Subramanian18-Dec-09 1:55 
QuestionRe: Release Build to Debug Build Pin
David Crow18-Dec-09 2:54
David Crow18-Dec-09 2:54 
QuestionDLL appearing only after .EXE execution in temp folder, how does it works ? Pin
GuimaSun18-Dec-09 1:29
GuimaSun18-Dec-09 1:29 
AnswerRe: DLL appearing only after .EXE execution in temp folder, how does it works ? Pin
Rajesh R Subramanian18-Dec-09 1:33
professionalRajesh R Subramanian18-Dec-09 1:33 
GeneralRe: DLL appearing only after .EXE execution in temp folder, how does it works ? Pin
GuimaSun18-Dec-09 2:05
GuimaSun18-Dec-09 2:05 
QuestionMenu dropdown event in SDI application Pin
rp_suman18-Dec-09 0:23
rp_suman18-Dec-09 0:23 
AnswerRe: Menu dropdown event in SDI application Pin
Code-o-mat18-Dec-09 1:03
Code-o-mat18-Dec-09 1:03 
QuestionMSSQL USE DATABASE Pin
MsmVc17-Dec-09 22:30
MsmVc17-Dec-09 22:30 

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.