Per application disabling of WER "has stopped working" dialog - visual-c++

I have a VC++ application with my own unhandled exception handler. I would like to prevent the WER "program has stopped working" message box from appearing when there is a crash. Using SEM_NOGPFAULTERRORBOX does this, but it also seems to disable WER so that nothing is stored in the event logs. I would like WER to work normally storing an event, but just prevent the message box from appearing.
It sounds like the registry key DontShowUI=1 might do this but it seems to be global for the whole machine or user. So it would affect all other applications that the user might run.
Is there some way of doing this but only for my one application/exe ?

Related

How to see why Event ID 4800/4801 are logging

Hey guys so I was having trouble understanding why the lock/unlocks are being logged on a computer. I checked the gpedit for "Audit Other Logon/Logoff Events" and see it as "Not configured" and another computer is "Configured" but with Success/Failure not checked. They are both logging 4800 and 4801 events. I was trying to see why that would be and if there was a registry key that would be the actual area that Windows OS would check to log the events. Thank you!

Code-Rally Enter Race always Fails

I can't enter a race, I always get an error saying "Unable to enter on "
Is there an place where I can get any log info?
Any other sugestion?
A couple of things to check:
What server are you trying to race on?
What AI are you trying to race with? Intermediate or Agent?
On the enter race window does your username appear on the bottom left next to a logout button?
The most likely cause of this is either you are not logged in (this should give a different error) or you are using an agent on a local Liberty server and something is preventing the server from starting. If it is an agent AI then you may see errors in your local Eclipse console - to make it visible in the code rally perspective go to window>show view>console. Any log output from the local Liberty server and your AI code will appear there, including any error messages.

UILocalnotification is not appearing when the application is in the background

I have a monotouch application which has a timer and gets the data from the server.
Once the data is received i want to show the notification on the status bar.
It wrks fine when the app is in foreground. When the app is in background ,neither the timer nor the notification works
Please help me in rectifying this issue.
getting you app to run in the background is easy, add App registers for location updates in the info.plist, create a CLlocation singleton register for significant location change and you are done, your app will be resurrected every time there is a significant location change
When an iOS app transitions to the suspended (i. e. backgrounded) state, it stops its timers and disables locl notifications (and does some more memory optimization-related actions). A possible solution (JB only) to display user alerts while your app is in the background is to run a server (true unix server which is not bothered by an app getting backgrounded!) and use the undocumented CFUserNotificationDisplayAlert() function (just google it).
Your best chance is to extend the lifetime of your app by a little bit, by requesting a grace period in the background. As long as you receive this message during this time frame, you will be able to post the notification.
You do this by calling UIApplication.BeginBackgroundTask. This will let you run for a little bit, and the method you pass will be invoked shortly before your grace period runs out.
When you have an App with registers for location updates it seems to always run in the background to a certain extent, as you get significan location changes and you get the enter/exit regions, so you app is running code or is being waken up to run code... the problem is that the UILocalnotification doesn't trigger a sound and alert consitently ( but all the calls are displayed in the notification center... ) The big problem here is that the significan location changes, and the enter/exit regions are useless if you can not notify your user reliably.... is CFUserNotificationDisplayAlert() the only solution to trigger an alert to the user... ? does it work ? will your app be rejected if you use it ?
I got this working as follows :(Not a good design, but a working one)
Addded location support in info.plist, create a clocation manager and kept on requsting the location services. On the same loop schedule the UIlocalnotification .
It works perfectly. :)
NOTE : One issue is that it will give the user a propmpt as "This app uses your location, Do you want o allow"

Why did the SharePoint event receiver stop firing?

I have a SharePoint 2010 solution. I have a List Definition and an event receiver associated with the definition. I have a list instance associated with the definition. The event receiver has a single method, ItemDeleting, that was working for several days up until some point yesterday.
I am working off my dev box, 2008R2, and am deploying directly from VS2010. When I set a breakpoint and delete an item on the list I never hit the break point. I built the package and deployed the solution to a demo box and the event receiver does fire there just not on my dev box any longer. I have dropped the content database and restored and tried a few other things but the event still will not fire.
Where should I look to resolve this issue?
I had a similiar issue happen where a click event never made it to the handler just as if the event had been swallowed. In my case, I finally found that an exception had been thrown which short-circuited the event.
Check for a exception being thrown somewhere.
Check if the DLL that contains the Event Receiver is located in the GAC.It could be a deployment problem.
Have a look at the "manifest.xml".

trouble connecting Excel to Analysis Services server

We have an SSAS server with a cube deployed on a server over the WAN.. We are trying to connect to the cube from Excel on various client workstations. The server is not on a domain with the clients. It "works" for some of us but not for others. We are trying and failing yet to determine what the difference is on the machines that work versus the ones that don't. However, even for the ones that work, it isn't as seamless as we think it should be. I'll explain:
In Excel, we use the Data-Other Sources-Analysis Server option, which presents us with the standard dialog:
standard dialog http://www.freeimagehosting.net/uploads/de3420ec26.gif
Now, we believe the firewall and server settings are correct, because we are then presented with the dialog which lets you pick which cube to use from the server:
pick a cube dialog http://www.freeimagehosting.net/uploads/882a09ee7f.gif
And, clicking "Finish" lets Excep being to work with the cube, as evidenced by the standard Excel dialog:
all seems OK http://www.freeimagehosting.net/uploads/fdf4626609.gif
But then we are presented with the dreaded "transport layer error" message:
transport layer error http://www.freeimagehosting.net/uploads/243d5f3d49.gif
Note that this error appears even on the machines that "work." What makes them "work" is that after clicking OK on that dialog, the next dialog appears:
mysterious new dialog http://www.freeimagehosting.net/uploads/b8fc6bae18.gif
Once this dialog appears, you re-enter your password, and everything "just works" after that. While I'd like it to "just work" without that second dialog, at least it works... But on many machines we've tested this new dialog never comes up. Instead, they just get the following error message, leaving them out of luck:
final error http://www.freeimagehosting.net/uploads/601b9294e3.jpg
Can anyone offer any advice for this? Thanks!
Do the connections work if you allow "NT Authority/Authenticated Users" or "NT Authority/Anonymous Logon" to connect? Would help troubleshooting at least, but it's not a great idea to leave it like that ;)

Resources