"Shawn" <sh**********@ccci.org> wrote in message
news:OY**************@TK2MSFTNGP15.phx.gbl...
The first time this runs, it causes a long pause, but then it runs
fine every time thereafter. I have other datasets in the application
that seem to do the same thing...
As will just about every other, complex class you ever use or write
in .Net's Managed Code (although I'm surprised that /more/ than
one DataSet should do it in the same application).
It's because the first time you use any [method within a] class, the
RunTime has to go off, pull the relevant code out of the assembly,
and pop it through the Just-In-Time "Compiler" (actually, a Linker,
but what's in a name?) before it can actually execute it. Fortunately,
it only has to do this once for each method within any running process.
HTH,
Phill W.