W
WJ
I have a Database class that is responsible for performing DBIO to/from
Oracle RDBMS named "oraDBIOClass". It is c#. I have about 20 Asp.Net forms
(*.aspx) in my web site, their Url Links are located on a common launch pad
(graphic with hot spots), each calls different methods within the
oraDBIOClass.
Questions:
1. When an instance of "oraDBIOClass" is created, where is it placed in term
of memory (on the Heap, by the side or at the bottom of the heap or in the
heart of Intel CPU chip ?)
2. Each time a request is launched, an oraDBIOClass instance is created.
Example:
Webform1.aspx creates "oraDBIOClass ora1=new
oraDBIOClass() when it is clicked...
Webform2.aspx creates "oraDBIOClass ora2=new
oraDBIOClass() ...
Webform3.aspx creates "oraDBIOClass ora3=new
oraDBIOClass() ...
Then how does the system know that "ora1" instance is to be disposed of (how
does it know ?). I still think that "ora1" is still there with WebForm1.aspx
on the server ?
My understanding is this: My application does not know or cannot control
when the user clicks on a new link, therefore, it cannot free the current
instance named "ora1, 2 and or 3" ? Or I should not worry about it and let
the CLR takes care of it at runtime ?
Reason I ask because I need to worry about 100 concurrent accesses with
forms being clicked all over the place and soon the memory (4GB) runs out...
Thanks for your help,
John
Oracle RDBMS named "oraDBIOClass". It is c#. I have about 20 Asp.Net forms
(*.aspx) in my web site, their Url Links are located on a common launch pad
(graphic with hot spots), each calls different methods within the
oraDBIOClass.
Questions:
1. When an instance of "oraDBIOClass" is created, where is it placed in term
of memory (on the Heap, by the side or at the bottom of the heap or in the
heart of Intel CPU chip ?)
2. Each time a request is launched, an oraDBIOClass instance is created.
Example:
Webform1.aspx creates "oraDBIOClass ora1=new
oraDBIOClass() when it is clicked...
Webform2.aspx creates "oraDBIOClass ora2=new
oraDBIOClass() ...
Webform3.aspx creates "oraDBIOClass ora3=new
oraDBIOClass() ...
Then how does the system know that "ora1" instance is to be disposed of (how
does it know ?). I still think that "ora1" is still there with WebForm1.aspx
on the server ?
My understanding is this: My application does not know or cannot control
when the user clicks on a new link, therefore, it cannot free the current
instance named "ora1, 2 and or 3" ? Or I should not worry about it and let
the CLR takes care of it at runtime ?
Reason I ask because I need to worry about 100 concurrent accesses with
forms being clicked all over the place and soon the memory (4GB) runs out...
Thanks for your help,
John