
Private void ResetNumSlGrp (int total, int curIdx)
{
The object tt=GetControlFromDic (" num_sl_grp ");
If (tt!=null)
{
BtnComobox comobox=tt as BtnComobox;
Comobox.Com boBox1. Items. The Clear ();
For (int I=1; i
Comobox.Com boBox1. Items. The Add (i.T oString ());
}
Comobox.Com boBox1. SelectedIndex=curIdx;
}
}
CodePudding user response:
Detail also can ask, where is the big!
CodePudding user response:
The ComboBox1 project cycle added project, you will need to save exists inside, increase until the last sentence you said, is delayed, comobox.Com boBox1. Items. The Add (i.T oString ()); This sentence should be increased,CodePudding user response:
Emmm I didn't say clear, the problem is that the function after the operation, the memory has been on the rise, this function if frequent calls, will result in system memory and then collapse,,,CodePudding user response:
Are you haven't released a resource in the code? The object tt=GetControlFromDic (" num_sl_grp "); May be related to this in the codeCodePudding user response:
You can put the object tt=GetControlFromDic (" num_sl_grp "); This line at the back of the statement is blocked, perform a while to see whether the same more memory, so is the problem in this code, the code behind the looks no problem