Your explantations suggest, that the function CVIDynamicMemoryInfo is
available but not documented in CVI 5.5. My CVI 5.5 doesn't know this
function. Is this a bug of mine or is the function not available
in CVI 5.5.
Greetings
Torsten
Peter Ilberg schrieb:
>
> CVI 6.0 will have a function panel explaining the use of
> CVIDynamicMemoryInfo. It's also included in the beta in the
> utility library.
>
> /* Dynamic Memory Information */
> #define DYNAMIC_MEMORY_SHOW_ALLOCATED_MEMORY 0x80000000
> #define DYNAMIC_MEMORY_SHOW_ALLOCATED_MEMORY_SUMMARY 0x80000001
> /* (this last option was added in CVI 6.0, I think) */
>
> int CVIFUNC CVIDynamicMemoryInfo(const char message[],
> unsigned int *allocatedBlocks,
>
unsigned int *allocatedBytes,
> unsigned int options);
>
> CVIDynamicMemoryInfo prints the number of memory blocks
> allocated and the total amount of allocated memory in CVI's
> Debug Output Window. It also shows the first few bytes of
> each memory block. The function takes four arguments:
>
> - message: an optional message to help you associate the
> output with a location in your code
> - allocatedBlocks: the number of allocated blocks (you may
> pass NULL)
> - allocatedMemory: the total amount of memory (you may pass
> NULL)
> - options: one of the constants above, or 0 for no output
> in the debug output window
>
> Depending on how much memory you have allocated this
> function can take quite a long time to run (a few seconds)
> when outputing memory information to the debug output
> window.
>
> Peter
>
> -- Peter Ilberg