LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Tab key in the ActiveX AcroPDF crashes application

Hello everybody,

 

I wonder whether any of you had this problem working with an ActiveX which displays a PDF file.  This is the situation:

 

 -  I've designed a VI which displays a pdf file in the ActiveX container (see attached) using LabVIEW 2009 Proffessional SP1.  I'm running in Windows XP, and I've got installed Adobe Reader 8.

 - When running this VI using LabVIEW, everything works fine.

 - I've build an executable, which works perfect in the computer where LabVIEW is installed.

 

Now, I try to execute the same executable in a clean computer which has installed Adobe Reader 9 and LabVIEW Run-Time 9.  It seems to work fine, and the pdf is perfectly displayed, with all the Adobe options working well.  But the problem shows when pressing the "Tab" key.  The executable crashes with the typical windows screen which says that an error has been detected and that the program will be closed.  And that is what happens.  The application is closed suddenly,

 

I remember to have seen few months ago a post with the same issue.  A bug in LabVIEW 8.5 would be the reason and I thought that the problem would dissapeared when getting the LabVIEW 2009.  But as far as I can see, it didn't, and I cannot find this post again.

 

Thanks in advance for any help you might give me, and if you need further details of the VI or versions used, just let me know.  I hope somebody came accross with this issue before and can give me a hand.

 

Regards,

 

Dani

 

 

0 Kudos
Message 1 of 7
(4,601 Views)

I've used the same setup you're describing (Reader 8, LV9, XP) to let the user see a help document.  I've never heard of the crash issue.  One thing you should do is close the reference to Acrobat after you change the zoom to 50%.  Not sure if that will solve your crash problem though.

-------------------
Greg
Certifed LabVIEW Developer
0 Kudos
Message 2 of 7
(4,570 Views)

Hi Greg.

 

The fact is that the code you can see in the image attached is the second version that I try.  In the first one, I had done what you suggest, to close the reference.  In this first version is when I found this problem.  Trying to find a solution, I decided to try this second version (removing the Close Reference block and leaving the reference open), just in case the crash was due to interaction with the ActiveX control when the reference had been closed.  No luck.  Both settings make my application to crash.

 

Anyway, thank you very much for answering Greg.  Let's see if another solution is found.

 

Dani

 

 

0 Kudos
Message 3 of 7
(4,565 Views)

Well, that seems like a definite LabVIEW bug to me.  I just reproduced it (NOT as an executable) with a simple self-contained program.  I've attached a code snippet below.  While it is running I pressed the Tab several times.  Eventually it locks up and closes LV without any notice at all.  It's a very repeatable crash, for what that's worth.

 

16999i9CD160200F99DEEC

-------------------
Greg
Certifed LabVIEW Developer
0 Kudos
Message 4 of 7
(4,556 Views)

Shame... I thought this bug was fixed after LabVIEW 8.5, but I cannot find the link that I found few months ago.  Have you reported a bug before to National Instruments, so the bug can be fixed for later versions?

0 Kudos
Message 5 of 7
(4,518 Views)

Hi Dani,

 

Thanks for posting. I've tried this out on my machine running LabVIEW 2009 SP1 and get the same crash, so I've sent a Corrective Action Request (CAR) to R&D under the reference number 238388.

 

This is to late for LabVIEW 2010 but keep an eye out in future releases.

 

Kind regards,

Rico P
Smiley Very Happy
0 Kudos
Message 6 of 7
(4,430 Views)

Hi Rico,

 

Thanks for doing that.  I will have to disable the TAB key meanwhile and let's see if this problem is solved in a near future.

 

Dani

0 Kudos
Message 7 of 7
(4,416 Views)