473,396 Members | 2,016 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,396 software developers and data experts.

Storing objects in Application

I need to store a hash table in memory all the time. I thought about
remoting, having a server application running with the table, then a web
service that communicates with the server and finally the clients (pocket pc
applications). Someone told me about storing the table in application
object, so it is available during all execution. But, where should I store
it? In the web service? I assume that with that I don't need the server
object.

Regards,

Diego F.
Nov 16 '05 #1
5 1225
Diego, you can store it in the AppDomain

look at the AppDomain.SetObject, AppDomain.GetObject functions

hope this helps

--
Vladimir Scherbina
Ukraine, Kiev.
--

"Diego F." <di*****@NOterra.es> wrote in message
news:Ot*************@TK2MSFTNGP09.phx.gbl...
I need to store a hash table in memory all the time. I thought about
remoting, having a server application running with the table, then a web
service that communicates with the server and finally the clients (pocket pc applications). Someone told me about storing the table in application
object, so it is available during all execution. But, where should I store
it? In the web service? I assume that with that I don't need the server
object.

Regards,

Diego F.

Nov 16 '05 #2
But in the web service? And does it keep in memory after calling the web
mehtods?

Regards,

Diego F.
"Vladimir Scherbina" <vl******@pds-s.local> escribió en el mensaje
news:uO**************@tk2msftngp13.phx.gbl...
Diego, you can store it in the AppDomain

look at the AppDomain.SetObject, AppDomain.GetObject functions

hope this helps

--
Vladimir Scherbina
Ukraine, Kiev.
--

"Diego F." <di*****@NOterra.es> wrote in message
news:Ot*************@TK2MSFTNGP09.phx.gbl...
I need to store a hash table in memory all the time. I thought about
remoting, having a server application running with the table, then a web
service that communicates with the server and finally the clients (pocket
pc
applications). Someone told me about storing the table in application
object, so it is available during all execution. But, where should I

store it? In the web service? I assume that with that I don't need the server
object.

Regards,

Diego F.


Nov 16 '05 #3
Well, that's amazing! Now the object is too stored !! I explain:

I declare the object I want to keep in memory and the methods that use the
object static in the DLL where they are declared.

I tested it and it seems to work, as I can get the objects in different
calls. But now, even when the application is closed, it seems that the table
is still in memory. I reopen the application and the objects are in memory
with the values I added in the previous execution.

How do I dispose the object??

Regards,

Diego F.
Nov 16 '05 #4
It seems that after some minutes it ends. Can I control when does it finish?
At least I know that it finally ends :-)

Regards,

Diego F.
"Diego F." <di*****@NOterra.es> escribió en el mensaje
news:OE**************@TK2MSFTNGP10.phx.gbl...
Well, that's amazing! Now the object is too stored !! I explain:

I declare the object I want to keep in memory and the methods that use the
object static in the DLL where they are declared.

I tested it and it seems to work, as I can get the objects in different
calls. But now, even when the application is closed, it seems that the table is still in memory. I reopen the application and the objects are in memory
with the values I added in the previous execution.

How do I dispose the object??

Regards,

Diego F.

Nov 16 '05 #5
Hi Diego,
I thought about
remoting, PPC apps does not support remoting.
having a server application running with the table, then a web
service that communicates with the server and finally the clients (pocket pc applications).


Is this where the data will be used ( the PPC)?
Will the data be shared among the different clients ?
Do the clients needs to use the data updated?

I have a system where the clients running on PPC connect to a windows
service to update the data, then they works with that snapshot of the data
until the next time they sync. with the server when they download the
lastest data.
If this works for you is better, cause otherwise you will need a constant
connection to the server.

Just drop a line if you need more help.

Cheers,

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation
Nov 16 '05 #6

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

Similar topics

1
by: ViperDK \(Daniel K.\) | last post by:
i've a database where relations are hold in a special way which the project leaders think of as "performant and uncomplicated" but which is very questionable to me:...
6
by: Alfonso Morra | last post by:
I have written the following code, to test the concept of storing objects in a vector. I encounter two run time errors: 1). myClass gets destructed when pushed onto the vector 2). Prog throws a...
12
by: Alfonso Morra | last post by:
I have the ff code for testing the concept of storing objects: #include <vector> #include <iostream> using namespace std ; class MyClass { public: MyClass(){
10
by: Diego F. | last post by:
Hello. I need to store custom objects in a SQL Server 2000 table. Which is the easiest way to do it? Do I need to write methods to store each attribute separately from C# app to the table and the...
4
by: Frank Rizzo | last post by:
In classic ASP, it was considered a bad idea to store VB6-created objects in the Application variable for various threading issues. What's the current wisdom on storing objects in the Application...
9
by: david | last post by:
I have a class with some business-logic and with every roundtrip, I need an instance of this class, so I have to create it, every time again. That doesn't seem very efficient. I thought it would...
11
by: toton | last post by:
Hi, all of the containers in STL stores object itself (thus copy contsructability & assignability is needed), while NTL or boost ptr_container stores pointer to the object in the container (either...
2
by: =?Utf-8?B?R3JlZyBMYXJzZW4=?= | last post by:
I am writing an application where I need to store some data between application executions. I wonder where might be the best place. The application basically needs to store different objects,...
2
by: Mythran | last post by:
We followed an example found on MSDN to create an encrypted FormsAuthenticationTicket and storing the ticket in a cookie. Is this the "correct" way to store the authentication ticket? We are...
4
by: lorirobn | last post by:
Hi, I need to add photos to my database. Back End is on MS SQL Server (I believe 2000), and Front End is on MS Access. I have read about storing the photos as BLOBS, but I am not sure how to...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.