All weekend I'm trying to get Aurelius running in a modular environment but I hit a brick wall yesterday.
So I have an EXE that compiles with only RTL260.bpl and VCL260.bpl and this exe loads my own BPL. I need it that way to shut down the whole system as a windows service, replace some bpls and start it again. The database is Firebird 3 with UniDAC (latest). Everything works fine. I can restart the system and no memory leaks and nothing.
Now I brought Aurelius into the system and tried to connect it. It works and I have access to the database. But when I try to shutdown the bpl, it always crashes. It looks like Aurelius tries to free the cloned connection and inside that connection to free up some transaction which fails.
If I do the same in a single exe file it works.
When doing exactly the same the loaded BPL,
1.) I have to connect the source unidac connection before cloning it by calling "FConnection := TUniDacFirebird3Connection.CreateConnection;", otherwise I get an error about one of the connections of the transaction is not active.
So if I connect it, now I get
2.) Crash when freeing the datamodule with the original connection, connected or not at this point.
Any ideas ? I'm running out of them :(
Helge