15,887,313 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by Prakash1206 (Top 8 by date)
Prakash1206
14-Jan-17 6:53am
View
Thanks for your answer & helpful links. this question has been answered
here
we should not create a new instance of WpfControl
Prakash1206
6-Jul-16 23:16pm
View
@KarstenK, sorry for delay in replying.
Thanks for your valuable answer.
when i try to free objects in that thread, it again crashes.
for ex: cap.release(); this causes crash. so any safe way to release objects?
Prakash1206
5-Jul-16 3:21am
View
Thanks for nice explanation :)
while loading the layout, i had to remove previous content. so i thought dockPanel1 = nullptr; would do it. but it was the reason for above error.
i had to manually remove contents through following code
for (int index = dockPanel1->Contents->Count - 1; index >= 0; index--)
{
if (dynamic_cast<idockcontent^>(dockPanel1->Contents[index]) != nullptr)
{
IDockContent ^content = safe_cast<idockcontent^>(dockPanel1->Contents[index]);
content->DockHandler->Close();
}
}
I Hope it helps someone with same issue :)
Prakash1206
27-Jun-16 5:05am
View
HiThanks for answering,
i couldn't follow second question's answer. i'm coding in C++/Cli.
so don't know about '=>' operator, i don't think its available in this language. also i cannot see 'First' function from MdiChildren in Visual studio.
Could you please explain your code bit more? so that i will try to convert to C++/Cli
Thanks & Regards
Prakash1206
24-Jun-16 11:39am
View
Hi KarstenK
Thanks for your valuable answer, it sounds like a solution to this problem.
didn't knew about watchdog thread, but i can make out when thread it dead.. i used an integer and kept incrementing it until thread was dead (i turned off wifi)
now the problem is, if i use thread->Abort(); [an attempt to restart thread] it crashes! [error message is same as shown in question]
do u know any other method to overcome this headache?
Thanks
Prakash1206
19-Jan-16 12:17pm
View
@Richard Thanks for your reply. i used 'try-catch' block and you were right, i had to put the libraries in the exe folder..i had extracted dll's into exe folder but it was expecting zip file!
anyways now its showing a new error..
DZ.MediaPlayer.Vlc.Exceptions.VlcTimeoutException: Timeout waiting required state.
at DZ.MediaPlayer.Vlc.VlcPlayer.waitForMediaState(VlcMediaInternal mediaInternal, VlcMediaState stateRequired)
at DZ.MediaPlayer.Vlc.VlcPlayer.startPlaying(VlcMediaPlayerInternal mediaplayer, VlcMediaInternal media)
at DZ.MediaPlayer.Vlc.VlcPlayer.PlayNext()
at DZ.MediaPlayer.Vlc.WindowsForms.VlcPlayerControl.Play(MediaInput mediaInput)
at Sample.MyForm.button2_Click_1(Object sender, EventArgs e) in c:\users\user\documents\visual studio 2013\projects\gui applications\sample\sample\myform.h:line 552
Prakash1206
17-Jan-16 14:12pm
View
i know its been quite long time to your comment..
but i am not able get Vlc.DotNet.Core.Medias.dll
so i cannot use "using Vlc.DotNet.Core.Medias;
after downloading Vlc.DotNet i see only Core,Interops,Forms. where can i find Medias?
can someone upload Medias.dll? Thanks
Prakash1206
22-Sep-15 17:26pm
View
Thanks for your reply.
I changed my code..
Added below lines
//i run demo(); after initilize components
public: void demo(){
aTimer = gcnew System::Timers::Timer();
aTimer->Interval = 100;
aTimer->Elapsed += gcnew System::Timers::ElapsedEventHandler(this, &MyForm::OnTimedEvent);
aTimer->AutoReset = true;
aTimer->Enabled = true;
GC::KeepAlive(aTimer);
aTimer->Start();
}
public: delegate void MyCallback(System::String^ str);
VideoCapture cap(0);
Mat image;
IplImage frame, *frame2;
public :System::Void OnTimedEvent(Object^ source, System::Timers::ElapsedEventArgs^ e)
{
MyForm ^f = gcnew MyForm();
MyCallback^ callback = gcnew MyCallback(f,&MyForm::run);
callback->Invoke("text");
}
private: System::Void run(System::String^ str){
cap >> image;
Console::WriteLine(str);
if (image.empty()) MessageBox::Show("empty pic"); else imshow("frame", image);
frame = image;
frame2 = &frame;
waitKey(33);
pictureBox1->Image = gcnew
System::Drawing::Bitmap(frame2->width, frame2->height, frame2->widthStep,
System::Drawing::Imaging::PixelFormat::Format24bppRgb, (System::IntPtr) frame2->imageData);
pictureBox1->Refresh();
}
everything is fine, but the problem is that i can see video from my webcam only from imshow() function
but i cannot see video in winforms picturebox
i did try commenting imshow(), still no change
Show More