Strange memory gobbling behaviour

  • Thread starter Thread starter Drew Yallop
  • Start date Start date
D

Drew Yallop

A WinForms project that was running perfectly suddenly goes South. Cannot
even get the start up form to load. Get to initialise component section and
then the application starts racking up memory until my 512M is almost
entirly consumed and then sets there doing nothing.

I was running some Ado.Net operations on an MS Access DB and the application
threw an 'unable to enable constraints' error. I made some changes and ran
under debug again and that is when the problem began.

On looking through the the start up form's Windows generated code I found a
whole bunch of Ado.net related code (data adaptors, update/delete/ select
code) that was not there before and duplicates code that was in another form
containing the same data adapters.

I removed the uninvited code but no joy. I built a new start form but same
problem.

I am new to Visual Studio but cannot imagine what has happened. Virus?

Best regards,

Drew Yallop
 
Drew Yallop said:
A WinForms project that was running perfectly suddenly goes South. Cannot
even get the start up form to load. Get to initialise component section and
then the application starts racking up memory until my 512M is almost
entirly consumed and then sets there doing nothing.

Do you have the same problem with even a pretty much blank project
which does nothing other than show an empty form? If so, that sounds
like a problem with your installation somewhere, although it's hard to
guess exactly where. If not, could you post a short but complete
example program which *does* show the problem?
 
Back
Top