Re: Memory leak (yep, another one) with forms possibly

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



If you haven't read this, see if anything on it helps (e.g. have you used
perf counters):
http://www.danielmoth.com/Blog/2005/01/memory-problems-faq.html

> Any ideas out there on where to go next with this?
The generic answer to your generic question applies in this case as well.
Keep going through the cycle of:
1. Remove code
2. Repeat test and measure
3. If problem persists go to step 1
4. The code you just removed was the culprit. Study it yourself or post a
small repro to the newsgroups to get others to help.

Cheers
Daniel
--
http://www.danielmoth.com/Blog/

"Tommy" <tommy@xxxxxxxxxxxxxx> wrote in message
news:e21BiN7lFHA.2060@xxxxxxxxxxxxxxxxxxxxxxx
>I have a strange problem. I have what I consider a huge app for a ce/ppc
>device. It contains 38 forms. Quite a few are designed to be reused.
>
> I have a couple of forms that do queries on a sybase ASA db and pass the
> dataset into another form for the user to go through the data and make
> mods.
>
> The strange thing that is happening is if you keep going through the data
> and get to the end, go back to the form that makes the query and back into
> the editing form yet again,, over and over you steady lose memory until
> the unit get's very slow.
>
> I am definately closing and calling dispose of the edit form. I have
> removed all references to the outside thinking maybe there was something
> referencing one of those forms keeping it from going away. I changed the
> dataset being passed and passing byval now instead of byref like I was.
>
> I realize this is pretty vague to get much help on but i'm about at the
> end of what I know to check.
>
> I am using CF sp3. I tried it on a Ce device and a ppc device with the
> same results.
>
> Any ideas out there on where to go next with this?
>
> Thanks
>


.



Relevant Pages

  • Re: Failed to load schema
    ... But the problem persists; my tiny little mind was unable to figure ... I load them into BizTalk and set up the import and include manually, ... but it complains that entries from each of the imported files can't see ... was because of circular references, ...
    (microsoft.public.biztalk.general)
  • Memory leak (yep, another one) with forms possibly
    ... I have a strange problem. ... I have what I consider a huge app for a ce/ppc ... all references to the outside thinking maybe there was something referencing ...
    (microsoft.public.dotnet.framework.compactframework)
  • Invalid Resx File error
    ... This is a strange problem we face sometimes in our windows based application ... the solution contains several projects and different developers work on ... The problem is sometimes it says Invalid Resx File. ... The suggestion message of the error says, check all the references to the ...
    (microsoft.public.dotnet.framework.windowsforms.controls)