Hi
I need to dynamically create and delete RadDateTimePicker object. However, I can not fully delete the RadDateTimePicker. This can cause a memory leak. Let me give the sample example to illustrate my problem.
for(int b=0;b<10000;b++){
for(int a=0;a<100;a++){
RadDateTimePicker radDateTimePicker = new RadDateTimePicker();
radDateTimePicker.InputMode = InputMode.DatePicker;
radDateTimePicker = null;
}
long memory = GC.GetTotalMemory(true);
System.Diagnostics.Trace.WriteLine(xxx.ToString() + " - " + (memory / 1000).ToString() + "K");
}
I found that If I set the InputMode the memory will keep increasing (Memory leak). Otherwise, the memory will not keep increasing. Could you please help to solve this problem.
Thank you very much