On Wednesday, 7 July 2021 at 13:49:50 UTC, MoonlightSentinel
wrote:
On Wednesday, 7 July 2021 at 10:27:47 UTC, notna wrote:
On Windows:
[...]
Nice and helpful Error messages is on the top of our desires
list, right?
It's hard to give proper error backtraces without debug
information (-g).
On Wednesday, 7 July 2021 at 10:27:47 UTC, notna wrote:
On Windows:
[...]
Nice and helpful Error messages is on the top of our desires
list, right?
It's hard to give proper error backtraces without debug
information (-g).
Anyways, I can reproduce the error when compiling with `-m32`
(the
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 0xC009(access
On Wednesday, 7 July 2021 at 12:07:26 UTC, rikki cattermole wrote:
With ldc you can turn on address sanitizer which will give you
that information (and a LOT more!) without a debugger (but you
still need -g).
http://johanengelen.github.io/ldc/2017/12/25/LDC-and-AddressSanitizer.html
On 07/07/2021 11:54 PM, z wrote:
On Wednesday, 7 July 2021 at 10:27:47 UTC, notna wrote:
On Windows:
```
::> dmd curl_get.d
::> .\curl_get.exe
object.Error@(0): Access Violation
0x0283CA66
0x0041DE8D
0x004023A2
0x00402308
0x00414D33
0x00414CAD
0x00414B48
0x0040D41F
On Wednesday, 7 July 2021 at 10:27:47 UTC, notna wrote:
On Windows:
```
::> dmd curl_get.d
::> .\curl_get.exe
object.Error@(0): Access Violation
0x0283CA66
0x0041DE8D
0x004023A2
0x00402308
0x00414D33
0x00414CAD
0x00414B48
0x0040D41F
0x00402363
0x74B96359 in BaseThreadInitThunk
On Monday, 5 July 2021 at 15:08:45 UTC, MoonlightSentinel wrote:
On Monday, 5 July 2021 at 14:57:20 UTC, BoQsc wrote:
Let's say I can't store information into files.
Is it possible to download a file into an array.
Yes, use
[`get`](https://dlang.org/phobos/std_net_curl.html#.get):
```d
On Monday, 5 July 2021 at 14:57:20 UTC, BoQsc wrote:
Let's say I can't store information into files.
Is it possible to download a file into an array.
Yes, use [`get`](https://dlang.org/phobos/std_net_curl.html#.get):
```d
import std.net.curl;
void main()
{
char[] content =
Let's say I can't store information into files.
Is it possible to download a file into an array.
This is what I have now. It saves a download into a file named:
file.txt
import std;
import std.net.curl;
void main()
{
writeln("Hello D");