windows-8

Kill process (windows 8) issues

社会主义新天地 提交于 2019-12-31 14:15:53
问题 I've installed Windows 8 around a month ago and have been having issues where when a process hangs I am unable to end/kill it. Neither task manager nor CMD Taskkill /f /PID #### will do the job, so I figured I'd write up my own process killer in C# and see what issues come up. After writing up a small app I realized that I'm not all that smart as I thought - I'm still unable to end the process. At first I was able to find the process by name/PID: Process p = Process.GetProcessById(aPid) //or

Kill process (windows 8) issues

故事扮演 提交于 2019-12-31 14:15:10
问题 I've installed Windows 8 around a month ago and have been having issues where when a process hangs I am unable to end/kill it. Neither task manager nor CMD Taskkill /f /PID #### will do the job, so I figured I'd write up my own process killer in C# and see what issues come up. After writing up a small app I realized that I'm not all that smart as I thought - I'm still unable to end the process. At first I was able to find the process by name/PID: Process p = Process.GetProcessById(aPid) //or

How do I grab frames from a video stream on Windows 8 modern apps?

自作多情 提交于 2019-12-31 12:08:28
问题 I am trying to extract images out of a mp4 video stream. After looking stuff up, it seems like the proper way of doing that is using Media Foundations in C++ and open the frame/read stuff out of it. There's very little by way of documentation and samples, but after some digging, it seems like some people have had success in doing this by reading frames into a texture and copying the content of that texture to a memory-readable texture (I am not even sure if I am using the correct terms here).

Windows 8, C++ and Metro GUI samples?

给你一囗甜甜゛ 提交于 2019-12-31 08:29:07
问题 So I look at this (Windows build keynote 1:42:56) And I just do not get it - what I can use to create GUI from C++ and/or GUI language that will be capable to call functions from my C++ code? HTML, XAML or what? And where to see code sample of doing markup call code and code create GUI sample with C++ for Windows 8 Metro apps? 回答1: Sample code in C++ and other languages is at http://code.msdn.microsoft.com/windowsapps. You can take a look at how it's done. 回答2: If you want to call C++ code

Can a desktop Delphi application be certified for Windows 8 (using Windows App Certification Kit)?

痞子三分冷 提交于 2019-12-31 08:08:09
问题 Apparently, Delphi (any version) does not support safe exception handlers (/SAFESEH switch in Visual Studio). This results in a warning when using Windows Desktop App Certification Kit on Windows 8. Per certification requirements for Windows 8 desktop apps: Your app must be compiled using the /SafeSEH flag to ensure safe exceptions handling Obviously Delphi lacks this switch, so it cannot be done. My questions are: Is my understanding correct, that even though the Kit displays only a warning

Windows Store Apps: my app terminates after being switched

我们两清 提交于 2019-12-31 05:48:07
问题 I'm building a Windows 8 app. My problem is when the user switches to another app or goes to start, the app terminates. In the side bar I find the preview of the app to be displaying the splash screen, when I click on the app it starts from the beginning. What can be the problem here, could it be a memory issue ? In the task manager my app takes 40 MB of memory, is that too much ? EDIT The Event Viewer shows the following when the app crashes: Application: MyApp.exe Framework Version: v4.0

Serializing a BitmapImage in WinRT

淺唱寂寞╮ 提交于 2019-12-31 05:30:05
问题 public static async Task SaveFileAsync(string FileName, T data) { MemoryStream memStream = new MemoryStream(); DataContractSerializer serializer = new DataContractSerializer(typeof(T)); serializer.WriteObject(memStream, data); StorageFile file = await ApplicationData.Current.LocalFolder.CreateFileAsync(FileName, CreationCollisionOption.ReplaceExisting); using (Stream stream = await file.OpenStreamForWriteAsync()) { memStream.Seek(0, SeekOrigin.Begin); await memStream.CopyToAsync(stream);

Cannot run PHP CLI on WAMP on Windows 8

若如初见. 提交于 2019-12-31 05:18:31
问题 I have been trying on this for hours i Get the below error 'php' is not recognized as an internal or external command, operable program or batch file. Steps i have done 1- I have added to Windows Environement variables C:\wamp\bin\php\php5.3.13; 2-re-installed wamp 2 times 3-Apache and php error log is clean I have the below configuration Windows 8 64 bit Apache 2.2 PHP 5.3.13 回答1: Actually the php exe you run in wamp for the CLI is just php.exe It is found in the c\wamp\bin\php\phpX.Y.Z\

UnauthorizedAccessException during storageFolder.CreateFileAsync

瘦欲@ 提交于 2019-12-31 05:14:09
问题 I have the following piece of code // Point to c:\users\yancheng\documents\visual studio 2012\Projects\App5\App5\bin\x86\Debug\AppX StorageFolder storageFolder = Windows.ApplicationModel.Package.Current.InstalledLocation; StorageFile file = await storageFolder.CreateFileAsync("1000.txt"); if (file != null) { using (IRandomAccessStream writeStream = await file.OpenAsync(FileAccessMode.ReadWrite)) { using (DataWriter dataWriter = new DataWriter(writeStream)) { dataWriter.WriteInt32(1000); } } }

Metro Application How to Read XML API?

泪湿孤枕 提交于 2019-12-31 05:04:25
问题 Ok so I am trying to learn how to work with XAML and how to build new windows metro applications using Visual Studio 11 Developer Preview. I have a problem though I don't know how to read XML files the same way I use to using C#. For example here is how I did it in the past. private void Button_Click(object sender, RoutedEventArgs e) { string UrlString = "http://v1.sidebuy.com/api/get/73d296a50d3b824ca08a8b27168f3b85/?city=nashville&format=xml"; XmlTextReader reader = new XmlTextReader