Click here to Skip to main content
15,899,474 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionAPI used to files name inside a folder Pin
neha.agarwal2713-Nov-07 18:03
neha.agarwal2713-Nov-07 18:03 
AnswerRe: API used to files name inside a folder Pin
manish.patel13-Nov-07 18:09
manish.patel13-Nov-07 18:09 
AnswerRe: API used to files name inside a folder Pin
Amar Sutar13-Nov-07 18:11
Amar Sutar13-Nov-07 18:11 
GeneralRe: API used to files name inside a folder Pin
Paresh Chitte13-Nov-07 18:19
Paresh Chitte13-Nov-07 18:19 
AnswerRe: API used to files name inside a folder Pin
Hamid_RT13-Nov-07 18:11
Hamid_RT13-Nov-07 18:11 
AnswerRe: API used to files name inside a folder Pin
Sethuraman.K13-Nov-07 18:19
Sethuraman.K13-Nov-07 18:19 
QuestionAbout Memory utilization Pin
manish.patel13-Nov-07 17:14
manish.patel13-Nov-07 17:14 
AnswerRe: About Memory utilization Pin
Peter Weyzen13-Nov-07 22:20
Peter Weyzen13-Nov-07 22:20 
This isn't a problem we can solve for you. It seems obvious that you're not shutting down your thread and it's related data when the connection is terminated.

What are you doing when the connection is terminated?


But, I'll add another comment unrelated to your question. People often think that creating a thread for each connection is a good thing. It's OK if you want to handle a few connections... But if you want actual performance, you should find a way of aggregating your many connections to a small pool of threads....

The best performance for this -- is something called I/O completion. It's a method which let's you treat network communications as events. It's not simple, but it will maximize your performance in a server. You can handle a few hundred connections with just a few threads....

Though, one more thought. Servers based on windows suck....

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br />
Peter Weyzen<br />
Staff Engineer<br />
<A HREF="http://www.soonr.com">SoonR Inc -- PC Power delivered to your phone</A>

GeneralRe: About Memory utilization Pin
manish.patel13-Nov-07 23:46
manish.patel13-Nov-07 23:46 
GeneralRe: About Memory utilization Pin
Mark Salsbery14-Nov-07 7:55
Mark Salsbery14-Nov-07 7:55 
GeneralRe: About Memory utilization Pin
manish.patel13-Nov-07 23:52
manish.patel13-Nov-07 23:52 
GeneralRe: About Memory utilization Pin
Peter Weyzen14-Nov-07 18:18
Peter Weyzen14-Nov-07 18:18 
QuestionADO, how to group by record count, and get the first of every group Pin
followait13-Nov-07 16:05
followait13-Nov-07 16:05 
Questioncode to walk down all a program's windows Pin
Lowell Boggs13-Nov-07 12:28
Lowell Boggs13-Nov-07 12:28 
AnswerRe: code to walk down all a program's windows Pin
User 58385213-Nov-07 15:35
User 58385213-Nov-07 15:35 
AnswerRe: code to walk down all a program's windows Pin
Hamid_RT13-Nov-07 18:45
Hamid_RT13-Nov-07 18:45 
AnswerRe: code to walk down all a program's windows Pin
Lowell Boggs14-Nov-07 5:07
Lowell Boggs14-Nov-07 5:07 
GeneralRe: code to walk down all a program's windows Pin
Peter Weyzen14-Nov-07 18:21
Peter Weyzen14-Nov-07 18:21 
QuestionFOPEN Redirection Pin
User 42081113-Nov-07 10:20
User 42081113-Nov-07 10:20 
AnswerRe: FOPEN Redirection Pin
Chris Meech13-Nov-07 11:15
Chris Meech13-Nov-07 11:15 
GeneralRe: FOPEN Redirection Pin
User 42081113-Nov-07 12:00
User 42081113-Nov-07 12:00 
AnswerRe: FOPEN Redirection Pin
Bram van Kampen13-Nov-07 13:22
Bram van Kampen13-Nov-07 13:22 
AnswerRe: FOPEN Redirection [modified] Pin
Jude Deng13-Nov-07 15:25
Jude Deng13-Nov-07 15:25 
GeneralRe: FOPEN Redirection Pin
User 42081114-Nov-07 3:53
User 42081114-Nov-07 3:53 
GeneralRe: FOPEN Redirection Pin
Jude Deng2-Feb-08 14:43
Jude Deng2-Feb-08 14:43 

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.