We'll post the answer within 8 days when our date reaches yours.
Regards,
Pieter Philippaerts
http://www.mentalis.org/
"Pieter Philippaerts" <Pie...@mentalis.org> wrote in message
news:eyvx7kt9BHA.2204@tkmsftngp04...
on the inaccurate clock - i have a nice brand new dell but the system
clock is *#&@# and keeps gaining time. i applied a patch and it still
screws up so i guess we're stuck with it. aparently its an XP bug.
oh yes and why on earth does MS's newsserver take MY date
and not use its own. methinks thats a bug.
i wish i could take you all 'back to the future', but i am afraid that i
cannot. anybody care to answer my question :-D
-simon
ps. methinks is in the dictionary before anyone complains about that
"Tom Clement" <t...@DeleteThisAvinon.com> wrote in message
news:#im63#t9BHA.2432@tkmsftngp04...
>is there a way to load all dependent assemblies automatically when the
>program loads. either up front, or in the background.
Not that I've tried it, but I assume you can recursively call
Assembly.GetReferencedAssemblies() and then Assembly.Load() on each
reference. Something like
using System.Reflection;
void LoadAllReferences(Assembly asm)
{
foreach ( AssemblyName ref in asm.GetReferencedAssemblies() ) {
Assembly asmRef = Assembly.Load( ref );
LoadAllReferences( asmRef );
}
}
static void Main()
{
LoadAllReferences( typeof(YourClass).Assembly );
}
You might have to add code to keep track of which assemblies have been
loaded already.
Mattias
===
Mattias Sjögren (VB MVP)
mattias @ mvps.org
http://www.msjogren.net/dotnet/
Execute the following at a command line. You will need admin privledges. The
first /unregister will fail - ignore the error message and execute it again.
net stop w32time
w32tm /unregister
w32tm /unregister
w32tm /register
net start w32time
"Simon Weaver" <fl...@simonweaver.com> wrote in message
news:uev0AHv9BHA.2656@tkmsftngp03...
-simon
"A. Lunshof" <a_lu...@hotmail.com> wrote in message
news:LGBC8.799438$Lj7.30879726@Flipper...
'Main Database.exe': Loaded
'c:\windows\assembly\gac\system.enterpriseservices\1.0.3300.0__b03f5f7f11d50
a3a\system.enterpriseservices.thunk.dll', No symbols loaded.
so ultimately it doesnt seem to make any difference. perhaps the bottleneck
is in creating the form for the first time and not actually in loading
assemblies?
-simon
here's my current kind of working version of the Mattias' code. thanks
---------------------
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
static void Main() {
LoadAllReferences(Assembly.GetExecutingAssembly(), new ArrayList());
Application.Run(new ITDDatabaseForm());
}
private static void LoadAllReferences(Assembly asm, ArrayList loaded) {
Console.WriteLine("----------- "+asm);
foreach ( AssemblyName asr in asm.GetReferencedAssemblies() ) {
Console.WriteLine(asr.FullName);
}
Console.WriteLine("----------- **");
foreach ( AssemblyName asr in asm.GetReferencedAssemblies() ) {
if (loaded.Contains(asr.FullName)) {
Console.WriteLine("### already loaded "+asr.ToString());
}
else {
Console.WriteLine("**** " + asr.ToString());
Assembly asmRef = Assembly.Load( asr );
loaded.Add(asr.FullName);
LoadAllReferences( asmRef, loaded );
}
}
}
"Mattias Sjögren" <mattias.don...@mvps.org> wrote in message
news:urMHDWv9BHA.1304@tkmsftngp07...
So the timesync in XP only corrects minor errors such as seconds or minites
not days and hours.
"Simon Weaver" <fl...@simonweaver.com> wrote in message
news:OPrg1U69BHA.2172@tkmsftngp04...
Andy.
"Simon Weaver" <fl...@simonweaver.com> wrote in message
news:uteRFS89BHA.1748@tkmsftngp04...
> no internal reference for it. what on earth does thunk mean anyway????????
Meaning of thunk:
http://wombat.doc.ic.ac.uk/foldoc/foldoc.cgi?query=thunk
Why is it relevant?
Scott Hutchinson
s.c.o.t.t.h.u....@usa.net
(to contact me, remove all dots left of @)
Perhaps you could try loading all the forms up front and hiding them until
you need them.
Scott Hutchinson
s.c.o.t.t.h.u....@usa.net
(to contact me, remove all dots left of @)
"Scott Hutchinson" <sco...@nospamplease.com> wrote in message
news:u1Oxh0O$BHA.2552@tkmsftngp05...
i could start off a thread to call a static method in each assembly
to force them to load, but that seems a little clumsy and wanted
to see if there was a 'proper way' of doing this.
my users dont like long pauses during execution. theyd rather have a
long pause at the beginning.
-simon