Click here to Skip to main content
15,884,739 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: win32 dll is not working for c# application. Pin
Malli_S5-Jul-11 23:46
Malli_S5-Jul-11 23:46 
QuestionSometimes variable is not created using add variable wizard in VC++ 10 Pin
VCProgrammer5-Jul-11 20:26
VCProgrammer5-Jul-11 20:26 
AnswerRe: Sometimes variable is not created using add variable wizard in VC++ 10 Pin
Rajesh R Subramanian5-Jul-11 21:08
professionalRajesh R Subramanian5-Jul-11 21:08 
AnswerRe: Sometimes variable is not created using add variable wizard in VC++ 10 Pin
Niklas L6-Jul-11 0:10
Niklas L6-Jul-11 0:10 
AnswerRe: Sometimes variable is not created using add variable wizard in VC++ 10 Pin
Albert Holguin6-Jul-11 3:55
professionalAlbert Holguin6-Jul-11 3:55 
GeneralRe: Sometimes variable is not created using add variable wizard in VC++ 10 Pin
VCProgrammer6-Jul-11 21:05
VCProgrammer6-Jul-11 21:05 
GeneralRe: Sometimes variable is not created using add variable wizard in VC++ 10 Pin
Albert Holguin7-Jul-11 3:54
professionalAlbert Holguin7-Jul-11 3:54 
QuestionMemory Usage Error Pin
Anu_Bala5-Jul-11 18:54
Anu_Bala5-Jul-11 18:54 
Hi,
In my application for one child window,im having more than 100 pages.When page up and page down im moving coresponding next pages.BEfore getting next page, im destroying the previous page by using DestroyWindow.

But when i see in the Task Manager,Perormance Tab,The PF usage shows for every page it increasing 0.01GB and in Physical Memory(K)-Available the number(ex:1571826)is getting reduced and soon one error is coming like
"Out of memory,edit".

Im pasting here my PageUp and Pagedown code:

void CGraphView::OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags) 
{
	if(nChar == 33 || nChar == 34)
	{
		short iTempPgNo = ((CMainFrame*)AfxGetMainWnd())->m_ngiSchPNo;
		if(nChar == 33)
		{
			iTempPgNo--;
		}
		else
		{
			iTempPgNo++;
		}
		if(iTempPgNo != m_ngiSchPNo)
		{
			CString sNo;
			if( gpGView[nCurrGrpView]->glg_animation[giSchPNo].m_hWnd )
			{
				gpGView[nCurrGrpView]->glg_animation[giSchPNo].DestroyWindow(); //Destroying previous page.
				giSchPNo = iTempPgNo; //assigning new page number to giSchPNo varible,im using this variable in OnDraw() to get new page.
				if(giSchPNo > giGraphicCnt)
					giSchPNo = giGraphicCnt;
				((CMainFrame*)AfxGetMainWnd())->m_ngiSchPNo = giSchPNo;
			}
		}

	}
	CView::OnKeyDown(nChar, nRepCnt, nFlags);
}


Eventhough im using DestroyWindow(),why the memory is getting increased for each page down.
Anu

AnswerRe: Memory Usage Error Pin
Mark Salsbery5-Jul-11 19:41
Mark Salsbery5-Jul-11 19:41 
GeneralRe: Memory Usage Error Pin
Anu_Bala5-Jul-11 19:52
Anu_Bala5-Jul-11 19:52 
AnswerRe: Memory Usage Error Pin
Malli_S5-Jul-11 21:22
Malli_S5-Jul-11 21:22 
GeneralRe: Memory Usage Error Pin
Anu_Bala5-Jul-11 21:38
Anu_Bala5-Jul-11 21:38 
SuggestionRe: Memory Usage Error Pin
Malli_S5-Jul-11 21:52
Malli_S5-Jul-11 21:52 
QuestionHow many waveInPrepareHeader buffers I need to retrive data from audio device? Pin
Vaclav_5-Jul-11 12:01
Vaclav_5-Jul-11 12:01 
AnswerRe: How many waveInPrepareHeader buffers I need to retrive data from audio device? Pin
Mark Salsbery5-Jul-11 15:25
Mark Salsbery5-Jul-11 15:25 
GeneralRe: How many waveInPrepareHeader buffers I need to retrive data from audio device? Pin
Vaclav_5-Jul-11 16:04
Vaclav_5-Jul-11 16:04 
GeneralRe: How many waveInPrepareHeader buffers I need to retrive data from audio device? Pin
Mark Salsbery5-Jul-11 16:25
Mark Salsbery5-Jul-11 16:25 
GeneralRe: How many waveInPrepareHeader buffers I need to retrive data from audio device? Pin
Vaclav_6-Jul-11 13:18
Vaclav_6-Jul-11 13:18 
GeneralRe: How many waveInPrepareHeader buffers I need to retrive data from audio device? Pin
Mark Salsbery6-Jul-11 13:28
Mark Salsbery6-Jul-11 13:28 
GeneralRe: How many waveInPrepareHeader buffers I need to retrive data from audio device? Pin
Vaclav_6-Jul-11 15:29
Vaclav_6-Jul-11 15:29 
QuestionHow to?? Pin
john56325-Jul-11 3:08
john56325-Jul-11 3:08 
AnswerRe: How to?? [modified] Pin
Rajesh R Subramanian5-Jul-11 3:30
professionalRajesh R Subramanian5-Jul-11 3:30 
QuestionRe: How to?? Pin
CPallini5-Jul-11 3:41
mveCPallini5-Jul-11 3:41 
AnswerRe: How to?? Pin
Rajesh R Subramanian5-Jul-11 3:44
professionalRajesh R Subramanian5-Jul-11 3:44 
GeneralRe: How to?? Pin
ThatsAlok5-Jul-11 23:19
ThatsAlok5-Jul-11 23:19 

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.