06-08-2007 08:44 PM
06-10-2007 09:16 PM
Could it be that you misspelled some of your variables?
In here you have "camera" spelled properly.
Private Declare Sub Snap Lib "E:\builds\Snap\SnapImage\SnapImage.dll" Alias "Snap" (ByVal Path As String, ByVal cameraName As String)
Elsewhere, you spelled it "carema" which is obviously wrong.
Snap(Picture_Addr, caremaName) 'Exception Occurred! Exception Information:Try to read or write the protected memory,this usually indicate other memories have 'been damaged
Should you have given the variable CameraName a value besides an empty string in order to get it to work?
Dim caremaName As String = ""
06-11-2007 12:45 AM
06-11-2007 08:24 AM - edited 06-11-2007 08:24 AM
Message Edited by Ravens Fan on 06-11-2007 09:27 AM
06-11-2007 07:39 PM
Hi,
Thank you for your suggestion,I extremely aggre with you .Misspelled is assuredly not a good custom.I'll be careful later.
actually,cameraname string is return value,may be you'll very amazed.In LabVIEW,cameraname is a indicator's name,it
is a output connector,I don't know why cameraname in the function protype in .dll created by LabVIEW is a input parameter.
Do you know the cause?
I really appreciate your reply,Thanks again!Pls excuse me my English is poor .
EnquanLi
China