Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C++ ATL
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 16-Nov-11 3:46am
JS 2008623
Edited 16-Nov-11 3:51am
v2
Comments
Albert Holguin at 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.
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

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.
  Permalink  
Comments
JS 2008 at 16-Nov-11 23:40pm
   
Thanks JackDingler for the solution.
Eventhough I have Set Dev Studio as 'Run as Administrator' also the error happend.
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

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?
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 3

The solution for my problem was to disable the DEP in windows for my program.
 
I hope this helps.
  Permalink  

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

  Print Answers RSS
0 George Jonsson 215
1 Kornfeld Eliyahu Peter 169
2 Zoltán Zörgő 139
3 PIEBALDconsult 130
4 OriginalGriff 120
0 OriginalGriff 6,165
1 DamithSL 4,658
2 Maciej Los 4,107
3 Kornfeld Eliyahu Peter 3,649
4 Sergey Alexandrovich Kryukov 3,342


Advertise | Privacy | Mobile
Web01 | 2.8.141220.1 | Last Updated 17 Jan 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100