Click here to Skip to main content
15,887,313 members

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