U++ framework
Do not panic. Ask here before giving up.

Home » U++ Library support » U++ Core » Stream Load serialization fired twice
Stream Load serialization fired twice [message #61328] Wed, 25 December 2024 23:56 Go to previous message
luoganda is currently offline  luoganda
Messages: 217
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.
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Doubt with Buffer<> of a trivially destructible type
Next Topic: GetSmartTextSize() fails with QTF text
Goto Forum:
  


Current Time: Sun May 24 20:02:43 GMT+2 2026

Total time taken to generate the page: 0.00892 seconds