c – How to detect volume mount path changes on Windows?-ThrowExceptions

Exception or error: I am working on a component in C to detect volume mount and unmount on Windows. When working with volume mounted on drive letters, everything works great by listening for WM_DEVICECHANGE with wparam set to DBT_DEVICEARRIVAL and DBT_DEVICEREMOVECOMPLETE with dbch_devicetype set to DBT_DEVTYP_VOLUME in my top level window event handler. However, when …

string – put() prints duplicate lines in c-ThrowExceptions

Exception or error: Closed. This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed 12 days ago. i was trying to run following code: #include<stdio.h> void main() { int c; while((c=getchar()) !=EOF) putchar(c); } i typed “hi” …

Unexpected C behavior involving pointers-ThrowExceptions

Exception or error: I’m tryng to let a char* variable point to a malloc’d string but something really wrong is happening and i’m dealing with a segmentation fault. That’s the involved portion of my code, I’ve tried to give an executable example but using AF_UNIX socket I’m afraid it won’t be easly testable. #include <unistd.h> …

c++ – VkSurfaceKHR pointer's value changes after a function call without any explicit assignments-ThrowExceptions

Exception or error: This is the abridged error message from Vulkan’s validation layers Invalid VkSurfaceKHR Object 0x1000000002. Objects: 1 [0] 0x1000000002, type: 1000000000, name: NULL thrown by this function populateQueueFamilies(&physicalDevice, &queueFamilyIndicesList, &queueFamilyCount, &surface); Now this shouldn’t happen because populatePhysicalDevice(&instance, &physicalDevice, &surface); populateQueueFamilies(&physicalDevice, &queueFamilyIndicesList, &queueFamilyCount, &surface); the function before it also uses surface variable and doesn’t …

c – How can I debug CAN bus in SAM4e controller?-ThrowExceptions

Exception or error: I’ve just started programming SAM4e microcontroller for CAN but facing a problem. I’ve implemented USB_serial comm to debug the CAN process but not helping much. The CAN configuration is working fine. It also showing data is being transmitted but on the other controller data is not getting received. I’m using ATSAM4e8e controller …

c++ – gstreamer audiomixer command to code converting-ThrowExceptions

Exception or error: I want to use audiomixer in my application which receives audios from different sources and should play them together in speaker. my final application should do something like this command: gst-launch-1.0 audiomixer name=mix ! autoaudiosink autoaudiosrc ! \ audioconvert ! mix. udpsrc port=5001 caps=”application/x-rtp” ! queue !\ rtppcmudepay ! mulawdec ! audioconvert …