Click here to Skip to main content
15,891,184 members
Please Sign up or sign in to vote.
3.00/5 (1 vote)
See more:
The debug-win32 configurations of my ATL exe application getting crashed by "Debug asertion failed". The same ATL exe project of release configuration working fine.While debugging the HRESULT object returned as error"0x80004015 The class is configured to run as a security id different from the caller".But in release configuration also the same result returned,but it works fine. The working environment is Windows Server 2008 64 bit OS and Visual Studio 2008 solution. Any idea regarding this?
Posted
Updated 16-Nov-11 2:51am
v2
Comments
Albert Holguin 17-Jan-12 11:28am    
FYI... Some assert() functions are setup to only trigger during debug execution, not during release execution, since they are meant for developers and not for the users. So even though you don't get an explicit problem statement in the release executable, the problem may still be there.

When running in the Debugger, your application inherits the security settings for the Dev Studio environment. When running standalone, it gets the security settings of the user, or those specified at startup.

Set Dev Studio to 'Run as Administrator' and see if this changes things.
 
Share this answer
 
Comments
JS 2008 16-Nov-11 23:40pm    
Thanks JackDingler for the solution.
Eventhough I have Set Dev Studio as 'Run as Administrator' also the error happend.
JS,

I've the same issue. And I think that the reason is a change in the registry settings. If I install an old version of our product it works. Even if I build the latest version. But when I deinstall and install the lastest version of our product the the same option doesn't work.

I'm currently looking for the differences in the setup, but haven't found it yet.

Did you solve your issue?
 
Share this answer
 
The solution for my problem was to disable the DEP in windows for my program.

I hope this helps.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900