01-12-2021 01:34 AM
I have an application working with no issue with CVI 2015 SP1.
If I try to run Debug configuration with CVI 2019, I find a blocking error.
SetPanelCharacterSet() gives the following error:
HEAP[my_application.exe]: Heap block at 091CD448 modified at 091CD453 past requested size of 3
This seems an error with memory handling.
I checked all my code with Cppcheck tool and everything is ok.
Can someone help, please?
01-22-2021 01:23 PM
Have you checked your memory allocation independently? Try to do so. As the CVI changes over time, it might happen that in some versions you don't find error.
01-25-2021 12:58 AM
Can you suggest some tool to check memory allocation?
01-25-2021 02:24 AM
So as far as I understood, you have problem with allocation or deallocation of memory. It might happen, that you or function you call, tries to write on the memory, past its size (It looks similar overflow of FIFO). This tool helps to find memory leaks. I think this will help a lot. But if not, try to check memory sizes and your variable sizes in your code.
01-25-2021 02:28 AM
Hi @vardanium,
your link points to the Resource Tracking tool built-in in CVI.
I use it and I don't have any leak.
I though you could suggest an "indepent" tool (i.e. third party).
01-25-2021 02:35 AM
01-25-2021 02:41 AM
Have you ever tried these tools by yourself in a CVI application (not Visual Studio)?
As far as I understand:
Can you clarify, please?
01-25-2021 03:00 AM
I didn't use them in LabWindows CVI, used only in VS. I'm not sure whether they will work on CVI.
Here is another suggestion. Have you used CVIDynamicMemoryInfo function? Try to call it for debugging, to make sure all your memory specified are allocated correctly.
Hope this will work for you.