W wheretheidivides Active Member Licensed User Longtime User Mar 2, 2013 #1 . Last edited: May 24, 2020
Erel B4X founder Staff member Licensed User Longtime User Mar 3, 2013 #2 Can you upload your complete project (File - Export as zip)? Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Mar 4, 2013 #3 The error you get is in the native camera driver. Add a one second delay until you reenable the camera. It seems to fix this issue. You can create these subs: Code: Copy Sub TakePicture ProgressDialogShow2("Saving image...", False) disableCameraTimer.Enabled = True CamEx.TakePicture End Sub Sub DisableCameraTimer_Tick disableCameraTimer.Enabled = False ProgressDialogHide End Sub Upvote 0
The error you get is in the native camera driver. Add a one second delay until you reenable the camera. It seems to fix this issue. You can create these subs: Code: Copy Sub TakePicture ProgressDialogShow2("Saving image...", False) disableCameraTimer.Enabled = True CamEx.TakePicture End Sub Sub DisableCameraTimer_Tick disableCameraTimer.Enabled = False ProgressDialogHide End Sub
agraham Expert Licensed User Longtime User Mar 4, 2013 #4 I think the CamerEx.TakePicture calls code runs on a different thread and so returns immediately so your button is never actually disabled. You need to enable the button again in the PictureTaken event or if there is an error thrown. Upvote 0
I think the CamerEx.TakePicture calls code runs on a different thread and so returns immediately so your button is never actually disabled. You need to enable the button again in the PictureTaken event or if there is an error thrown.