Click here to Skip to main content
15,567,415 members
Home / Discussions / C#
   

C#

 
QuestionCreating barcode of type ean-13 in c# windows forms with sql server 2008 using StrokeScribe control of version 4.3.2 Pin
Member 102487683-Feb-14 20:00
Member 102487683-Feb-14 20:00 
SuggestionRe: Creating barcode of type ean-13 in c# windows forms with sql server 2008 using StrokeScribe control of version 4.3.2 Pin
Richard MacCutchan3-Feb-14 22:53
mveRichard MacCutchan3-Feb-14 22:53 
QuestionNorth wind Database Pin
Sandhya Bandar3-Feb-14 10:46
Sandhya Bandar3-Feb-14 10:46 
AnswerRe: North wind Database Pin
Kornfeld Eliyahu Peter3-Feb-14 10:54
professionalKornfeld Eliyahu Peter3-Feb-14 10:54 
AnswerRe: North wind Database Pin
Dave Kreskowiak3-Feb-14 13:49
mveDave Kreskowiak3-Feb-14 13:49 
JokeRe: North wind Database Pin
Kornfeld Eliyahu Peter3-Feb-14 21:19
professionalKornfeld Eliyahu Peter3-Feb-14 21:19 
AnswerRe: North wind Database Pin
Marco Bertschi3-Feb-14 22:04
professionalMarco Bertschi3-Feb-14 22:04 
QuestionWorking with Bitmaps Pin
BBatts3-Feb-14 8:45
BBatts3-Feb-14 8:45 
Hello,

I'm collecting bitmaps from a camera like below:

C#
private void LPRCamera2_OnNewFrame(object sender, ref Bitmap NewFrame)
       {
           while (LPR2List.Count >= LowCamSettings.LPR2FrameCount)
           {
               LPR2List[0].Dispose();
               LPR2List.RemoveAt(0);
           }

           if (lpr2FrameIndex >= LowCamSettings.LPR2SkipCount)
           {
               LPR2List.Add(new Bitmap(NewFrame));   //List<Bitmap> object
               lpr2FrameIndex = 0;
           }
           else if (LowCamSettings.LPR2SkipCount > 0)
               lpr2FrameIndex++;
       }



I then take the list (LPR2List) and pass it to a new object that copies the list to a local variable. Like so:

C#
for (int i = 0; i < LPR2List.Count; i++)
{
    if (LPR2List[i] != null)
        this.Plate2List.Add((Bitmap)LPR2List[i].Clone());  //Error Line
}


Every now and then i'm getting an error when copying telling me that the object is in use.

I haven't the slightest clue what I could be doing wrong. Any help would be greatly appreciated.

modified 3-Feb-14 13:54pm.

AnswerRe: Working with Bitmaps Pin
TnTinMn4-Feb-14 7:56
TnTinMn4-Feb-14 7:56 
QuestionProject Question Pin
reaper21913-Feb-14 6:15
reaper21913-Feb-14 6:15 
AnswerRe: Project Question Pin
Alan Balkany3-Feb-14 6:20
Alan Balkany3-Feb-14 6:20 
AnswerRe: Project Question Pin
Pete O'Hanlon3-Feb-14 6:48
mvaPete O'Hanlon3-Feb-14 6:48 
AnswerRe: Project Question Pin
OriginalGriff3-Feb-14 7:11
mvaOriginalGriff3-Feb-14 7:11 
GeneralRe: Project Question Pin
reaper21913-Feb-14 7:20
reaper21913-Feb-14 7:20 
GeneralRe: Project Question Pin
OriginalGriff3-Feb-14 7:43
mvaOriginalGriff3-Feb-14 7:43 
GeneralRe: Project Question Pin
Matt T Heffron3-Feb-14 9:06
professionalMatt T Heffron3-Feb-14 9:06 
GeneralRe: Project Question Pin
reaper21913-Feb-14 18:09
reaper21913-Feb-14 18:09 
AnswerRe: Project Question Pin
Matt T Heffron3-Feb-14 19:44
professionalMatt T Heffron3-Feb-14 19:44 
AnswerRe: Project Question Pin
V.3-Feb-14 21:22
professionalV.3-Feb-14 21:22 
QuestionCreating a small project using C# - Please Help Pin
Mohan Subramani3-Feb-14 1:11
Mohan Subramani3-Feb-14 1:11 
AnswerRe: Creating a small project using C# - Please Help Pin
Pete O'Hanlon3-Feb-14 1:18
mvaPete O'Hanlon3-Feb-14 1:18 
QuestionRe: Creating a small project using C# - Please Help Pin
Mohan Subramani3-Feb-14 2:02
Mohan Subramani3-Feb-14 2:02 
AnswerRe: Creating a small project using C# - Please Help Pin
Richard MacCutchan3-Feb-14 1:22
mveRichard MacCutchan3-Feb-14 1:22 
QuestionRe: Creating a small project using C# - Please Help Pin
Mohan Subramani3-Feb-14 2:16
Mohan Subramani3-Feb-14 2:16 
AnswerRe: Creating a small project using C# - Please Help Pin
Richard MacCutchan3-Feb-14 3:18
mveRichard MacCutchan3-Feb-14 3:18 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.