FastRport in COM Server crashes
I am creating a COM Server to serve reports. I use Builder C++. When the COM Server is called from a COM client, the program crashes when it finish.
To replicate it:
1) In Builder C++, create Active X library project
2) In Builder C++, New / Active X (COM object
3) Add a Data Module and add the TFrxReport component
4) Compile the BC++ project
There is no functional code, just for replicate the problem.
Now, the COM object is created. If you use it from Visual Net (for example) and you instance the COM, for example:
var myCOM= new MyCompany.MyCOMClass();
.Net instances the COM without problems. The crash is when the Net program finishes. It seems that the problem is when the COM object is released. The TFrxReport probably try to release some global resources and I guess that there is a bug.
Can you give me a guide about what I can try or modify the the Fast Report source?
Thank you
To replicate it:
1) In Builder C++, create Active X library project
2) In Builder C++, New / Active X (COM object
3) Add a Data Module and add the TFrxReport component
4) Compile the BC++ project
There is no functional code, just for replicate the problem.
Now, the COM object is created. If you use it from Visual Net (for example) and you instance the COM, for example:
var myCOM= new MyCompany.MyCOMClass();
.Net instances the COM without problems. The crash is when the Net program finishes. It seems that the problem is when the COM object is released. The TFrxReport probably try to release some global resources and I guess that there is a bug.
Can you give me a guide about what I can try or modify the the Fast Report source?
Thank you
Comments
FParentForm.Free raises an exception, when I delete it, the everything works fine. In any case, it is not the solution.
Can you guide me please?