You are not logged in.
I have some multithreaded code, where each thread creates and uses TSynAutoCreateFields-based instances of the same types. All these threads are pre-initialized (so they start almost at the same time).
This code works ok with 1.18, but with 2.0 I occasionally get random errors (mostly AV), for example at TRttiCustom.SetAutoCreateFields. Could it be that somehow threads are getting mixed at TSynAutoCreateFields-based class registering?
If I add Create/Destroy procedures for these classes before multithreaded processing (in other words - pre-registering them in the main thread) - all goes fine:
TKommuneInfoCountyGeo.Create.Free;
TKommuneInfoMunicipalityGeo.Create.Free;
Offline
Indeed.
Should be fixed with https://github.com/synopse/mORMot2/comm … 8169ef0165
Offline