SerialCamera module, exception in driver

Its a serial cam, and it returns a jpeg encoded image which is often less than 20K, that should be possible…or am I wrong?

At least you check the image-size before downloading it…?

You are right. The file might fit in memory. The corresponding bitmap will be a challenge depending on total memory use.

[quote=“Ingeborg”]You have 2 days to explain because I have to work on other projects.

Now you are just beeing rude. No one have to explain anything, and demanding people to do your homework is not going to get you anywhere.

@ DAT : Yes, such an example.But: I tried it
and nothing happend:
CODE (how can I put it in an code area???)

using System.Threading;
using Gadgeteer.Modules.GHIElectronics;
using Microsoft.SPOT;
using GT = Gadgeteer;

namespace serCam02
    public partial class Program
        // This method is run when the mainboard is powered up or reset.   
        void ProgramStarted()
            // Use Debug.Print to show messages in Visual Studio's "Output" window during debugging.
            Debug.Print("Program Started"); 
            new Thread(VideoStreaming).Start();
        int imageCnt;
        void VideoStreaming() {
            imageCnt = 5;
            while (imageCnt > 0)
                long start = Microsoft.SPOT.Hardware.Utility.GetMachineTime().Ticks;
                if (serCam.isNewImageReady)  {
                    serCam.isNewImageReady = false;
                    byte[] data = serCam.dataImage;
                    int picture_size = serCam.dataImage.Length;
                    long end = Microsoft.SPOT.Hardware.Utility.GetMachineTime().Ticks;
                    long duration = (end - start) / 10000;
                    Debug.Print("duration;  " + duration.ToString() + " ms, " + "  length:  " + picture_size.ToString());
                    Debug.Print("Picture size =  " + serCam.dataImage.Length);

Der Thread ‘’ (0x2) hat mit Code 0 (0x0) geendet.
Using mainboard GHI Electronics FEZCerberus version 1.1
Program Started

@ Ingeborg -

Nothing happened because you sleep(1000);
that is too high, reduce to 5 or 10 will be fine. It because the camera still scanning and isNewImageReady is always changed. Sleep(1000) it still work but you may wait for few minutes or hours.