Click here to Skip to main content
15,887,414 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: HIde a Process in Task manager Pin
Garth J Lancaster11-Jun-09 1:24
professionalGarth J Lancaster11-Jun-09 1:24 
GeneralRe: HIde a Process in Task manager Pin
Chandrasekharan P11-Jun-09 2:03
Chandrasekharan P11-Jun-09 2:03 
GeneralRe: HIde a Process in Task manager Pin
Michael Schubert11-Jun-09 2:17
Michael Schubert11-Jun-09 2:17 
GeneralRe: HIde a Process in Task manager Pin
Garth J Lancaster11-Jun-09 11:44
professionalGarth J Lancaster11-Jun-09 11:44 
GeneralRe: HIde a Process in Task manager Pin
CPallini11-Jun-09 2:00
mveCPallini11-Jun-09 2:00 
QuestionDebug Assertion Failed Pin
Davitor10-Jun-09 23:52
Davitor10-Jun-09 23:52 
AnswerRe: Debug Assertion Failed Pin
Cedric Moonen11-Jun-09 0:14
Cedric Moonen11-Jun-09 0:14 
GeneralRe: Debug Assertion Failed Pin
Davitor11-Jun-09 0:33
Davitor11-Jun-09 0:33 
Thanks for reply.

i use debugger but i havn't found that time exception.

void CDelayedDirectoryChangeHandler::On_FileAdded(const CString & strFileName)
{
CStringArray szaddcopyFiles;
CString strFileName;
CString path="D:\\DVD";
szaddcopyFiles.Add(strFileName);
	
				

int numofcopyitems = szaddcopyFiles.GetSize();
if (numofcopyitems > 0)
{
	tr=1;
for(;aq<numofcopyitems;)
{
	finalString=szaddcopyFiles.GetAt(i);




	 strFileName1=finalString;
	 for(int idc=0;idc<5;idc++)
	 {
		AfxBeginThread(WorkerThreadProc1,NULL,THREAD_PRIORITY_NORMAL,0,0,NULL);
   		WaitForSingleObject(WorkerThreadProc1, INFINITE);
	 }




}
}


		if(tr==1)
		{
			
			szaddcopyFiles.RemoveAll();
			tr=0;
		}
}

UINT WorkerThreadProc(LPVOID Param)
{
	CFileOperation fo;
	CString tr=finalString;
			
     


   		
		int nLen = tr.GetLength();
		
		LPCSTR lpszBuf = tr.GetBufferSetLength(nLen);
    	tr.ReleaseBuffer(nLen);
		LPCSTR pF=lpszBuf;
		
		
			CStdioFile file;
			fo.SetOverwriteMode(TRUE);
			if(fo.Copy(pF,pT));
			

			//int nPos1121 = finalString.ReverseFind('\\');
			int nPos2121 = finalString.ReverseFind('.');

if( nPos2121 > -1)
{
				if (file.Open(_T(finalString),  CFile::modeRead | CFile::modeNoTruncate))
				{
					
					ULONGLONG dwFileSize;
					dwFileSize = GetFileSize(file,  NULL);
					float fVar;
					str1.Format(_T("%I64u"), dwFileSize);
					file.Close();
				}
			

	
		AfxBeginThread(WorkerThreadProccd,NULL,THREAD_PRIORITY_NORMAL,0,0,NULL);
   		WaitForSingleObject(WorkerThreadProccd, INFINITE);
		 
	
		
		
	
	
}	
   return TRUE;
}
UINT WorkerThreadProccd(LPVOID Param)
{
	CFileOperation fo;
	CString tr1=finalString;
	int nLen1 = tr1.GetLength();
	//LPCSTR lpszBuf1 = tr1.GetBuffer(nLen1);
	LPCSTR lpszBuf1 = tr1.GetBufferSetLength(nLen1);
    tr1.ReleaseBuffer(nLen1);
	LPCSTR pF1=lpszBuf1;
		
		
		if(fo.Copy(pF1,pT));
	return TRUE;
}

Now i hope you will help me..
GeneralRe: Debug Assertion Failed Pin
Cedric Moonen11-Jun-09 0:51
Cedric Moonen11-Jun-09 0:51 
GeneralRe: Debug Assertion Failed Pin
Davitor11-Jun-09 0:58
Davitor11-Jun-09 0:58 
QuestionRe: Debug Assertion Failed Pin
Rajesh R Subramanian11-Jun-09 1:03
professionalRajesh R Subramanian11-Jun-09 1:03 
AnswerRe: Debug Assertion Failed Pin
Davitor11-Jun-09 1:10
Davitor11-Jun-09 1:10 
GeneralRe: Debug Assertion Failed Pin
Rajesh R Subramanian11-Jun-09 1:24
professionalRajesh R Subramanian11-Jun-09 1:24 
GeneralRe: Debug Assertion Failed Pin
Davitor11-Jun-09 1:29
Davitor11-Jun-09 1:29 
GeneralRe: Debug Assertion Failed Pin
Davitor11-Jun-09 2:07
Davitor11-Jun-09 2:07 
GeneralRe: Debug Assertion Failed Pin
Rajesh R Subramanian11-Jun-09 0:58
professionalRajesh R Subramanian11-Jun-09 0:58 
GeneralRe: Debug Assertion Failed Pin
Davitor11-Jun-09 1:02
Davitor11-Jun-09 1:02 
GeneralRe: Debug Assertion Failed Pin
Davitor11-Jun-09 1:06
Davitor11-Jun-09 1:06 
GeneralRe: Debug Assertion Failed Pin
chirag_chauhan11-Jun-09 1:17
chirag_chauhan11-Jun-09 1:17 
GeneralRe: Debug Assertion Failed Pin
Cedric Moonen11-Jun-09 1:13
Cedric Moonen11-Jun-09 1:13 
GeneralWelcome in the CP's Memorable Quotes list, again and again. Pin
CPallini11-Jun-09 22:01
mveCPallini11-Jun-09 22:01 
GeneralRe: Welcome in the CP's Memorable Quotes list, again and again. Pin
Rajesh R Subramanian11-Jun-09 22:36
professionalRajesh R Subramanian11-Jun-09 22:36 
AnswerRe: Debug Assertion Failed Pin
Rajesh R Subramanian11-Jun-09 0:23
professionalRajesh R Subramanian11-Jun-09 0:23 
QuestionRe: Debug Assertion Failed Pin
David Crow11-Jun-09 3:00
David Crow11-Jun-09 3:00 
AnswerRe: Debug Assertion Failed Pin
Randor 11-Jun-09 3:56
professional Randor 11-Jun-09 3:56 

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.