Log in

View Full Version : Producer SDK and Error Detection


Sirber
25th March 2004, 00:59
Using the SDK, how can I detect errors? With commandline appplication, I used the ExitCode returned by the app. I can't find anything similar with the DLL.

[edit]

Found some doc:

https://helix-producer.helixcommunity.org/nonav/specs/producer/current/ActiveX/interfaces.htm

using google.com... HC is such a pain. The doc bundeled with SDK is outdated.

Sirber
25th March 2004, 01:26
else if (encodertype = 1) then // activex
begin
// Configure DLL
producer_sdk.JobFilename := jobfilename;
producer_sdk.TempDirectory := tempdir;

// Start job
producer_sdk.StartJob;
while producer_sdk.IsRunning do
Application.ProcessMessages;

// Error check
if (producer_sdk.JobDuration = producer_sdk.ElapsedDuration) then
Result := 0
else
Result := 1;
end;I guess this is the only way to check if the encoding has been completed completly with no errors in Delphi. The OnEvent thing can't seem to be possible to implement in object-oriented code.