We help IT Professionals succeed at work.

Windows 7 MFC  Application - Faulting module name: MFC42.DLL

arunykand
arunykand asked
on
5,716 Views
Last Modified: 2015-01-29
I have a MFC application that was installed for a user in Windows-7 and it works as intended;  When another user logs into the Win-7 machine and tries to run the application, they get an "Unsupported operation was attempted" error and the MFC application fails to launch.  I looked at event viewer and listed the error details below.  It appears that only the user that installed this application can run this software successfully.  

I've changed the security settings of the folder/application to ensure that all users have all the necessary rights, run as administrator, compatibility mode, etc, to no avail.

Any help is greatly appreciated.

Faulting module name: MFC42.DLL, version: 6.6.8064.0, time stamp: 0x4d79b238
Exception code: 0xc0000005
Fault offset: 0x0005ae34
Faulting process id: 0x18e4
Faulting application start time: 0x01cfc38989704101
Faulting application path: C:\Program Files (x86)\Test\Test.exe
Faulting module path: C:\windows\system32\MFC42.DLL
Comment
Watch Question

CERTIFIED EXPERT
Top Expert 2012
Commented:
This one is on us!
(Get your first solution completely free - no credit card required)
UNLOCK SOLUTION
trinitrotolueneDirector - Software Engineering
Commented:
This one is on us!
(Get your first solution completely free - no credit card required)
UNLOCK SOLUTION
jkr
CERTIFIED EXPERT
Top Expert 2012

Commented:
I wasn't implyig that some DLL is missing. The error message would tell that right away and not cause an exception, which can only occur in DLLs that are in fact there.

Author

Commented:
Thanks for the suggestions, I will look into it more...

Question:  If this MSI installer had the 'Install for all users', would this problem not have occurred?

I am trying to see if I can modify the MSI package through ORCA to see if I can turn on any flags for 'Install all users', but I can't seem to locate it.  Any help in this area?

Thanks All!
jkr
CERTIFIED EXPERT
Top Expert 2012

Commented:
>>Question:  If this MSI installer had the 'Install for all users', would this problem not have occurred?

Might be possible, but it's not sure at this stage. IF a module was missing, the app would not start in the 1st place. If a setting is missing, that could be the reason. But, with the above, you will at least be able to locate the faulting method and parameter, so this will definitely narrow down the issue.
trinitrotolueneDirector - Software Engineering

Commented:
try

your.msi ALLUSERS=2 /s /q

Open in new window

trinitrotolueneDirector - Software Engineering

Commented:
trinitrotolueneDirector - Software Engineering

Commented:
I am not familiar with Orca but reading around I think Orca should have a "property" section under which you should find "ALLUSERS"
trinitrotolueneDirector - Software Engineering

Commented:
I mean when you open the msi the installer tables displayed by Orca,should show a "property" section or category

Author

Commented:
I did look at ORCA property but there is no existing setting for all users and for some reason its opening my MSI as read-only.
trinitrotolueneDirector - Software Engineering

Commented:
just try running the installer as per my previous comment

your.msi ALLUSERS=2 /s /q

Open in new window

CERTIFIED EXPERT
Top Expert 2016
Commented:
This one is on us!
(Get your first solution completely free - no credit card required)
UNLOCK SOLUTION
trinitrotolueneDirector - Software Engineering

Commented:
>>>> the 'AllUser' option at setup may not help for existing users as it would only provide the defaults for new users and the application itself must provide (or copy) the settings at first start for existing users.

@sara the above statement assumes that settings are changed from the defaults at startup.
Default values can be set for all users on an install so that an access violation does not result on app startup. It is not mandatory that user settings should be changed dynamically on app startup.
CERTIFIED EXPERT
Top Expert 2016

Commented:
It is not mandatory that user settings should be changed dynamically on app startup.
it is the only way to get registry settings to the HKEY_CURRENT_USER section of windows registry when the account where the setup was done with was differently to the user account where the application was run at. HKEY_CURRENT_USER will not be updated from HKEY_USERS where only the defaults for new users could be stored. so, the alternative to let the application make its settings itself at start (for example by self registration via /Regserver) is to using HKEY_LOCAL_MACHINE section read-only or to have a separate "setup" which runs at user account or to using a configuration file from a public folder.

Sara
Rob DuranSystems Network Engineer

Commented:
What did you end up doing? I have the exact same problem.  Can I just uninstall and reinstall under the different user? The previous user is no longer with the firm.  I have not deleted the old users profile.  Please let me know.
CERTIFIED EXPERT
Top Expert 2016

Commented:
Can I just uninstall and reinstall under the different user?
yes. both the uninstall and the new setup should be done 'as administrator'.

Sara
Unlock the solution to this question.
Join our community and discover your potential

Experts Exchange is the only place where you can interact directly with leading experts in the technology field. Become a member today and access the collective knowledge of thousands of technology experts.

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.