I looked a your demo splash form with animation, but it uses a modal form. I tried to use it with a non-modal form, and I get an access violation when closing the form, and in the FormClose event is use Action := caFree (If I don't use caFree, it is fine, but the form doesn't get freed unless I do more work).
The AV occurs in the first line of TLMDFxAnimation.Restore. Do you know how to avoid this when using a non-modal form with caFree in the FormClose event?
I close the splash using a timer and in the timer I have even tried to disable the one and only LMDFxAnimation entry even though that is the ShowAnimation event and I would not expect it to run on close.
I also do not see the animation when the splash form opens, but I do see it on the close if I don't use caFree. Not sure why that is yet but could explain the access violation since it appears to run on close instead of on open.
Comments