I want to get into PAPI. I have Version 5.3.2.0 on Debian GNU/Linux. papi_avail just tells me that no hardware events are available: $ papi_avail Available events and hardware information. -------------------------------------------------------------------------------- PAPI Version : 5.3.2.0 Vendor string and code : GenuineIntel (1) Model string and code : Intel(R) Core(TM) i3-5010U [...] read more
The implementation of the right shift is: unsigned int rotr(unsigned int value, int shift) { return (value >> shift) | (value << (sizeof(value) * 8 - shift)); } but if value is 0x17=00010111 that result should be 0x8b=10001011 but the result is 0x8000000b. how to handle this problem? #include <stdio.h> [...] read more
I am writing an app in Visual Studio 11 Developer Preview and I get this error after the app has run for a while with the reader.InputStreamOptions = InputStreamOptions.Partial; option set: An unhandled exception of type 'System.Exception' occurred in mscorlib.dll Additional information: The operation attempted to access data outside the [...] read more
I need to parse an array of 32 bit ints (little endian), from an array of u8s, however the next int only exists if the 31st bit of the current int is set. If the rest don't exist then the rest of the array should be set to zeroes. I'm [...] read more
I am trying to link my .o files to generate the ELF to be run on an ARM M0+ bare metal. I am using arm-none-eabi-gcc. If I just have my C file (s) written it links fine and I can run it no problem. (For this I am providing the [...] read more
I have been writing a kernel for the Raspberry Pi 2 using C. To do so I have been following the Valvers and Baking Pi (written in Assembly) tutorials to do so. But each time I try to port the function to set a pin to output from the Baking [...] read more
For my application (SpMV) I have more data cache misses (PAPI_L1_DCM) than total cache misses (PAPI_L1_TCM) in level 1 cache. How can that be? For Level 2 the values are ok. That is, what the PAPI counters offer: [PAPI_L1_ICM ][PAPI_L1_DCM ][PAPI_L1_TCM ][PAPI_L2_ICM ][PAPI_L2_DCM ][PAPI_L2_TCM ] 1256 3388225 1442386 1007 2389903 [...] read more
I am simply trying to implement in app purchase on my Demo Programm.I am Doing Following Code. Guid product1TempTransactionId; async void BuyFirstProduct() { if (!LicenceInfo.ProductLicenses["test_coins10"].IsActive) { try { await CurrentAppSimulator.RequestProductPurchaseAsync("test_coins10",false); PurchaseResults purchaseResults = await CurrentAppSimulator.RequestProductPurchaseAsync("test_coins10"); switch (purchaseResults.Status) { case ProductPurchaseStatus.Succeeded: product1TempTransactionId = purchaseResults.TransactionId; Debug.WriteLine("Sucess" + product1TempTransactionId.ToString()); // Grant the user [...] read more
a user of my app reports that the app crashes when accessing the settings charm. The charm shows the text "Getting info from ". After A while the text changes to "Can't get settings for this app right now" and a little while later the app is terminated. After several [...] read more
I am reviewing one of GitHub Project and found a problem, It works fine in Debug Mode Following Error Comes if try in Release Mode > TypeLoadException: Unresolved P/Invoke method > 'MediaApi_GetRadioEnabled!radioapi.dll' in assembly > 'Microsoft.Devices.Radio.FMRadio, Version=1.0.0.0, Culture=neutral, > PublicKeyToken=null' because it is not available in UWP applications. Please > [...] read more
I am adding Cortana to a DirectX/XAML Windwos 10 game. Every example I can find is given in C#, not C++. Normally this wouldn't be a problem, but apparently I'm not implementing it correctly in C++ and need some help with this one. The purpose of this chunk of code [...] read more
I have the following code which opens a file and it works most of the time for one time. After that I get exceptions thrown and I don't know where the problem is hiding. I tried to look for this for a couple of days already but no luck. String^ [...] read more
I'm using WinRTXamlToolkit's AlternativeFrame in a Xamrin/MVVMCross Windows 8.1 application to support animations while doing page navigations. The animations run fine for the first couple of transitions, but I will intermittently get an Application UnhandledException mid-animation -- > The operation attempted to access data outside the valid range (Exception from [...] read more
I'm trying to use RAPI to monitor the performance of my Xeon Phi code. I just compiled and installed a native version of RAPI follwoing the documentation. And the following list is what I get when I execute "rapi_avail" on my Xeon Phi which shall display all available events. Surprisingly, [...] read more
this is a very weird crash I think. The UWP app fails "sometimes" when FirstPage is selected. This page has an AdaptativeGridView where each item is a FlipView. The ItemsSource of all FlipViews is the same, a unique ObservableCollection in code-behind. UI capture example: ui-example The issue is happening in [...] read more
I'm using the new Project Reunion 0.5/WinUI3 Preview 5. And after my upgrade from Preview 4, I started to get this error: Exception thrown at 0x76C5A8B2 in ReunionTest.exe: Microsoft C++ exception: winrt::hresult_error at memory location 0x00D7E290. The Output shows: Exception thrown at 0x76C5A8B2 (KernelBase.dll) in ReunionTest.exe: 0x40080202: WinRT transform error [...] read more
I have a problem with running the basic C++ code for MongoDB. Works on Windows 10 with Visual Studio 2019. I was able to add libraries for mongocxx etc thanks to vcpkg. #include <iostream> #include <bsoncxx/builder/stream/document.hpp> #include <bsoncxx/json.hpp> #include <mongocxx/client.hpp> #include <mongocxx/instance.hpp> int main(int, char**) { mongocxx::instance instance{}; // This [...] read more
I'm getting a The operation attempted to access data outside the valid range (Exception from HRESULT: 0x8000000B) error on this line. What causes this? IReadOnlyList<StorePackageUpdate> storePackageUpdates = await context.GetAppAndOptionalStorePackageUpdatesAsync(); read more
i recently set up required software for development for the Microsoft HoloLens(1st. gen) with the newest version of the HoloLens(1st. gen) emulator (followed the MRTK-Guide: https://microsoft.github.io/MixedRealityToolkit-Unity/Documentation/GettingStartedWithTheMRTK.html#get-the-latest-mrtk-unity-packages). I already tested some example scenes from the MRTK on the emulator and everything works as expected. However, when i test the SpatialAwarenessMeshDemo, the [...] read more
I've a problem with C# UWP DataReader: in event action from my remote device, the software raise an exception: HRESULT: 0x8000000B.... My remote device sent a simple string ASCII. Can you help me? > Code UInt32 vid = xxxxxx; UInt32 pid = xxxxxx; string aqs = SerialDevice.GetDeviceSelectorFromUsbVidPid((ushort)vid, (ushort)pid); var myDevices [...] read more
I am using Raspberry Pi 3 Model B. I have installed Windows 10 IOT Core in it. I am using Visual Studio 15 to develop a UWP App in C# and deployed an App on the board. It reads GPS data through UART pins 8 and 10 from Neo6mv2 GPS [...] read more
I am trying to use DES encryption/decryption on Google chrome. In my folder I have three files. 1. tripledes.js 2. mode-ecb.js 3. CryptoJS-DES.html The scripts in my html file is defined as follows :- <script type="text/javascript" src="tripledes.js"></script> <script type="text/javascript" src="mode-ecb.js"></script> and another script file which is :- function encryptByDES(message, key) [...] read more
I would like to use DataReader in order read messages sent from a client. Here is my code : private async void Listener_ConnectionReceived(StreamSocketListener sender, StreamSocketListenerConnectionReceivedEventArgs args) { try { using (DataReader reader = new DataReader(args.Socket.InputStream)) { string receivedData; var count = await reader.LoadAsync((uint)reader.ReadInt32()); receivedData = reader.ReadString(count); Debug.Log("Received : " + [...] read more
I want to add 4 options in a MessageDialog in C# Windows Store App. I can add 3 options like this example: http://msdn.microsoft.com/en-us/library/windows/apps/dn308255.aspx But when I am going to app 4th option it throws exception "The operation attempted to access data outside the valid range (Exception from HRESULT: 0x8000000B)" Is [...] read more
I have a stream I get from HTTP. I would like to save each packet I receive and append it to the end of a file: "myData.dat" I wrote the code below, and it runs each time a packet arrives. private async void FrameReady( object sender, IBuffer DataBuffer ) { [...] read more
I have problem working on an Android accessory job with Arduino Due which is uploaded Blink.ino (other samples too). The problem is that I couldn't detect any USB accessory (or List) from UsbManager got from getSystemService("USB_SERVICE") in any case with attaching or detaching. My code is below. 1. manifest <?xml [...] read more