If this function is called in exe, a memory leak will occur
Example:
DLL
Code: Select all
Function Myaaa1() As String Export '
Function = "String"
End Function
Code: Select all
Declare Function Myaaa1 Lib "FunSupLib" Alias "MYAAA1"() As String
Dim i As Long ,ss As String
For i=0 To 100000
ss = Myaaa1()
Next
I don't know English. I translated it with Google. I don't know whether the expression is understood by everyone.
In this case, what can be done to solve it?
Is this a bug?