This is probably not the correct interpretation of this error.
The Win32 error above is more likely to indicate the actual problem.
Flags
Severity
Success
This code indicates success, rather than an error.
This may not be the correct interpretation of this code,
or possibly the program is handling errors incorrectly.
The following code calls the builtin functions for clz/ctz in GCC and, on other systems, has C versions. Obviously, the C versions are a bit suboptimal if the system has a builtin clz/ctz instruction, like x86 and ARM. #ifdef __GNUC__ #define clz(x) __builtin_clz(x) #define ctz(x) __builtin_ctz(x) #else static uint32_t ALWAYS_INLINE [...] read more
I am fighting with the WOL settings of my Ubuntu box at the moment. The idea is to have an HTTP/SVN server to sleep while it's unused and wake up when it's accessed. So far, wake-on-LAN works and is activated on startup: Settings for eth1: Supported ports: [ TP ] [...] read more
I included the iOS tag, but I'm running in the simulator on a Core i7 MacBook Pro (x86-64, right?), so I think that's immaterial. I'm currently debugging a crash in Flurry's video ads. I have a breakpoint set on Objective-C exceptions. When the breakpoint is hit I am in objc_msgSend. [...] read more
I have an enum type with 1223 elements. I had a function with 1222 cases and a default case in a switch block. If I want to modify some elements in the enum type, I also need to modify that function. Worse, I may have more than one function with [...] read more
After a 3 days journey, I finally got libvlc-3.0.0-2.1.0.aar compiled for embedding VLC player into my Android (tv) app. After adapting the LibVLC Android Sample into my project I finally run the app. Problem: Only audio is being played. Video never appears (the surface view stays black). I've tested with [...] read more
While debugging with VS 2012 Graphic's Debugger, I want to look at an index buffer, but the format that is showing it in is as float. This means the numbers are different than they would be with an int or short format. Does somebody know how to change this? Here [...] read more
Currently working with SlimDX's Direct3D 11 bindings and having significant difficulty with my shader, the source of which follows: /* * * * * * * * * * PARAM STRUCTS * * * * * * * * * */ struct VSPointIn { float3 pos : POSITION; float4 color [...] read more
I fighting with the WOL settings of my Ubuntu box at the moment. The idea is to have an HTTP/SVN server to sleep while it's unused and wake up when it's accessed. So far, wake-on-LAN works and is activated on startup: Settings for eth1: Supported ports: [ TP ] Supported [...] read more
I was succesfully able to compile and deploy vlc and libvlc onto an embedded board using Yocto Linux. For the compilation I used lua5.1 instead of lua5.3. That is how I got rid of the error "corrupt module liblua.so". The thing that runs on my PC does not run on [...] read more
I need to make a routine that counts bits in a word that does not involve loops (only bit operations), and does not use large constants. int x = 0xFFFFFFFF; x += (~((x >> 1) & 0x55555555)+1); x = (((x >> 2) & 0x33333333) + (x & 0x33333333)); x = [...] read more
I am trying to create an assembly in SQL but I am not able to load the following DLL. System.ServiceModel.Internals create assembly [system.servicemodel.internals] from 'C:\Windows\Microsoft.NET\Framework64\v4.0.30319\System.ServiceModel.Internals.dll' with permission_set = safe; go I get this error: > Msg 6218, Level 16, State 2, Line 2 CREATE ASSEMBLY for assembly > 'System.ServiceModel.Internals' failed [...] read more
Can anyone Explain this bitcount method. public static int bitCount(int i) { // Hacker's Delight, Figure 5-2 i -= (i >> 1) & 0x55555555; i = (i & 0x33333333) + ((i >> 2) & 0x33333333); i = ((i >> 4) + i) & 0x0F0F0F0F; i += i >> 8; i [...] read more
I am working on one of my projects which is in maintenance phase so I do not have much liberty to change a major chunk at one go, While working on this I get to see this random crash on both Simulator as well as Device while the application Syncs [...] read more
I am in the process of "re-developing" an application that was started in PHP sometime ago. The developer involved has left the company quite awhile ago and all efforts to contact him have fallen to the wayside. I do not need help converting the whole site as its quite a [...] read more
I am working with MAC to MAC MII link in my embedded board. one end of link has MPC8569 processor (free scale) and other side has BCM68610 controller (broadcom). I am trying to ping my switch from my processor but I am not able to do so. after doing ping, [...] read more
I am using I.MX6Q Sabre SD board. I am trying to build custom image with my own start script and ld script. The image is to be loaded with u-boot. I am trying to enable the UART receive interrupt for UART1. But it does not enter the Interrupt service routine. [...] read more
so I'm new to socket programming, and I was asked to write the server side that sends data to a client according to a certain request. I'm trying to server multiple clients at the same time. When a client first connects, the server accepts with no troubles whatsoever, but when [...] read more
Backstory: I'm working on a toy compiler that takes some simplified assembly-like text and converts it into 32-bit instructions. The conversion into 32-bit instructions is working correctly, but when I try to output the results, I run into some issues. Specifically, the macros I wrote to pull out the various [...] read more
I have three spi devices. Two uses custom spi drivers , whereas the one uses the spidev drivers. When I have spifpga driver and spidev driver included in defconfig file , I get only spidev device node working(/dev/spidev0.1).The spi_fpga init is called but the probe being not called Whereas when [...] read more
The display (ET035009DH6) stays dark with the following configuration. The backlight is on. Touch is working. ETM035009EDH6 Spec * Toradex Colibri iMX6ULL 512MB V1.1A * Toradex Colibri Evaluation Board Rev. 3.2 * ET035009DH6 * angstrom-lxde-image Device Tree lcdif@021c8000 { compatible = "fsl,imx6ul-lcdif", "fsl,imx28-lcdif"; reg = <0x021c8000 0x00004000>; interrupts = <0x00000000 [...] read more
I am sending HDMI CEC command to Power on and Standby my LG LED TV 2015 make. The device is a Amlogic S922x based SBC running Android 9. The Power On commands work but the Standby commands don't. Can someone tell me what is wrong with this? Power ON command [...] read more
Cannot get my FAT32 boot sector to work. Please help me. I have tried everything from looking through the code to testing it in virtualbox. When I run it in virtualbox I get this error: FATAL: INT18 BOOT ERROR. Here is the code: BITS 16 ORG 0x7C00 jmp START OEM_ID [...] read more
I want to play video on vlc player on Android. The options I gave --aout = opensles --audio-time-stretch I gave it to -vvv. Below is an error. D/VLC: [9c77b030/1bab] core input: `file:///storage/emulated/0/aber.sdp' gives access `file' demux `any' path `/storage/emulated/0/aber.sdp' D/VLC: [b47fb6d0/1bab] core input source: creating demux: access='file' demux='any' location='/storage/emulated/0/aber.sdp' file='/storage/emulated/0/aber.sdp' [...] read more
I'm assuming its a simple formating issue, however i cannt see it at the moment as I have been staring at this code for a few dozen hours now. The intended ouput should show a string i.e. "add" or "or" instead of "null". The string in question is functionR. all [...] read more
I am trying to design a pipelined cpu simulator. The code is fairly complex, atleast for me. There are multiple header and source files. The code compiles. On running, it runs fine in the first iteration(clock cycle). But not so from the iteration. After spending hours on finding the fault, [...] read more
Preamble This question is not about the behavior of (P)RNG and rand(). It's about using power of two values uniformly distributed against modulo. Introduction I knew that one should not use modulo % to convert a value from a range to another, for example to get a value between 0 [...] read more
I'm trying to crash problems in the book 'Computer organization and Design'. I come across a sequence of instructions in solution of book. But Qtspim, mips assembler, can't interpret them. Here is instructions. (book 4th edition, problem 2.14.4 a) add $t2, $t0, $0 srl $t2, $t2, 11 and $t2, $t2, [...] read more
The problem is: Memory is never released; potential leak of memory pointed to by 'p' In Code it occurs on the return of this single line method: - (NSString *)encodeBase64:(const uint8_t *)input length:(NSInteger)length { return [NSString stringWithUTF8String:base64_encode(input, (size_t)length)]; } base64_encode function: char* base64_encode(const void* buf, size_t size) { static const [...] read more
I need to come up with a way to unpack a date into a readable format. unfortunately I don't completely understand the original process/code that was used. Per information that was forwarded to me the date was packed using custom C/Python code as follows; date = year << 20; date [...] read more