Quote Originally Posted by Ramdhyani View Post
hello..
i am running a thread.but when i try to print anything edit box using the line
aa.Format("%d",i);
ts->_this->GetDlgItem(IDC_EDIT3)->SetWindowText(aa);//run time error occurs here.

my code is compilation error free.but i get an error when i run it as
access violation reading location 0x00000000

plz help.
1. What is ts?
2. What is _this?
3. Are you trying to access the IDC_EDIT3 control from within a worker thread? It appears to be a wrong design. Please, check out this great Joe Newcomer's essay: Using Worker Threads