From: linuxfedora on 18 Dec 2009 21:36 Hi All, My program is written by MFC with many thread created for processing. And i found that the Handle count in the Task manager of my program will increase after a long run. And i have tried to use WinDbg to check what kind of handle is increasing, and it was Process, but in my source code, i cannot find any function call like CreateProcess, and since my program is quite big, so i would like to know what kinds of API will create Process handle to make me more easy to find the problem. And i have checked that when the handle is increasing, no CreateThread is called. So any sugguestion for me. Thanks Thanks. Best regards, FAI
From: Alexander Grigoriev on 18 Dec 2009 22:06 Look for ShellExecuteEx with SEE_MASK_NOCLOSEPROCESS "linuxfedora" <linuxfedora(a)yahoo.com.hk> wrote in message news:49e89e61-65d2-4d71-8c5a-895f14e09ee3(a)h14g2000pri.googlegroups.com... > Hi All, > > My program is written by MFC with many thread created for processing. > > And i found that the Handle count in the Task manager of my program > will increase after a long run. And i have tried to use WinDbg to > check what kind of handle is increasing, and it was Process, but in my > source code, i cannot find any function call like CreateProcess, and > since my program is quite big, so i would like to know what kinds of > API will create Process handle to make me more easy to find the > problem. > > And i have checked that when the handle is increasing, no CreateThread > is called. So any sugguestion for me. Thanks > > Thanks. > > Best regards, > FAI
From: linuxfedora on 18 Dec 2009 22:19 Hi Alexander, My source code has no ShellExecuteEx. On 12æ19æ¥, ä¸å11æ06å, "Alexander Grigoriev" <al...(a)earthlink.net> wrote: > Look for ShellExecuteEx with SEE_MASK_NOCLOSEPROCESS > > "linuxfedora" <linuxfed...(a)yahoo.com.hk> wrote in message > > news:49e89e61-65d2-4d71-8c5a-895f14e09ee3(a)h14g2000pri.googlegroups.com... > > > Hi All, > > > My program is written by MFC with many thread created for processing. > > > And i found that the Handle count in the Task manager of my program > > will increase after a long run. And i have tried to use WinDbg to > > check what kind of handle is increasing, and it was Process, but in my > > source code, i cannot find any function call like CreateProcess, and > > since my program is quite big, so i would like to know what kinds of > > API will create Process handle to make me more easy to find the > > problem. > > > And i have checked that when the handle is increasing, no CreateThread > > is called. So any sugguestion for me. Thanks > > > Thanks. > > > Best regards, > > FAI > >
From: David Ching on 18 Dec 2009 22:33 Download SysInternals Process Explorer; it will show you the handle information of your app. -- David "linuxfedora" <linuxfedora(a)yahoo.com.hk> wrote in message news:49e89e61-65d2-4d71-8c5a-895f14e09ee3(a)h14g2000pri.googlegroups.com... > Hi All, > > My program is written by MFC with many thread created for processing. > > And i found that the Handle count in the Task manager of my program > will increase after a long run. And i have tried to use WinDbg to > check what kind of handle is increasing, and it was Process, but in my > source code, i cannot find any function call like CreateProcess, and > since my program is quite big, so i would like to know what kinds of > API will create Process handle to make me more easy to find the > problem. > > And i have checked that when the handle is increasing, no CreateThread > is called. So any sugguestion for me. Thanks > > Thanks. > > Best regards, > FAI
From: linuxfedora on 18 Dec 2009 22:55 Thanks have used Process Explorer, it show Process myProgramName.exe(5800) Process myProgramName.exe(5800) Process myProgramName.exe(5800) Process myProgramName.exe(5800) Process myProgramName.exe(5800) .. .. .. .. .. Then what can i do? On 12æ19æ¥, ä¸å11æ33å, "David Ching" <d...(a)remove-this.dcsoft.com> wrote: > Download SysInternals Process Explorer; it will show you the handle > information of your app. > > -- David > > "linuxfedora" <linuxfed...(a)yahoo.com.hk> wrote in message > > news:49e89e61-65d2-4d71-8c5a-895f14e09ee3(a)h14g2000pri.googlegroups.com... > > > Hi All, > > > My program is written by MFC with many thread created for processing. > > > And i found that the Handle count in the Task manager of my program > > will increase after a long run. And i have tried to use WinDbg to > > check what kind of handle is increasing, and it was Process, but in my > > source code, i cannot find any function call like CreateProcess, and > > since my program is quite big, so i would like to know what kinds of > > API will create Process handle to make me more easy to find the > > problem. > > > And i have checked that when the handle is increasing, no CreateThread > > is called. So any sugguestion for me. Thanks > > > Thanks. > > > Best regards, > > FAI > >
|
Next
|
Last
Pages: 1 2 Prev: AfxGetApp() returned NULL - A possible solution. Next: Missing symbol _iob (and others) |