Re: BadImageFormatException on framework 64 bit

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Rudy wrote:
You can check your application in the task manager in "Processes" tab in 64 OS. If it has no a mark "*32", it is running in 64 bit mode.
If the application is developed yourself, you can set it in the development tools (e.g. VS2005) to mark it always running in 32 bit mode. Then, your application can use the 32 bit dll no problem.

Yes you are right, it is running in 64 bit mode.
But if I set it to run in 32 bit mode then all managed and unmanaged code run in 32 bit mode? In other words can I take advantage from 64 bit system or not?
Thanks!!!


In my opinion, it is dependent on your actual case.

If your 64bit OS just run only one application and the application is 32bit application, it will not take advantage from 64 bit system.

However, in most case, there are many applications running in one computer. Hence, overall the system still can take some advantage, e.g. the system can use more physical memory (if the computer have so much memory).

Of cause, the best solution is to convert the 32 bit DLL to 64 bit DLL.


--
Jacky Kwok
jacky@alumni_DOT_cuhk_DOT_edu_DOT_hk
jacky@compose_DOT_com_DOT_hk
.



Relevant Pages

  • Re: Windows Update download window hangs
    ... I implemented Mark Brown's solution re error 0x00000485, ... Gives "Bad command or file name". ... For example, the DLL Help Database ... >> registered in either Internet Explorer or Windows Explorer. ...
    (microsoft.public.windowsupdate)
  • RE: "Copy to" and "Move To" dialog boxes have slowed to a crawl
    ... Thanks, Mark. ... I succussfully ran the regsvr32 command to unload shmedia, ... I'm wondering if the dialog box control dll somehow has gotten hosed... ... six minutes to populate it. ...
    (microsoft.public.windowsxp.help_and_support)
  • Re: Group policy snap-in
    ... >failures of the Group Policy plugin. ... >>mark. ... associated .DLL is either corrupt or unregistered. ...
    (microsoft.public.windowsxp.security_admin)
  • Re: CE DLL alignment.
    ... It occupies ONLY the actual size of the DLL in physical memory, ... allocates space in virtual memory for each DLL starting on a 64K boundary. ... You really should not try to rely on the exact behaviour of this particular ...
    (microsoft.public.windowsce.platbuilder)
  • Re: Program not responding....but cant locate it!!!
    ... "Mark L. Ferguson" wrote: ... > Look up what that refer to in the registry. ... > You will probably find a reference to an InProcServer that calls some .dll file. ...
    (microsoft.public.windowsxp.help_and_support)