CaptureCameraDialog 返回 OK 但不保存(摩托罗拉 ES400)

发布于 2024-10-08 22:14:29 字数 365 浏览 0 评论 0原文

好吧,似乎世界上每个人都对 CaptureCameraDialog 存在问题。

就我而言,结果还不错,但是拍照时有一个消息框,上面写着“错误”,眨眼间出现并消失,然后返回到我的应用程序(所以我没有时间实际阅读错误)。

它尚未保存该文件。 它不会向我的应用程序抛出错误。

还有另一个问题与这里讨论的问题完全相同(但没有一个修复对我有用)。 http://www.pcreview.co.uk/forums/thread-4025602.php

有谁知道如何获取对话框瞬间显示的“错误消息”?

Ok it seems like everyone in the world has issues with CaptureCameraDialog.

In my case the result is OK, but when taking the photo there is a MessageBox that says "Error" that appears and disappears in the blink of an eye, then returns to my app (so I don't have time to actually read the error).

It has not saved the file.
It does not throw an error to my application.

There is also another issue which is exactly the same as the issue talked about here (yet none of the fixes work for me).
http://www.pcreview.co.uk/forums/thread-4025602.php

Does anyone know how to get the "error message" that the dialogue box displays for an instant?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

醉生梦死 2024-10-15 22:14:29

好吧,经过一番折腾之后,我使用的程序似乎始终与 SQLCompact 保持开放连接。该代码来自第三方,并且没有 Close() 或 Dispose(),所以这就是问题所在。

为了解决这个问题,我只是在我编写的一个小应用程序上执行了 Process.Start,该应用程序实际上运行,拍照,将其保存到磁盘,然后卸载。与此同时,我的应用程序启动了一个计时器来查看照片的目录。

这是一个非常糟糕的解决方案,但它有效,而且我没有时间,所以必须完成!

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!

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文