E
erdem
hi again,
here is my problem again:
i have a typed dataset dsA;
an adapter adapterA;
here is structure
mydataset dsA;
odbcdataadapter adapterA;
.....
.....
private form_Load(object sender, System.EventArgs e)
{
Thread thr;
thr = new Thread(new ThreadStart(PreLoader));
thr.IsBackground = false;
thr.Start();
}
private void PreLoader()
{
adapterA.Fill(dsA);
....
....
...
//Here Thread Ends.
}
Also there are some Datagrids whose datasource is dsA.TableX
After program runs, it works normally for a few time then an
NullRefernce Exception is thrown.
i think, it is because, the created thread ended and we filled dsA in
scope of that thread so garbage collector collect memory area.
WHY this happens, or what can i do to correct this problem.
need help
Thanks
erdem
here is my problem again:
i have a typed dataset dsA;
an adapter adapterA;
here is structure
mydataset dsA;
odbcdataadapter adapterA;
.....
.....
private form_Load(object sender, System.EventArgs e)
{
Thread thr;
thr = new Thread(new ThreadStart(PreLoader));
thr.IsBackground = false;
thr.Start();
}
private void PreLoader()
{
adapterA.Fill(dsA);
....
....
...
//Here Thread Ends.
}
Also there are some Datagrids whose datasource is dsA.TableX
After program runs, it works normally for a few time then an
NullRefernce Exception is thrown.
i think, it is because, the created thread ended and we filled dsA in
scope of that thread so garbage collector collect memory area.
WHY this happens, or what can i do to correct this problem.
need help
Thanks
erdem