| |
| Posted by notna in reply to z | PermalinkReply |
|
notna
| On Wednesday, 7 July 2021 at 11:54:39 UTC, z wrote:
> On 64 bits you don't even get a stack trace or description.
Sad, i know.
If you want better i could recommend you to compile with -g and hook up a debugger, then just let it run and it should triger a breakpoint on 0xC0000009(access violation).
Well, that's an option, for those who want and are knowledgeable to debug ;)
Anyhow, compiling it with dmd -v -g results in
λ .\curl_get.exe
object.Error@(0): Access Violation
----------------
0x028DCA66
0x004211E1 in ref void* std.concurrency.initOnce!(std.net.curl.CurlAPI._handle).initOnce(lazy void*)
0x00402449 in char[] std.net.curl.get!(std.net.curl.AutoProtocol, char).get(const(char)[], std.net.curl.AutoProtocol) at c:\d\dmd2\windows\bin\..\..\src\phobos\std\net\curl.d(588)
0x00402308 in _Dmain at C:\Programming\D_playground\curl_get.d(6)
0x00417E0B in void rt.dmain2._d_run_main2(char[][], uint, extern (C) int function(char[][])*).runAll().__lambda1()
0x00417D85 in void rt.dmain2._d_run_main2(char[][], uint, extern (C) int function(char[][])*).runAll()
0x00417C20 in _d_run_main2
0x0040FD63 in _d_run_main
0x00402404 in main at c:\d\dmd2\windows\bin\..\..\src\druntime\import\core\internal\entrypoint.d(29)
0x0048ADC9 in mainCRTStartup
0x74B96359 in BaseThreadInitThunk
0x773887A4 in RtlGetAppContainerNamedObjectPath
0x77388774 in RtlGetAppContainerNamedObjectPath
|