What happened to “SerCam.PictureCaptured” and “SerCam.PictureCapturedEventHandler”?
I’m running 4.2 and i don’t see that method available anymore.
I’m working with the “testapp” example on codeplex for the serial camera module.
Have these methods have been replaced? If so, can “testapp” be updated with the proper code for retrieving an image from the camera?
This example is located here: [ol]http://gadgeteer.codeplex.com/SourceControl/changeset/view/21495#273388[/ol]
Thanks
I think it was removed. As I know it is using an event to pass data to user after every 128 bytes received from SerCam module. So user can use these data to save to SD, USB or display on LCD…
okay thanks.
I have a simple program that calls TakePicture() when a button is pressed.
I’m getting the following error from VS Express when my button is pressed:
An unhandled exception of type ‘System.NullReferenceException’ occurred in GTM.GHIElectronics.SerCam.dll
Call stack location:
GTM.GHIElectronics.SerCam.dll!Gadgeteer.Modules.GHIElectronics.SerCam.ReadFrameBuffer(int size) Line 205 + 0xa bytes
Source file information:
Locating source for ‘C:\Gadgeteer SVN\Main\Modules\GHIElectronics\SerCam\Software\SerCam\SerCam_42\SerCam_42.cs’. Checksum: MD5 {b2 ee 75 e1 86 48 4a ff 35 f6 2e c 9d 58 e f1}
The file ‘C:\Gadgeteer SVN\Main\Modules\GHIElectronics\SerCam\Software\SerCam\SerCam_42\SerCam_42.cs’ does not exist.
Looking in script documents for ‘C:\Gadgeteer SVN\Main\Modules\GHIElectronics\SerCam\Software\SerCam\SerCam_42\SerCam_42.cs’…
Looking in the projects for ‘C:\Gadgeteer SVN\Main\Modules\GHIElectronics\SerCam\Software\SerCam\SerCam_42\SerCam_42.cs’.
The file was not found in a project.
Looking in directory ‘C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE\vc7\atlmfc’…
Looking in directory ‘C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE\vc7\crt’…
Looking in directory ‘C:’…
The debug source files settings for the active solution indicate that the debugger will not ask the user to find the file: C:\Gadgeteer SVN\Main\Modules\GHIElectronics\SerCam\Software\SerCam\SerCam_42\SerCam_42.cs.
The debugger could not locate the source file ‘C:\Gadgeteer SVN\Main\Modules\GHIElectronics\SerCam\Software\SerCam\SerCam_42\SerCam_42.cs’.
Can you help?
Thanks