Pinned topic Compatibility mode error
I've received this warnings ever since I installed the patch:
[W] Pure: Your application is running in compatibility mode. (Environment variable: __COMPAT_LAYER; value: EnableNXShowUI)
Running in compatibility mode is not supported and may cause the application not to run properly.
I've double check that my application is not running compatible mode and I've never had this error prior to installing the patch. By the way, I'm using PurifyPlus 7.0
Does anyone has a clue?
Thanks in advance.
Re: Compatibility mode error2008-04-30T18:11:14Z in response to tweetpiyoThe Compatibility mode setting is used for different purposes, some of which are not clearly documented or understood. When used for OS compatibility (e.g., Win95, Win98) Purify doesn't support these and won't work. When we detect one of these known incompatibilities we flag that as an error, not a warning. We issue a warning if we see other _COMPAT_LAYER settings, as a potentially useful message in case there is a problem running Purify. This specific setting isn't well defined, but seems harmless so far. It seems to have something to do with a popup that accompanies no-execute violations, but that's not certain. If you don't see any other problems running Purify with this setting in place you can ignore it. Once you're comfortable that it's not an issue you can create a filter that will cause this warning to not be displayed by default. If you do run into problems you'll want to let Tech Support know about this warning.
You didn't see this with earlier versions of Purify because we didn't check for this before.
Re: Compatibility mode error2012-05-14T05:20:00Z in response to SystemAdminHi,
I am able to instrument & run Purify (with temp license) without any issues
on Windows XP machine.
On Windows Vista machine I am able to run a “win32 console” application without any issues with Purify. It instruments and runs without any error.
On Windows Vista machine, built a project of type “MFC”->MFC application with all default settings. Instrumenting it with Purify and running it gives the error “An unhandled exception occurred during the test” and the application doesn’t comes up.
In the Purify’d data browser I see a Purify error related to application running in compatibility mode.
If I enable the Purify during the build (i.e. if I instrument) then it fails while creating a empty document with an error “failed to create empty document”.
Simple MFC application works without any issue. i.e. without enabling Purify if I build the MFC application it works well.
Is it a known issue on Vista?
Re: Compatibility mode error2012-05-17T09:36:18Z in response to ManithHi Pramila,
I got your attachments, then tried to build your project in Visual Studio 2010 on Windows Vista Ultimate Service Pack 2. I do not have Visual Studio 2008 in my environment. We are using same PurifyPlus version 184.108.40.206-003. I still can not reproduce your problem on Vista. Is this only on Windows Vista? Did you try it on Windows 7? or did you try in Visual Studio 2010?
There is not known PurifyPlus issues on Vista. If you still have this problem and want to get help from us, please send your TestMFC.exe to me, or contact IBM Rational PurifyPlus support team.
Re: Compatibility mode error2012-05-18T03:48:36Z in response to SystemAdminGary,
Thanks a lot for looking into this issue.
Did a fresh installaion of Vista, Microsoft Visual Studio 2008, Rational Purify Plus on another machine and everything works as expected.
But I am not able to figure out what is going wrong on another machine where problem persists.
6YED_Arkell_Rasiah 2700066YED1 PostACCEPTED ANSWER
Re: Compatibility mode error2013-05-17T05:40:38Z in response to Manith
I ran into a similar issue... while doing a purify on an app it crashed... and it turned out the crash app (the purify cache .exe) registered itself in the Window registry to run in compatibility mode. And purify would never run the appl thereafter.
Blowing away purify's cache and reinstalling purify etc made no difference... since the crash app registered in the registry elsewhere.
After many hrs... I finally found the answer in a post... on where to look.
And true enough those appl paths were there... I removed it and purify is back to run my appl.
To fix the issue:
- Hit start->run->regedit
- Go to key: HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers
- Look for a entry with your path to <your appl>.exe
- Delete that entry
- If you dont find it there try HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers
There original post to the soln: