Skip to main content

All Questions

3 votes
1 answer
113 views

How to catch EXCEPTION_PRIV_INSTRUCTION from RDPMC directly in Assembly (and without SEH)?

I'm experimenting with measuring CPU's instructions latency and throughput on P and E cores using RDPMC on Win 11, something like that: MOV ECX, 0x40000000 ; Instructions Counter RDPMC ; Read ...
Andrey Dmitriev's user avatar
1 vote
0 answers
71 views

exception handling on different architectures

I have two questions about exception handling. I read exception handling code of some real-time operating system (I mean assembly code). I note that on some architectures we allocate on stack more ...
chav1s's user avatar
  • 31
0 votes
1 answer
54 views

WhenAll nested in WhenAny (or WhenAll with timeout) [duplicate]

The first exception does not block the execution: public static async Task Main() { await Task.WhenAny( Task.WhenAll( Task.Run(() => throw new Exception(&...
user26757851's user avatar
1 vote
1 answer
54 views

How to handle error during customized scoped dependency injection

I have applied the multi-tenant location for EF Core database applying customize schema per tenant in my ASP.NET Core Web API project. To do that the client send request through the API by setting ...
Yoann Blossier's user avatar
2 votes
1 answer
215 views

Android project throws FileAnalysisException in onCreate method in Main Activity when adding OkHttp library

I've created an Empty Views Activity project in Android Studio, but as soon as I add the dependency in build.gradle.kts and try to launch the app, it throws an exception (see output). No code is ...
Beavis's user avatar
  • 23
0 votes
1 answer
109 views

Getting Access violation exception thrown when setting up raylib with visual studio 2022

I wanted to learn game dev in C++ lately, so I decided to setup raylib in Visal Studio 2022 by following a tutorial online. I downloaded the latest release from the raylib github repo and configured ...
Aayan Tanvir's user avatar
1 vote
1 answer
94 views

PPP_support.h error() function terminates program without printing custom message

I'm working through Bjarne Stroustrup's "Programming: Principles and Practice Using C++" and using the PPP_support.h file from the official website https://www.stroustrup.com/PPP_support.h I ...
Khavin S's user avatar
-1 votes
0 answers
177 views

Fix an "Invalid column name" error for a valid column in a custom data type [duplicate]

I was hoping to find a workaround for an issue I am having. I believe this is a bug in SQL Server. We are using SQL Server 2022, RTM-CU20-GDR. I have written a utility stored procedure for solving the ...
Matthew Sontum's user avatar
1 vote
1 answer
130 views

Can the compiler elide a const local copy of const& vector parameter?

Consider these two functions: int foo(std::array<int, 10> const& v) { auto const w = v; int s{}; for (int i = 0; i < v.size(); ++i) { s += (i % 2 == 0 ? v : w)[i]; ...
Enlico's user avatar
  • 30.1k
0 votes
1 answer
223 views

How to deal with "DDGSException: No results found."

I tried to use DDGS to search for images in Jupyter Notebook with fastai, but the search seems to be not very stable. Most of time there turned out to be an ERROR:DDGSException: No results found.I ...
Alex YAN's user avatar
0 votes
1 answer
71 views

Catching an Alignment Check Exception on Windows

I'm trying to perform a misaligned memory read / write and catch it inside a __try and __except block. After setting the RFLAGS.AC bit to 1, I perform the misaligned read which causes my program to ...
trapstar's user avatar
1 vote
2 answers
74 views

`Option.defaultValue` not working properly in f# when raising exception

I am trying to combine Option.defaultValue with failWith to get exception for None values: printf "%A" (Some 1 |> Option.defaultValue (failwith "Error")) But this code raise ...
Andrey's user avatar
  • 6,629
1 vote
0 answers
64 views

How to receive the request object from webhook, Clientdisconnect exception. `Client disconnected before the server could read the request body`

I'm integrating the LINE messaging API with bot server. Likewise the Whatsapp Business API. To create the public URL, I used ngrok. Now whenever the user send the message to us, the LINE server send ...
Muhammad Faiz Raza's user avatar
4 votes
0 answers
126 views

Can I peek at an uncaught exception in the destructor of an object undergoing unwinding?

For debugging purposes, I would like to log the exception that is causing stack unwinding that lead to destruction of specific object. Something like this (pseudocode, obviously insufficient and not ...
Igor G's user avatar
  • 2,668
1 vote
1 answer
141 views

Module loading logistics failed: file logistics/security/ir.model.access.csv could not be processed:

Exception: Module loading logistics failed: file logistics/security/ir.model.access.csv could not be processed: No matching record found for external id 'model_logistics_order' in field 'Model' No ...
Anton's user avatar
  • 135

15 30 50 per page
1
2 3 4 5
3618