Re: Need realy help! Nobody there who knows a solution for my memory-error on WM5??
- From: Rene Scharf <Scharf.Rene@xxxxxxxxxxxxxx>
- Date: 26 Apr 2007 04:48:44 -0700
Hi Ginny,
The try (to close the dr on the end of my methods) wasn't
succsessfull. The Error is also the same.
Maybe I shoult tell a small thing about my programm.
When I start I have on the main-screen some opinions. One is to get a
todo list.
When I want to procede my todos I Clik on the ToDo-Button
Now the Programm open the Database,
and I'm working some time and in this case my methods send many
selects, updates, inserts and deletes to my database.
When i finish the Work by going back to the main-Screen The Program
closes the database.
To close and reopen the database in the working area helps, but this
could not be the right way. I think MS have an Memory-Problem in the
SQL-Objects.
This isn't my first database-application, and all others works in the
same way. Also on WM5 but in eVb.
Becase eVb is not really suportet under WM5 I write the Application
new under c#.
best gegards rené
On 25 Apr., 23:25, "Ginny Caughey [MVP]"
<ginny.caughey.onl...@xxxxxxxxxxxxxx> wrote:
You need to call dr.Close(); I don't know if that's what's causing your
problem, but it's worth a try. I don't generally dispose of SqlCeCommand
objects and often just reuse them, but you need to be sure to also call
Close() on your connection when you are finished with it (which I believe
calls Dispose internally.)
--
Ginny
.
- References:
- Need realy help! Nobody there who knows a solution for my memory-error on WM5??
- From: MoonBreaker
- Re: Need realy help! Nobody there who knows a solution for my memory-error on WM5??
- From: Pete Vickers [MVP]
- Re: Need realy help! Nobody there who knows a solution for my memory-error on WM5??
- From: MoonBreaker
- Re: Need realy help! Nobody there who knows a solution for my memory-error on WM5??
- From: Ginny Caughey [MVP]
- Need realy help! Nobody there who knows a solution for my memory-error on WM5??
- Prev by Date: Re: Need realy help! Nobody there who knows a solution for my memory-error on WM5??
- Next by Date: Re: Need realy help! Nobody there who knows a solution for my memory-error on WM5??
- Previous by thread: Re: Need realy help! Nobody there who knows a solution for my memory-error on WM5??
- Next by thread: Re: Need realy help! Nobody there who knows a solution for my memory-error on WM5??
- Index(es):
Loading