Home » U++ Library support » U++ Core » Stream Load serialization fired twice
Stream Load serialization fired twice [message #61328] |
Wed, 25 December 2024 23:56  |
luoganda
Messages: 214 Registered: November 2016
|
Experienced Member |
|
|
Calling LoadFromFile stream in
"bool Load(Event<Stream&> serialize, Stream& stream, int version){ ..."
calls user function "void XUserClass::Serialize(Stream& s){..." twice.
Once with backup.SetStoring(); flag and once with stream.SetLoading();.
Both are called from Core/Stream.cpp at 1287 in "bool Load(Event<Stream&> serialize, ...".
I don't think this is normal, since user callback is fired twice.
|
|
|
Goto Forum:
Current Time: Tue Jun 03 02:55:38 CEST 2025
Total time taken to generate the page: 0.03158 seconds
|