M
Michael Wenninger
Hello NG,
I develop an application with CF 2.0 SP1 and SQL Server Mobile 3.0. My
application is ready and works fine, however after a few minutes I get a
OOM - message. I could already limit the problem to the SQL Server. I have a
timer in my application, that execute every 5 seconds a simply
SQL-Statement:
[...]
private void timer_Tick(object sender, EventArgs e)
{
SqlCeCommand cmd = new SqlCeCommand("Select Count(*) From Jobs",
_con);
object objCount = cmd.ExecuteScalar();
int countRow = (int)objCount;
this.lblJobCount.Text = countRow.ToString();
}
[...]
After a few minutes no more memory is available. I have written a simply
test-application with the same code snippet in CF1.0 / SQL CE 2.0 and there
is no problem.
Is there a memoryleak in the SQL Server Mobile 3.0 ?
Thanks
Michael
I develop an application with CF 2.0 SP1 and SQL Server Mobile 3.0. My
application is ready and works fine, however after a few minutes I get a
OOM - message. I could already limit the problem to the SQL Server. I have a
timer in my application, that execute every 5 seconds a simply
SQL-Statement:
[...]
private void timer_Tick(object sender, EventArgs e)
{
SqlCeCommand cmd = new SqlCeCommand("Select Count(*) From Jobs",
_con);
object objCount = cmd.ExecuteScalar();
int countRow = (int)objCount;
this.lblJobCount.Text = countRow.ToString();
}
[...]
After a few minutes no more memory is available. I have written a simply
test-application with the same code snippet in CF1.0 / SQL CE 2.0 and there
is no problem.
Is there a memoryleak in the SQL Server Mobile 3.0 ?
Thanks
Michael