Pregunta

Ok parece que todo el mundo tiene problemas con CaptureCameraDialog.

En mi caso, el resultado está bien, pero cuando se toma la foto hay un cuadro de mensaje que dice "error" que aparece y desaparece en un abrir y cerrar de ojos, a continuación, vuelve a mi aplicación (por lo que no tengo tiempo de leer realmente el error).

No se ha guardado el archivo. No tira un error de mi solicitud.

También hay otro problema que es exactamente el mismo que el tema habló de aquí (sin embargo, ninguno de los arreglos de trabajo para mí). http://www.pcreview.co.uk/forums/thread-4025602.php

¿Alguien sabe cómo conseguir el "mensaje de error" que el cuadro de diálogo se muestra para un instante?

¿Fue útil?

Solución

Ok, after a lot of hair pulling it seems that the program I was using always had an open connection to SQLCompact. The code was from a third party and din't have a Close() or Dispose() so this was the problem.

To get round it I just did a Process.Start on a tiny application I wrote that literally runs, takes a picture, saves it to disk, then unloads. In the meantime my app started a timer to watch a directory for the photo.

This was a pretty terrible solution, but it works and I was out of time, so had to be done!

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top