Welcome to MobyThreads.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in
All support for the MobyThreads Threaded phpBB MOD can now be found on welsolutions at this forum

_beginthreadex and memory leaks in ISAPI application (Wind..

 
   Web Hosting and Web Master Forums (Home) -> IIS RSS
Next:  Apache access on Windows  
Author Message
mmc

External


Since: Jun 03, 2005
Posts: 2



(Msg. 1) Posted: Fri Jun 03, 2005 10:55 am
Post subject: _beginthreadex and memory leaks in ISAPI application (Windows2003 server)
Archived from groups: microsoft>public>inetserver>iis (more info?)

Hi,
I've got a problem with multiple threads IIS (ISAPI) application.
My application create many new threads (_beginthreadex). It generate many
memory leaks, but only under Windows 2003 Server.

Example:

// Test thread
unsigned __stdcall mm_ArchivizerDownloadWatcher(void *ptr)
{
Sleep(10);
_endthreadex(0);
return(0);
}

// function for create many new threads
unsigned __stdcall m_ArchivizerDownloadWatcher(void *ptr)
{
while(1)
{
unsigned threadID;
HANDLE
hthread=(HANDLE)_beginthreadex(NULL,0,mm_ArchivizerDownloadWatcher,NULL,0,&t
hreadID);
WaitForSingleObject(hthread,INFINITE);
CloseHandle(hthread);
}
_endthreadex(0);
return(0);
}

// HTTP interface for start test
void CPMExtension::Test(CHttpServerContext* pCtxt,int type)
{
unsigned threadID;
HANDLE
hthread=(HANDLE)_beginthreadex(NULL,1000,m_ArchivizerDownloadWatcher,NULL,0,
&threadID);
}

Regards,
JK

 >> Stay informed about: _beginthreadex and memory leaks in ISAPI application (Wind.. 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Dllhost.exe Memory leaks - Has anyone got a fix for the Memory leak problems caused by dllhost.exe when IIS5 is installed on Windows 2000 Server SP4? All I can find on Technet is an admission that there is probably a problem but nothing to actually fix it. Rob

Memory leaks on web server...how to troubleshoot? - Version: IIS 5 OS: Windows 2000 Server ----------- We have a web server that seems to be slowly eating memory. Everything was really slow today, so we started checking the processor and memory usage on the web server. In the list of processes the..

Installing IIS 6.0 Wind XP Pro? - Hi, I'm having crashes on IIS 5.1 on regular bases on my Win XP Pro and would like to upgrade to 6.0 to see if this stabalizes my environment! How can I get hold of an upgrade or standalone 6.0 installations? So far, I've just seen it bundled with..

ISAPI on IIS5 - memory usage - IIS5, server is also running out COM+ business objects. Start with a clean booted server. Start the IIS service in the morning and you can see the memory usage creeping up as the server gets busier. It eventually levels out and runs stable with lightly...

simple isapi extension : memory leak detected - I started by trying to figure out where a memory leak in my isapi extension was coming from, so I built a super simple MFC isapi with the wizard (using VS .net 2002). It only has 3 parse commands; default, emptyTest, and variableTest. Both default ...
   Web Hosting and Web Master Forums (Home) -> IIS All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]