I am calling a servermethod from within a thread using Omnithreadlibrary, the data is returned succesfully, but I have troubles using the data returned, everything i've tried goes with AccessViolation or even crash of the application, tryed also to set the dataset in the a DataSetProvider linked to a ClientDataSet, but here also it doesn't work, at last I set the server method to return an OleVariant and set it directly to the Data Property of the ClientDataSet but I had an errors also.
My purpose is to have the request done in a thread and data returned to a function in the main thread to pupulate the grid.
any suggestions?