Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Memory leaks / API-calls
Message
From
07/03/2018 01:29:56
 
 
To
07/03/2018 01:20:59
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 10
Application:
Desktop
Miscellaneous
Thread ID:
01658554
Message ID:
01658590
Views:
119
Likes (1)
>>do not forget that vfp may allocate memory as well while your program is running , eg for variables
>
>Sure.
>
>The tests are not run in situ within a large applcations but as standalone test routines. I'll implement this putfile replacement very carefully when we have confirmation that it is rock-solid.
>
> I just made a last manual test. Running a very plain test - 2 000 calls of the dialogbox - the memory use moves from around 3.5 MB, plain vfp interactive session with zero addition, to nearly 50MB. The only way to clear the memory use "Quit"....


Haha,

And how many variables were created, assigned and destroyed ?

That is not my understanding of a memory leak

If you want to be sure, have a look at the code, each malloc() has to have its free()

You can also replace malloc() with HeapAlloc() and free() with HeapFree()

>Well 2 000 "save as..." action call is not your standard user activity:-)
>
>Daniel
Gregory
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform