Hello,
I am currently writing a simulation system which involves a large number
of C++ classes, many of which contain pointers to other objects. I need
the ability to save the state of the system and replay (at least partly)
from the saved state.
I have constructed my system to save the input stream and also set up
the random number generator so that I can save and resume its state. My
only major problem now is that I have a group of about 1,000 objects,
each of which can contain a number of pointers to other objects and
cannot come up with an efficent way to copy the all and "fix" the
pointers. Any suggestions appresiated (I'm quite happy to re-write parts
of the code to allow a new system to work).
One (possibly) specialist requirement is that while I save the state
often, frequently I will never use the copies. Therefore some system
which could copy the objects quickly and record enough state to fix up
the pointers later and possibly much slower would be very good!
Chris 3 1935
chris wrote: I am currently writing a simulation system which involves a large number of C++ classes, many of which contain pointers to other objects. I need the ability to save the state of the system and replay (at least partly) from the saved state.
Just launched this morning: http://stephan.rootonfire.org/s11n/
(i'm still waiting on the s11n.net domain registration.)
I have constructed my system to save the input stream and also set up the random number generator so that I can save and resume its state. My only major problem now is that I have a group of about 1,000 objects, each of which can contain a number of pointers to other objects and cannot come up with an efficent way to copy the all and "fix" the pointers. Any suggestions appresiated (I'm quite happy to re-write parts of the code to allow a new system to work).
That's all EASY to do with the above framework.
One (possibly) specialist requirement is that while I save the state often, frequently I will never use the copies. Therefore some system which could copy the objects quickly and record enough state to fix up the pointers later and possibly much slower would be very good!
Again, see above. :)
--
----- stephan beal
Registered Linux User #71917 http://counter.li.org
I speak for myself, not my employer. Contents may
be hot. Slippery when wet. Reading disclaimers makes
you go blind. Writing them is worse. You have been Warned.
On Mon, 27 Oct 2003 12:58:02 +0100, stephan beal
<st*****@wander inghorse.net> wrote: chris wrote: I am currently writing a simulation system which involves a large number of C++ classes, many of which contain pointers to other objects. I need the ability to save the state of the system and replay (at least partly) from the saved state.
Just launched this morning:
http://stephan.rootonfire.org/s11n/
Have you looked at Boost's serialization efforts?
See serialization12 .zip available here: http://groups.yahoo.com/group/boost/files/
and the discussion on the Boost mailing lists.
Tom
tom_usenet wrote: Have you looked at Boost's serialization efforts?
See serialization12 .zip available here: http://groups.yahoo.com/group/boost/files/ and the discussion on the Boost mailing lists.
No, i hadn't. Thanks for the link!
--
----- stephan beal
Registered Linux User #71917 http://counter.li.org
I speak for myself, not my employer. Contents may
be hot. Slippery when wet. Reading disclaimers makes
you go blind. Writing them is worse. You have been Warned. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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 variable
in ASP.NET?
I am thinking of storing several objects there, not too large, so there
won't be any memory issues or anything like that. Is ASP.NET still
subject to threading issues?
|
by: jakk |
last post by:
Below is the exception that Iam getting. It says that the DataView that
Iam storing in the session is not Serializable. BUt works fine if I
store in the inproc session and fails if I switch to storing the
session in Sql Server.
Please let me know if Iam doing anything wrong.
Unable to serialize the session state. Please note that
non-serializable objects or MarshalByRef objects are not permitted when
|
by: py |
last post by:
how feasible is it to cache an entire page's content in a session variable?
i am already doing it and it works fine, except i am afraid of scalability
issues. what is the best way to test this? and is there an obvious reason
why i should not do this.
|
by: hfk0 |
last post by:
Hi,
I'm new to ASP.net, SQL Server and visual studio.net, and I'm having
problem inserting and storing data from a web form to a SQL database.
I created a simple ASP.NET web form, a simple SQL database, a database
connection (using the SQlDataSource Web Control from the Toolbox), and
created the following stored procedure in Visual Studio.Net 2005:
|
by: newjazzharmony |
last post by:
All,
I'd appreciate it if someone could answer these questions for me.
This scenario applies to an ASP dot net application that is deployed in
a web farm.
1) Does the application live in a separate app domain on each
webserver in the farm?
2) Does each webserver's version of the application have its own
| |
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 be 'better' to store
an instance of this class in a session-variable, so it's available all the time
and needs to be instanced only once.
Is this, generally speaking, a good idea, storing objects in session-variables ?
Do you guys ever use this...
|
by: RSH |
last post by:
Hi,
I have a situation where I have created an object that contains
fields,properties and functions. After creating the object I attempted to
assign it to a session variable so i could retrieve the information it
contained on another page. This was significant because I am initially
loading the data from the database, then storing relevent information in the
object, I am allowing users to change the data then preview the
modifications...
|
by: =?Utf-8?B?YmFzdWxhc3o=?= |
last post by:
Hi;
I want to store a datatable (or an arraylist) as a session variable but when
I try;
Session = al_RecNo;
I get an error that;
"Cannot implicitly convert type 'System.Collections.ArrayList' to 'string'"
|
by: =?Utf-8?B?SmFzb24gSGFydHNvZQ==?= |
last post by:
I have a sub routine that's passing in a variable. I need to take that
variable and store it globally...but here's what's happening.
ex: I'm executing my routine: doMyThing(path, "test")
I'm executing that command at least 10 times replacing the word test with my
next object. When im receving that variable:
Sub doMyThing(ByVal Path As String, ByVal other As String)
I can use my variable...now how can I take that variable from this sub...
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |