Hi
this is probably not a request for help, rather a request of clarification, or possibly a rectification of my conclusions. The problem is resumed in the following:
1) I have a layout with a Panel "Main" containing some EditTexts and another Panel "pnlA".
2) Inside Main, I have a panel "pnlA" which is used by CameraExClass to take photos. pnlA has Parent "Main"
3) If I put over "pnlA" a button "Foto" , having pnlA as parent, the App crashes (when I initialize the CameraEx) (pnlA is the white Panel)
4) If same Button "Foto", besides being displayed over pnlA, has parent "Main" everything works.
The crash happens even without Clicking the Button, only initializing the Camera, as shown in the log.
Camera is initialized with:
CamEx.Initialize(pnlA, frontCamera, Me, "Camera1")
My conclusion is that i cannot put the Button on the Panel "pnlA" connected to CameraEx, having pnlA as parent.
The problem is apparently emphirically resolved..
Error is reported in the attached log and occurs at:
Public Sub Initialize (Panel1 As Panel, frontCamera As Boolean, TargetModule As Object, EventName As String)
target = TargetModule
event = EventName
Front = frontCamera
Dim id As Int
id = FindCamera(Front).id
If id = -1 Then
Front = Not(Front) 'try different camera
id = FindCamera(Front).id
If id = -1 Then
Log("No camera found.")
Return
End If
End If
Log("Panel1 " & Panel1) ' Panel1 is pnlA ..
cam.Initialize2(Panel1, "camera", id) ' <<<<<<<<<<<error here (line 34)
End Sub