i downloaded this source code , i tried to run it but when i click start recording it crash ! , i wonder what make it crash and what to do to avoid any further error in this code?
DesktopEncoder.PrepareToEncode(true);
Instead of blindly running other peoples code, please read their whole article:
Prerequisites:
In order to use this application, we require Media Player Encoder 9.
He even gives a download link.
Edit:
The error code says:
0xC00D0072
NS_E_NO_SPECIFIED_DEVICE
"No specified device driver is present."
It seems you are missing something important.
Related
I working on a pdf generator with NRec PdfGenerator and it works fine at the start when I working with local, once I package up and deploy to server it fail and show the error message
Cannot generate PDF: (exit code: -1073741521) ---> NReco.PdfGenerator.WkHtmlToPdfException: (exit code: -1073741521)
I not sure whats causing it and I believe is not related to the code itself, and I could find any related post or article that about the exit code shown.
Is there anyway to fix this error?
Any advice to this will be appreciated. Thanks.
As Vitaliy Fedorchenko commented, the problem, in the compatible operating systems, can be solved by installing the missing required Universal C runtime libs ( https://support.microsoft.com/en-us/help/2999226/update-for-universal-c-runtime-in-windows ).
I download the source only tutorial here. When I run it with connect my Canon 70D, I got the error below.
What is the point I missed?
The Error:
The error occurs on this line:
And here is how the folder which includes EXE file looks like:
I fixed this problem by letting the camera know there's enough disk space on the host.
Adding the line
CameraHandler.SetCapacity();
before
CameraHandler.TakePhoto();
should do the trick.
Error 0x8D07 stands for EDS_ERR_TAKE_PICTURE_CARD_NG
I'm not a 100% sure what it means but it's some sort of write error. To resolve this, format the card, switch off the camera and put out the battery for a few seconds.
This should fix the problem.
i found an article on this site http://www.codeproject.com/Articles/9676/Extracting-still-pictures-from-movie-files-with-C
about video frames extraction.
i am trying to run the source code given here..
i created a new project added the given C# code in it.
then i added the given reference " interop.dexterlib.dll" in it.
it gives an error about MediaDetClass.
Error 1
Interop type 'DexterLib.MediaDetClass' cannot be embedded. Use the applicable interface instead.
i am not getting it how to solve this. please help.
I've done this example http://msdn.microsoft.com/library/windowsphone/develop/hh202959(v=vs.105).aspx
and it works partially.
When I download a file and I stay in the download page it doesn't give any errors but if I go out from the page and then I return, the emulator crashes and give the error: IsolatedStorageException Operation not permitted.
That is a Microsoft example and I can't find any solution.
Thanks,
Mattia
You can not have one stream read and another write at the same time.
The scenario only works when you have something already in the file, and you write to one stream and read the contents of the file at the same time.
Take look over here Operation not permitted on IsolatedStorageFileStream. error
I have a bit of a strange problem, in my program, when I open a PDF file using the following command:
Process.Start("test.pdf");
the first time, the file is opened just fine, but the second time I use this command on ANY pdf file, at ANY position in the code, vshost.exe crashes.
My next step was to disable vshost, with vshost disabled, the application its self crashes.
When I say 'crashes' I mean it says that it has stopped responding.
If I create a new project, it works just fine, so it must be something wrong with my project?
I am using the iTextSharp library at other points in the code to create the pdfs, could this be a cause?
I realise this problem is very general but I have no idea what could be causing it so I dont know what information to provide.
More info:
When I look at the output of the debugger after the program crashes it says "The program '[4320] SmartShelf.exe: Managed (v4.0.30319)' has exited with code -1073741819 (0xc0000005) 'Access violation'."
Edit: Does anybody know any other way of viewing a pdf using c#?
I would use using context or the dispose command to get rid of any open file connections before calling the start("asdf.pdf") and see if that takes care of it.
Also make sure your process is running as admin in win7.
And another thing you can try is use process.start(cmd, "aspdf.pdf") this way your starting a command window and it calls the pdf starter.
Although not perfect, my solution in the end was to display the pdf in a webBrowser control, by setting the URL to the path of the PDF using
webBrowser1.Navigate("asdf.pdf");
this displayed it in adobe reader but within a web browser.
This solution suited my needs absolutely fine (if not better) and doesn't cause the application to crash. Thanks for everybody's suggestions.