Nevron Forum
Back
Login
Register
Login
Register
Home
»
Nevron Vision for NET
»
Nevron Diagram for .NET
»
Parallelization issue with the PersistenceManager
Parallelization issue with the PersistenceManager
Post Reply
Parallelization issue with the PersistenceManager
View
Flat Ascending
Flat Descending
Threaded
Options
Subscribe to topic
Print This Topic
Goto Topics Forum
Author
Message
Nevron Support
Nevron Support
posted 5 Years Ago
ANSWER
Post Details
Group: Administrators
Posts: 3.1K,
Visits: 4.2K
Hi,
We recommend you try loading each document in a different thread. To do that, create a new instance of
NPersistencyManager
in each thread and load the document with it.
Best Regards,
Nevron Support Team
Reply
Like
0
Niranjan Singh
Niranjan Singh
posted 5 Years Ago
ANSWER
Topic Details
Group: Forum Members
Posts: 49,
Visits: 179
Hi Team,
We are trying to create drawing documents using the saved diagram XML string in parallel threads and we found that "
persistencyManager.LoadFromStream
" is blocking the thread.
It is locking the threads and making them wait to complete.
using (MemoryStream drawingStream = new MemoryStream(System.Text.Encoding.ASCII.GetBytes(drawingString)))
{
// now load the persistent document from the memory stream
NPersistencyManager persistencyManager = new NPersistencyManager();
drawingStream.Position = 0;
persistencyManager.LoadFromStream(drawingStream, Nevron.Serialization.PersistencyFormat.XML, null);
NDrawingDocument nDrawing = (NDrawingDocument)persistencyManager.Persistentdocument.Sections[0].Object;
}
Any idea that how can we parallelize this in an efficient way so that we can load multiple diagrams from the list of xml strings.
Tags
Diagram
Drawing Document
Reply
Like
0
GO
Merge Selected
Merge into selected topic...
Merge into merge target...
Merge into a specific topic ID...
Open Merge
Post Reply
Similar Topics
Post Quoted Reply
Reading This Topic
Login
Login
Remember Me
Reset Password
Resend Validation Email
Login
Explore
Messages
Mentions
Search