取消
显示结果 
搜索替代 
您的意思是: 

[bug] get clipboard image fails in executable

已解决!
转到解答

The 'Get Clipboard Image' method fails for images in built executables.

It works for text (you get an image of the text back).

In the runtime environment it works ok.

LabVIEW versions:

  • 2012
  • 2013

 

Test code:

GetClipboardImage.png

 

Regards,

 

Ton

Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
Nederlandse LabVIEW user groep www.lvug.nl
My LabVIEW Ideas

LabVIEW, programming like it should be!
0 项奖励
1 条消息(共 37 条)
7,362 次查看

I dont think so, because in LV2011 it works

--------------------------------------------------------------------------------------------------------
Kudos are always welcome if you got solution to some extent.

I need my difficulties because they are necessary to enjoy my success.
--Ranjeet
0 项奖励
2 条消息(共 37 条)
7,338 次查看

You want to retrive data related to image or image?

--------------------------------------------------------------------------------------------------------
Kudos are always welcome if you got solution to some extent.

I need my difficulties because they are necessary to enjoy my success.
--Ranjeet
0 项奖励
3 条消息(共 37 条)
7,334 次查看

I want to get the clipboard image. If I run this code in the Development environment I get an image with the latest clipboard info.

If I run it (on the same) PC in an executable I get an image with the latest text data.

 

Ton

Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
Nederlandse LabVIEW user groep www.lvug.nl
My LabVIEW Ideas

LabVIEW, programming like it should be!
0 项奖励
4 条消息(共 37 条)
7,319 次查看

I know for sure that it worked in LV 7.0, because I had an executable which copied the image from the clipboard using that method and displayed it in a picture control (in fact, I just dug it up and ran it now with the snippet you posted and it showed it just fine). Maybe it broke at some point along the way. I actually just tested it now in 2011 and it doesn't work there either when I build an EXE.


___________________
Try to take over the world!
0 项奖励
5 条消息(共 37 条)
7,307 次查看

check the RUN time property of all the components

--------------------------------------------------------------------------------------------------------
Kudos are always welcome if you got solution to some extent.

I need my difficulties because they are necessary to enjoy my success.
--Ranjeet
0 项奖励
6 条消息(共 37 条)
7,300 次查看

Ton,

How about now? I meet the same issue about Clipboard.Get Image node. 

 

http://forums.ni.com/t5/LabVIEW/Write-PNG-file-failed-when-build-exe-but-run-normally-on-the/m-p/254...

Colin Zhang
------------------
LV7.1/8.2/8.2.1/8.5/8.6/9.0/2010/2011/2013/2015/2016/2020; test system development; FPGA; PCB layout; circuit design...
Please Mark the solution as accepted if your problem is solved and donate kudoes


Home--colinzhang.net: My Blog

iTestGroup: One-step test solution provider!
ONTAP.LTD : PCBA test solution provider!
0 项奖励
7 条消息(共 37 条)
7,287 次查看

The method is not on the 'not supported in thr RTE' list, here's the detail about this method:

Remarks

The following table lists the characteristics of this method.

Data type No return value
Available in Run-Time Engine Yes (Read/Write)
Available in Real-Time Operating System Yes
Remote access allowed

Yes

 

So I have a feeling that it should work, note that is works if the clipboard has text!

 

Ton

Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
Nederlandse LabVIEW user groep www.lvug.nl
My LabVIEW Ideas

LabVIEW, programming like it should be!
0 项奖励
8 条消息(共 37 条)
7,253 次查看

Yes, i feel the same. 

Colin Zhang
------------------
LV7.1/8.2/8.2.1/8.5/8.6/9.0/2010/2011/2013/2015/2016/2020; test system development; FPGA; PCB layout; circuit design...
Please Mark the solution as accepted if your problem is solved and donate kudoes


Home--colinzhang.net: My Blog

iTestGroup: One-step test solution provider!
ONTAP.LTD : PCBA test solution provider!
0 项奖励
9 条消息(共 37 条)
7,232 次查看

Why dont you store the array of pixels values to clipboard and later retrieve this only and show the image to user. This will solve the problem

--------------------------------------------------------------------------------------------------------
Kudos are always welcome if you got solution to some extent.

I need my difficulties because they are necessary to enjoy my success.
--Ranjeet
0 项奖励
10 条消息(共 37 条)
7,225 次查看