I'm developing a windows phone 7 library which needs to display log messages to developers. Warning: I'm somewhat new to .Net.
It doesn't appear that System.Diagnostics.Trace is available on Windows Phone 7. I also tried Console.Writeline but it doesn't seem to do anything. So far the only thing that works is Debug.WriteLine() but when I build the library as a "Release" build, the logging goes away.
A) Has anyone found a way to log or trace from a "release" build of a Windows Phone 7 App?
B) Is there a way to build a release build (no symbols and optimized) that still has Debug output turned on.
Thanks,
You might like to check out this recent release.
Silverlight and WP7 Exception Handling and Logging building block
Related
I'm currently developing a windows modern app using Foundation for Apps and cordova. The app crashes in many ways during navigation, sometimes even immediately after running it.
The crash is this one
And i can't manage to debug it in any way.
I've tried setting up a window.onerror and a WinJS.Application.onerror catch all function with no results. Apparently the crash happens at a lower level. I've also inspected the event viewer but no info are available.
What happens is apparently similar to this question: How to debug unhandled win32 exception in WinJS Win8 store app which is unfortunately unsolved.
What are my options here?
I had the same issue with Visual Studio 2015, Windows 10 and cordova 5.1.1 when I transfer the project to another dev environment. It only occurs at the Windows-x64 app build configuration for the local machine.
After successful building, the app window launches shortly and after that, the win32 exception like the screenshot from sPoz came up. It was reproducible every time.
I try to repair Visual Studio and also I checked the environment variable from my solution as it is described in this Microsoft Article. But I had no luck.
Nothing helped, but simply open the config.xml file and change the Windows Target Version from "Windows 10" to "Windows 8.1" solved the problem and I could run the app with no error:
After that I can turn back to "Windows 10" and everything is fine. This was reproducable on two dev machines.
I do not exactly know if the moved project was the source of the problem and maybe the rewritten config.xml triggers any rebuild mechanism.
Most likely you are hitting an issue related to DOM Ex WWAHost.exe error on Windows 8.1 (apparently fixed on Win10). There is a workaround that should work for most apps; before you click around and get the WWAHost.exe exception, close the DOM Explorer window. This should enable you to debug by hitting breakpoints, etc. If you need to use DOM Ex against a Windows target, you might need try debugging against a remote device (see Kenneth's suggestion here: Why is Cordova Windows 8 app causing an unhandled win32 exception occurred in wwahost.exe?)
What are you using to develop the app ? The Visual Studio Tools for Apache Cordova ? Or Cordova with CLI ?
If you are using the plugin, you must launch the generated WP project to debug. The debug of WP app is not supported currently with the plugin.
I was getting same error during development of cordova windows tablet application, using Visual Studio Enterprise 2015. So far, I was doing try to close DOM-Explorer and use breakpoints and javascript console. After that, while searching javascript intellisense issues with Visual Studio, I figured out that my problem was fixed. What I did to get rid of this problem is that:
Open Tools > Options
Select Text Editor > Javascript > Intellisense > References
Add following references ( angular.intellisense.js, domWeb.js, domWindows_8.1.js ).
I don't know what are the correct reference files, but with these 3 reference files added, my problem has been solved.
I'm a newbie to Direct3D technology. And was trying out D3D shared surface code found at Direct3D10, 11 and D2D in WPF - Round 2 DEMO! by Jeremiah morrill Interop.D3DImage.rename2zp. I was able to compile the code without any issues but when I run it I see a blank screen Output window
I'm using VS2013, DirectX SDK(June 2010) and windows 7 OS.
D3D is often pretty good at telling you what the problem is. If you go into the project properties, and enable native debugging, you might see messages in the output window which which will give you a clue - as long as you're running the debug version of the app of course.
There are many reasons it might be failing though - it could be that your graphics card doesn't support what the demo is doing, or that it's starting up with the wrong device settings.
I have a C#.NET Windows Forms project which compiles, builds and runs without any problems on Windows. Now I'm trying to migrate it to OSX using Mono. The project compiles and builds, but I get an exception (see attached image). When I double-click one of the entries in the stack trace, it says that the file couldn't be found. Does this mean that I forgot to install something when I installed Mono (i.e. something related to support for Windows.Forms) ????
Any help is appreciated - thank you!!
I don't think NotifyIcon is supported on OS X: Bugzilla
I am attempting to run an existing WPF application on Windows 8 Consumer preview, and I keep getting the error:
System.Security.VerificationException
This application has worked on countless Windows 7, and Windows 8 Dev preview editions with no errors. No changes were made to the code, yet it now crashes on Windows 8 Consumer editions consistantly.
I have searched on the error message itself, and there is no information there. It looks like the 3rd party controls might not be getting approved to run? The stack is pointing to Visifire.Charts.Chart.ctor()
Any ideas?
This thread could help you.
It describes how to avoid the exception by modifying the AssemblyInfo.cs of your project. Though it's not explaining why this just happens in Win 8 CP. You should maybe contact the developers of the chart control.
I'm currently using Eclipse as my main editor, and source browser for our C/C++ project. The only problem is, I have to switch to Visual C++ everytime I have to debug or trace. Is there a way to have Eclipse use the WinDbg tool to debug Windows native applications? I tried searching on the web but all the forum posts seem to trail off to nowhere around 2007/2008.
I think the answer is no. Because you will not have access to the Win Debug Symbols and libraries within the Eclipse runtime. However you could start building this as an Eclipse plugin for VS users.