I made the lmflex function as an object and then used it to check out the license. It works well when I call it for the first time. However, when I tried to call it again consecutively two or three times, it crashed. I found that there are several p...