About multithreading

HI,

Im doing some stress testing on Aurelius on a multithread enviroment and im getting some nasty errors.
To clarify some points about how my multithread enviroment is defined:

1) Firstly im using UNIDAC as my connection component, so for every thread i start i create a new TUniConnection.
2) Secondly for every thread i start, on the creation i configure a IDBConnection for it using that isolated TUniConnection.

The
thing is that im getting some randomic errors most of then saying
"duplicates not allowed", so im begginning to think based this part of
the documentation
http://www.tmssoftware.biz/business/aurelius/doc/web/index.html?global_configuration.htm
that aurelius have some share classes that are not thread safe.

So the question is:
1) It is thread safe or not?
2) If it is, there's some custom customization/configuration/scenario that must be made?
3) If is not, provide support for multithread it is on your roadmap?

thx in advance.

Hi,

1) Aurelius is thread-safe, otherwise it couldn't even be used in XData servers which are heavily based on Aurelius
2) Threading is always tricky. You should post your code here so we can see. The TMappingExplorer class has some threading issues because it has lazy-loading mechanism, we're working on that. There might be some issues with TMappingExplorer that can be worked around with some initialization. Please post the code and the call stack of the error
3) As said, multithreads is already available and being used.

thx for the answer.

well getting to know that aurelius is threadsafe at his principle is a relief.
i'll review some of my things before post a lot of codes here, maybe im missing some point, anyway i'll post later my results.

well, indeed multithread is not a easy task, it end up it was my mistake with some thread syncronization issues.