LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

SetPanelCharacterSet gives heap error

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?

Vix
-------------------------------------------
In claris non fit interpretatio

-------------------------------------------
Using LV from 7
Using LW/CVI from 6.0
0 Kudos
Message 1 of 8
(1,996 Views)

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. 

0 Kudos
Message 2 of 8
(1,927 Views)

Can you suggest some tool to check memory allocation?

Vix
-------------------------------------------
In claris non fit interpretatio

-------------------------------------------
Using LV from 7
Using LW/CVI from 6.0
0 Kudos
Message 3 of 8
(1,905 Views)

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.  

0 Kudos
Message 4 of 8
(1,898 Views)

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).

Vix
-------------------------------------------
In claris non fit interpretatio

-------------------------------------------
Using LV from 7
Using LW/CVI from 6.0
Message 5 of 8
(1,895 Views)

Great, here are some links for visual studio extensions. 

1. deleaker

2. CRT lib 

So you can try this 2, then we'll see 🙂

0 Kudos
Message 6 of 8
(1,891 Views)

Have you ever tried these tools by yourself in a CVI application (not Visual Studio)?

As far as I understand:

  • deleaker is aa application which is not free-of-charge https://www.deleaker.com/
  • not sure in CRT library can be enabled/used in CVI

Can you clarify, please?

Vix
-------------------------------------------
In claris non fit interpretatio

-------------------------------------------
Using LV from 7
Using LW/CVI from 6.0
0 Kudos
Message 7 of 8
(1,887 Views)

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. 

0 Kudos
Message 8 of 8
(1,883 Views)