Home > Forum > VideoCaptureCore.Debug_DisableMessageDialogs seems not to work

VideoCaptureCore.Debug_DisableMessageDialogs seems not to work

Oct 09, 2023
Christa Kallenberger wrote
Hi all,
I would like to get debug information from my video capture class but only in the log file.
This is my code:
_videoCapture.Debug_Mode = true;
_videoCapture.Debug_DisableMessageDialogs = true;
_videoCapture.Debug_Dir = myPath;
Message dialogs are still shown. Why? Am I missing something?
Thanks in advance for your answer!
Regards
Christa
Reply
4 Answers
Oct 09, 2023
Roman Miniailov agent wrote
Hi

Which message dialogs?
Oct 09, 2023
Christa Kallenberger wrote
If Debug_Mode is set on true, message boxes with debug information are shown. One needs to click them away to be able to continue. I don't want to do this, but I would like to get the debug information in the log files.
I thought that the option Debug_DisableMessageDialogs steers this.
API Documentation: for this option "Gets or sets a value indicating whether message dialog will be shown in case of error if OnError event is not implemented." (https://www.visioforge.com/help-api/dotnet/api/VisioForge.Core.VideoCapture.VideoCaptureCore.html?q=VideoCaptureCore)
Oct 09, 2023
Roman Miniailov agent wrote
The latest SDK version?

Try to implement the OnError event with some code like Debug/Trace/any other (empty event will be removed during compilation).
Oct 09, 2023
Christa Kallenberger wrote
Yes, I use the latest SDK version...