473,320 Members | 1,868 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Garbarge Collector on strike

After running for 8 hours, our n-tier DB program (written
in VB.NET) gradually grows from 50MB to 561MB in size. It
slowly grinds to a halt & the end user has to restart the
application. Is there a way to explicitely call the
garbarge collector? I previously developed in C++ & had
to call New[] and delete[].

This memory mgt instability in .NET is not acceptable.
Howver, porting to Java isn't an option at this time.

Jenny :0
Jul 21 '05 #1
6 1238
I have developed quite a bit of apps with .NET and have never found memory
mgt instability.

Have you profiled your application?
"Jenny" <an*******@discussions.microsoft.com> wrote in message
news:00****************************@phx.gbl...
After running for 8 hours, our n-tier DB program (written
in VB.NET) gradually grows from 50MB to 561MB in size. It
slowly grinds to a halt & the end user has to restart the
application. Is there a way to explicitely call the
garbarge collector? I previously developed in C++ & had
to call New[] and delete[].

This memory mgt instability in .NET is not acceptable.
Howver, porting to Java isn't an option at this time.

Jenny :0

Jul 21 '05 #2
Hi Jenny,

"Jenny" <an*******@discussions.microsoft.com> wrote in message
news:00****************************@phx.gbl...
After running for 8 hours, our n-tier DB program (written
in VB.NET) gradually grows from 50MB to 561MB in size. It
slowly grinds to a halt & the end user has to restart the
application. Is there a way to explicitely call the
garbarge collector? I previously developed in C++ & had
to call New[] and delete[].

This memory mgt instability in .NET is not acceptable.
Howver, porting to Java isn't an option at this time.


I think you're being hasty blaming this on .NET "memory mgt
instability". There are some things that must be taken into account in a
distributed app that, if ignored, could result in your app "leaking". Does
your middle tier use COM+ component services (i.e. do you have middle tier
"service" objects that inherit from ServicedComponent)? If so, the client
should "dispose" of those objects when it is done with them, or (a better
option, IMHO) make your "service" objects JIT activated (see the
JustInTimeActivation attribute).

Regards,
Dan
Jul 21 '05 #3
No.

However, It's a VB.NET form based app. So when you leave
a form (and all of its children), and let the app sit on
the main form for several hours, the memory should be
reclaimed - as all child forms and procedure have gone out
of scope.

BTW: This app uses CrystalReports.Net. Is it possible
that I need to set rpt = Nothing, rpt.Dispose()
OR
set MyForm.Dispose() or set MyForm = Nothing throughout
app instead of assuming the .NET runtime will perform
garbage collection when the objects go out of scope?

Jenny
-----Original Message-----
I have developed quite a bit of apps with .NET and have never found memorymgt instability.

Have you profiled your application?


Jul 21 '05 #4
I looked at Crystal Reports a long time ago and they did use interop with
unmanaged code (I believe..). If so they should supply a Dispose method that
clients should call to release the unmanaged resource.
"Jenny" <an*******@discussions.microsoft.com> wrote in message
news:03****************************@phx.gbl...
No.

However, It's a VB.NET form based app. So when you leave
a form (and all of its children), and let the app sit on
the main form for several hours, the memory should be
reclaimed - as all child forms and procedure have gone out
of scope.

BTW: This app uses CrystalReports.Net. Is it possible
that I need to set rpt = Nothing, rpt.Dispose()
OR
set MyForm.Dispose() or set MyForm = Nothing throughout
app instead of assuming the .NET runtime will perform
garbage collection when the objects go out of scope?

Jenny
-----Original Message-----
I have developed quite a bit of apps with .NET and have

never found memory
mgt instability.

Have you profiled your application?

Jul 21 '05 #5
Hi Dan,

No. The business layer strictly uses ADO.NET based
components written in VB.NET. Each of the workstations &
server (at the client site) has 1GB RAM & 120GB HD.
They're using MDAC 2.7, MSDE with SP3.
Does your middle tier use COM+ component services (i.e.

do you have middle tier "service" objects that inherit
from ServicedComponent)?
Jul 21 '05 #6
I suggest you grab a copy of the .NET Memory Profiler from Scitech systems
(http://www.scitech.se/memprofiler/Default.htm). It's not very expensive and
will show you who has references to your objects (and allow you to clean 'em
up!).

Cheers, Adam

"Jenny" <an*******@discussions.microsoft.com> wrote in message
news:01****************************@phx.gbl...
Hi Dan,

No. The business layer strictly uses ADO.NET based
components written in VB.NET. Each of the workstations &
server (at the client site) has 1GB RAM & 120GB HD.
They're using MDAC 2.7, MSDE with SP3.
Does your middle tier use COM+ component services (i.e.

do you have middle tier "service" objects that inherit
from ServicedComponent)?

Jul 21 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
by: pachanga | last post by:
The Hans-Boehm garbage collector can be successfully used with C and C++, but not yet a standard for C++.. Is there talks about Garbage Collector to become in the C++ standard?
14
by: Johan Christensson | last post by:
Hi. I got contacted by an old teacher today that works at a public shool here in Sweden. They have a ever groving problem with the students playing Counter Strike on the schools computers. Not...
6
by: Jenny | last post by:
After running for 8 hours, our n-tier DB program (written in VB.NET) gradually grows from 50MB to 561MB in size. It slowly grinds to a halt & the end user has to restart the application. Is there...
13
by: Mingnan G. | last post by:
Hello everyone. I have written a garbage collector for standard C++ application. It has following main features. 1) Deterministic Finalization Providing deterministic finalization, the system...
10
by: a | last post by:
Hi For VB .NET, which class is responsible for the key strike event? Thanks
2
by: Fred Zuckerman | last post by:
It appears to me that "strike out" is not a font (I wonder why?). Anyway, I have a report that has some detail lines that are not relevant. However I still want them to show. So I'd like to have...
8
by: mdoxdo | last post by:
Hi all, I was wondering if there is a way to get the number of references an objects have (ie, other objects reference that object)? I know that .Net GC uses a different mechanism than the...
350
by: Lloyd Bonafide | last post by:
I followed a link to James Kanze's web site in another thread and was surprised to read this comment by a link to a GC: "I can't imagine writing C++ without it" How many of you c.l.c++'ers use...
46
by: Carlo Milanesi | last post by:
Hello, traditionally, in C++, dynamically allocated memory has been managed explicitly by calling "delete" in the application code. Now, in addition to the standard library strings, containers,...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.