Hi all,
I'm new here and first of all I want to introduce myself.
My name is Conrad, I'm Dutch, living for over 30 years in Germany.
My writing in English is as good as I can and as bad as it is, sorry for that...
I have iCamsource Beta installed on a Windows XP Prof. Sp3 computer with Microsoft .NET Framework 3.5 Sp1 and Microsoft Visual C++ 2008.
This machine has Pentium 4 with 3.4 GHz and 2.0 GB RAM.
I have 6 Foscam WiFi Cameras running and (had) massive problems with system access violation exceptions just by starting the icamsource.exe.
If the program -once in a while- did not freeze, it went down the moment I started the app at my iPhone. All of the Time however, the CPU usage never got over 60%...
The access violation exceptions looked like this one:
************** Ausnahmetext **************
System.AccessViolationException: Es wurde versucht, im geschützten Speicher zu lesen oder zu schreiben. Dies ist häufig ein Hinweis darauf, dass anderer Speicher beschädigt ist.
bei new(UInt32 )
bei std._Allocate<class std::_Aux_cont>(UInt32 _Count, _Aux_cont* __unnamed001)
bei std._Container_base_aux_alloc_real<std::allocator<int> >.{ctor}(_Container_base_aux_alloc_real<std::allocator<int> >* , allocator<int>* _Al)
bei std._Vector_val<int,std::allocator<int> >.{ctor}(_Vector_val<int\,std::allocator<int> >* , allocator<int>* _Al)
bei std.vector<int,std::allocator<int> >.{ctor}(vector<int\,std::allocator<int> >* )
bei CameraSettings.{ctor}(CameraSettings* , Int32 index)
bei WiniCamSource.Form1.SaveCamera(Int32 index)
bei WiniCamSource.Form1.cameraListbox_SelectedIndexChanged(Object sender, EventArgs e)
bei System.Windows.Forms.ListBox.OnSelectedIndexChanged(EventArgs e)
bei System.Windows.Forms.ListBox.WmReflectCommand(Message& m)
bei System.Windows.Forms.ListBox.WndProc(Message& m)
bei System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
bei System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
bei System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
************** Geladene Assemblys **************
mscorlib
Assembly-Version: 2.0.0.0.
Win32-Version: 2.0.50727.3082 (QFE.050727-3000).
CodeBase: file:///c:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll.
----------------------------------------
WiniCamSource
Assembly-Version: 1.0.4190.27692.
Win32-Version: .
CodeBase: file:///C:/Programme/iCamSource/iCamSource.exe.
----------------------------------------
msvcm90
Assembly-Version: 9.0.30729.4148.
Win32-Version: 9.00.30729.4148.
CodeBase: file:///C:/WINDOWS/WinSxS/x86_Microsoft.VC90.CRT_1fc8b3b9a1e18e3b_9.0.30729.4148_x-ww_d495ac4e/msvcm90.dll.
----------------------------------------
System.Drawing
Assembly-Version: 2.0.0.0.
Win32-Version: 2.0.50727.3053 (netfxsp.050727-3000).
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll.
----------------------------------------
System
Assembly-Version: 2.0.0.0.
Win32-Version: 2.0.50727.3053 (netfxsp.050727-3000).
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll.
----------------------------------------
System.Windows.Forms
Assembly-Version: 2.0.0.0.
Win32-Version: 2.0.50727.3053 (netfxsp.050727-3000).
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll.
----------------------------------------
mscorlib.resources
Assembly-Version: 2.0.0.0.
Win32-Version: 2.0.50727.3082 (QFE.050727-3000).
CodeBase: file:///c:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll.
----------------------------------------
System.Drawing.resources
Assembly-Version: 2.0.0.0.
Win32-Version: 2.0.50727.1433 (REDBITS.050727-1400).
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Drawing.resources/2.0.0.0_de_b03f5f7f11d50a3a/System.Drawing.resources.dll.
----------------------------------------
System.Windows.Forms.resources
Assembly-Version: 2.0.0.0.
Win32-Version: 2.0.50727.1433 (REDBITS.050727-1400).
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Windows.Forms.resources/2.0.0.0_de_b77a5c561934e089/System.Windows.Forms.resources.dll.
----------------------------------------
I can't read stuff like that, but I bet some of you guys can...
What ever the cause of this issue might have been, I think I solved it by changing some settings in the icamsource.
Since iCamsource uses JPEG pictures to store motion detection, I thought it might help to change settings in just that way.
On the WiFi URL setting I had (for example):
http://192.168.2.5/videostream.cgi and the radio button
MJPEG turned on.
Now I changed this in to
http://192.168.2.5/snapshot.cgi and the radio button
JPEG turned on.
I changed these settings with all the cameras and put all the sliders I found on 'Camera' and 'Motion Detection' in the middle.
From there the program runs (almost) stable!CPU usage even got down to 7% !
This made me happy, but still raises questions.
How can this be?
Is the need of resources by running videostream.cgi and the Mjpeg files so high that the system hangs up?
Is this what I have done a real solution?
If it is, can this work with other cameras as well?
(since I just have Foscam Cameras I can't say if it will work for other cameras as well)
Could it be useful to make a kind of help file with common possible good (and bad) settings (especially the slider settings; I really don't know what they are all about...)?
Hopefully this was useful for you guys.
Thank you for your time reading all this!
cu
Conrad