![]() |
|
|
|
|
|
|
|
|
8
26th August 08:47
External User
Posts: 1
|
Now I have tried with Threads!
My code: -------------------------------------------------------- void __fastcall T::Execute() { TQCVideoX *Video; try { while( !Terminated ) { AnsiString S = "tmp.bmp"; wchar_t * m_filename = new wchar_t[S.WideCharBufSize()]; m_filename = S.WideChar(m_filename,S.WideCharBufSize()); -> Video->SaveSingleFrameToFile(m_filename); Synchronize(DisplayImage); } } __finally { delete Video; } } ----------------------------------------------- I have used: TQCVideoX *Video; because TQCVideoX *Video= new TQCVideoX(NULL); doesn't work!!! The program stop and I have an error in file UTILCLS.H: bool operator ! () const { return m_Dispatch == 0; } I think that I have to use somewere in Thread the methods //Video->Initialization (0); //Video->SetVideoDisplay(TRUE); Maybe You can try to run QCVideoX activex and take all frames to file with using of Threads!!! Old version of QCVideoX You can find on the page http://www.cs.cmu.edu/~illah/ROBOCOD...CVideoX.ocx.gz Boguslaw |
|