From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

global protection fault in module cvirte.dll

Hi,

My program has a treeview in which I have to insert items.The datas come from a XML file. I use the libxml2.lib.

When I want to load the new XML file in the treeview, I get sometimes a General Protection Fault in cvirte.dll, which crashes the whole program.

In debug mode, it crashes at the same line, when I use the function InsertTreeItem.

Any ideas where to look for the problem would be appreciated.

 

Thanks.

0 Kudos
Message 1 of 5
(4,725 Views)

Hello David!

 

I would like to know more about the context in which you are experiencing the crash:

  1. What version of exact CVI (e.g. CVI 2013, CVI 2013 SP2) are you using?
  2. Is the application always crashing in InsertTreeItem?
  3. What is the crash address?
  4. Could you provide a code snippet with the code that reproduces the issue? Otherwise, a project sample that reproduces the problem is also fine.

Best regards,

- Johannes

0 Kudos
Message 2 of 5
(4,677 Views)

hello,

 

1) that's CVI2010

2) yes always on this line InsertTreeItem (It crashes sometimes)

3) crash address : 0x684BE844

4) attachment :  the function and the 2 InsertTreeItem..

5) thanks.

 

0 Kudos
Message 3 of 5
(4,669 Views)

Hello David!

 

Unfortunately the code you provided is rather insufficient for me to determine the behavior of the program at run time.

Is it possible for you to attach a compilable version of the application, that can reproduce the problem?

 

Thank you!

- Johannes

0 Kudos
Message 4 of 5
(4,519 Views)

Hello, David!

 

Have to managed to find a workaround for this issue?

Is it possible for you to send a compilable version of the code?

 

Thank you!

- Johannes

0 Kudos
Message 5 of 5
(4,295 Views)