FastMM4 icon indicating copy to clipboard operation
FastMM4 copied to clipboard

UseReleaseStack does not work with ActiveX

Open ericbonilha opened this issue 8 years ago • 1 comments

Hello

I'm using latest 4992 version and I activated UseReleaseStack option because our application is highly, and I mean, HIGHLY multi-threaded and we were suffering a lot with thread contention.

I tried a different memory manager like ScaleMM2 and performance went to the roof, great, but somehow that library uses too much memory and we decided to go back to FastMM and we found this new flag which dramatically reduced thread contention and decreased about 30 to 40% of CPU usage from what we used to have...

The problem we are seeing now is our ActiveX controls, if we use UseReleaseStack flag, the ActiveX control does not work, it hangs... even Delphi cannot import a unit with the Interface of the activeX control (once its compiled)

If we register the control with regsrv32, regsrv32 will register it and hang after registering.

Is there a reason for the ActiveX control not work with this flag activated?

Meanwhile we will remove FastMM from our ActiveX projects because we need UseReleaseStack for our software, it makes wonders!

ericbonilha avatar Jun 28 '17 18:06 ericbonilha

Hi Eric,

I don't have any bug reports for the UseReleaseStack feature, but it is fairly new so there is always the possibility that there is some rare race condition or other bug that has not been discovered yet. If you can get a small test case together I will take a look. My e-mail is in the source files.

Best regards, Pierre

pleriche avatar Jul 03 '17 15:07 pleriche