H
hificat
Unregistered / Unconfirmed
GUEST, unregistred user!
void __fastcall TForm1::Button1Click(TObject *Sender)
{
thread1 *table1=new thread1(false);
thread2 *table2=new thread2(false);
thread3 *table3=new thread3(false);
}
///////////////////////////////////////////////
void __fastcall thread1::Execute()
{
TCriticalSection *Section=new TCriticalSection();
Section->Enter();
Form1->Table2->Append();
Form1->Table2->FieldValues["id"]=Form1->Table1->FieldByName("id")->AsString;
Form1->Table2->FieldValues["name"]=Form1->Table1->FieldByName("name")->AsString;
Form1->Table2->Post();
Form1->Table1->Active="false";
Form1->Table1->Delete();
Form1->Table1->Active="true";
Section->Leave();
//---- Place thread code here ----
}
运行时出现:idpdx32.dll错误
{
thread1 *table1=new thread1(false);
thread2 *table2=new thread2(false);
thread3 *table3=new thread3(false);
}
///////////////////////////////////////////////
void __fastcall thread1::Execute()
{
TCriticalSection *Section=new TCriticalSection();
Section->Enter();
Form1->Table2->Append();
Form1->Table2->FieldValues["id"]=Form1->Table1->FieldByName("id")->AsString;
Form1->Table2->FieldValues["name"]=Form1->Table1->FieldByName("name")->AsString;
Form1->Table2->Post();
Form1->Table1->Active="false";
Form1->Table1->Delete();
Form1->Table1->Active="true";
Section->Leave();
//---- Place thread code here ----
}
运行时出现:idpdx32.dll错误