Re: [RESOLVED] Deployed 64 bit app takes long time to load, but only the first call
What may also be causing confusion is that that line can never be reached, since the line before it is an Exit Sub. But it is still very strange that the 32 bit handles it differently than the 64 bit and to the extreme it does. I'll think on the directives aspect, since it is a pretty simple global search and replace on 'DebugResume replaced with Resume and vice versa (with a couple of leading spaces to make sure I get only Resume and no Resume Next. Thanks again for finding this.
Re: [RESOLVED] Deployed 64 bit app takes long time to load, but only the first call
I no longer find that strange at all. If you look around (I don't have the link handy), you can probably find the tussle over the Load Event issue with 64-bit systems: An unhandled exception thrown in the load event will simply exit the load event. There won't be a crash, it will just exit the event handler. Ultimately, this resulted from an argument between the VS and 64-bit OS groups within MS. What this tells us is that internal disagreements between the different groups within MS can result in noticeably different behavior between 32-bit and 64-bit OS, since the 64-bit team is not the 32-bit team and has different priorities and motivations. Furthermore, the differences can result in very unexpected behavior. You've just found one more, albeit rare and specialized, case.
Re: [RESOLVED] Deployed 64 bit app takes long time to load, but only the first call
Fair enough. I had never considered that MS would have two completely independent teams working the x86 and x64 aspects. I guess I should not be surprised; even in my line of work we have multiple projects that would come up with different designs given the same requirements.
Re: [RESOLVED] Deployed 64 bit app takes long time to load, but only the first call
I've been surprised more than once at how MS divides up the work, and how little cross-polination seems to occur between some of the teams. The long-standing division between VB.NET and C# was always a surprise to me. That division finally began to break down with the 2005 release when MS deliberately began converging the two languages. The difference between OS and Apps isn't so surprising, but the difference between 64 and 32 is more so.