LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Program crash when i use SetBitmapToFile command in 16bit True colour.

i am using cvi 5.0 and i need to save a graph plot as a picture file. i used the SetBitmapToFile command from one of the examples from NI knowledgebase. this command cause a page fault in kernel32.dll when i run the program under 16bit high colour(display). it works fine when i use 32bit True colour but the saved bitmap is distorted. half of the image has purple lines running vertically across the pictures. Can anyone tell me how to solve this problems or give suggestion of any other methods.

thanks
0 Kudos
Message 1 of 3
(2,865 Views)
Sang:

This issue sounds like a complex one that we would like to be able to reproduce. You may want to contact our technical support via email at http://www.ni.com/ask or by calling the technical support number for your area listed on the page at http://www.ni.com/support/wrldwide.htm to continue this discussion.

Best Regards,

Chris Wood
Applications Engineer
National Instruments
0 Kudos
Message 2 of 3
(2,865 Views)
Thanks Chris.

i have narrowed down the problem. it seems that this problem occurs only when i try to save the bitmap of the graph control (only that particular graph). any other control on that panel, including the panel itself can be saved as a bmp file without any problem. i still do not know what is the problem but i have overcome this by saving the whole panel using GetScaledPanelDisplayBitmap and specify a rectangle around the graph. this way, i manage to save a bmp of the graph.
0 Kudos
Message 3 of 3
(2,865 Views)