Re: odd atomicOp errors from vibe-core

2020-04-09 Thread Steven Schveighoffer via Digitalmars-d-learn
On 4/9/20 11:22 PM, Stefan Koch wrote: On Friday, 10 April 2020 at 01:54:14 UTC, Steven Schveighoffer wrote: I'm building a library that uses vibe-core as an indirect dependency. Specifically, I'm testing the library with dub test. [...] Those are signed unsigned mismatches when it tries to

Re: odd atomicOp errors from vibe-core

2020-04-09 Thread Stefan Koch via Digitalmars-d-learn
On Friday, 10 April 2020 at 01:54:14 UTC, Steven Schveighoffer wrote: I'm building a library that uses vibe-core as an indirect dependency. Specifically, I'm testing the library with dub test. [...] Those are signed unsigned mismatches when it tries to lock. that's probably in vibe-d

Re: To get memory from another process.

2020-04-09 Thread rikki cattermole via Digitalmars-d-learn
On 10/04/2020 7:42 AM, Dennis wrote: On Thursday, 9 April 2020 at 19:27:16 UTC, Quantium wrote: I see this code imports drivers and does it depend on processor architecture? Would it work only on 64-bit or 32-bit or some special architechtures? kernel32.dll and psapi.dll should be present on

odd atomicOp errors from vibe-core

2020-04-09 Thread Steven Schveighoffer via Digitalmars-d-learn
I'm building a library that uses vibe-core as an indirect dependency. Specifically, I'm testing the library with dub test. A very odd thing happens as I'm picking off compiler errors one at a time. After all the errors that I created are listed, I get this list: ../../../.dub/packages/vibe-co

Re: How do I disable the multithreaded GC?

2020-04-09 Thread Stefan Koch via Digitalmars-d-learn
On Thursday, 9 April 2020 at 20:56:59 UTC, Johan wrote: On Thursday, 9 April 2020 at 20:42:18 UTC, Stefan Koch wrote: Simple question, how do I keep the GC from spawning threads? Cheers, Stefan https://dlang.org/changelog/2.087.0.html#gc_parallel Thanks a lot.

Re: How do I disable the multithreaded GC?

2020-04-09 Thread Johan via Digitalmars-d-learn
On Thursday, 9 April 2020 at 20:42:18 UTC, Stefan Koch wrote: Simple question, how do I keep the GC from spawning threads? Cheers, Stefan https://dlang.org/changelog/2.087.0.html#gc_parallel

How do I disable the multithreaded GC?

2020-04-09 Thread Stefan Koch via Digitalmars-d-learn
Simple question, how do I keep the GC from spawning threads? Cheers, Stefan

Re: To get memory from another process.

2020-04-09 Thread Dennis via Digitalmars-d-learn
On Thursday, 9 April 2020 at 19:27:16 UTC, Quantium wrote: I see this code imports drivers and does it depend on processor architecture? Would it work only on 64-bit or 32-bit or some special architechtures? kernel32.dll and psapi.dll should be present on any normal Windows 10 installation.

Re: To get memory from another process.

2020-04-09 Thread Quantium via Digitalmars-d-learn
I see this code imports drivers and does it depend on processor architecture? Would it work only on 64-bit or 32-bit or some special architechtures?

Re: To get memory from another process.

2020-04-09 Thread Dennis via Digitalmars-d-learn
On Thursday, 9 April 2020 at 17:23:19 UTC, Quantium wrote: Ok. For training example, we're using Windows 10 Por. We can use WinAPI. Are there any D libs to use WinAPI? I have used the Windows API to read/write into a different process before. Here is some example code in case it's useful: (I

Re: Dub will not load bindbc-harfbuzz

2020-04-09 Thread Kaitlyn Emmons via Digitalmars-d-learn
On Thursday, 9 April 2020 at 11:40:12 UTC, rikki cattermole wrote: How old is your build of dub? "betterC" build option was introduced in 1.20.0 I have tried several times to get new version of dub from https://github.com/dlang/dub/releases but it then it wont query the register at all PS

Re: To get memory from another process.

2020-04-09 Thread Adam D. Ruppe via Digitalmars-d-learn
On Thursday, 9 April 2020 at 17:23:19 UTC, Quantium wrote: We can use WinAPI. Are there any D libs to use WinAPI? import core.sys.windows.windows; it is all built in.

Re: To get memory from another process.

2020-04-09 Thread Quantium via Digitalmars-d-learn
On Thursday, 9 April 2020 at 17:23:19 UTC, Quantium wrote: Anyway, messing with another, isolated processes is stuff that is highly specific to each operating system. Anyway, there are no generic answers to your question. This is hardcore systems programming. You should rather look at your OS d

Re: To get memory from another process.

2020-04-09 Thread Quantium via Digitalmars-d-learn
Anyway, messing with another, isolated processes is stuff that is highly specific to each operating system. Anyway, there are no generic answers to your question. This is hardcore systems programming. You should rather look at your OS documentation to see what is provided there. Ok. For train

Link error undefined symbol: __imp__InterlockedIncrement@4 on windows

2020-04-09 Thread Clayton Alves via Digitalmars-d-learn
I'm trying to compile my first hello world dub project, but when I run "dub" it spits this error: lld-link: error: undefined symbol: __imp__InterlockedIncrement@4 Does anybody have any clues what is going on ?

Re: Dub will not load bindbc-harfbuzz

2020-04-09 Thread rikki cattermole via Digitalmars-d-learn
How old is your build of dub? "betterC" build option was introduced in 1.20.0

Dub will not load bindbc-harfbuzz

2020-04-09 Thread Kaitlyn Emmons via Digitalmars-d-learn
Failed to load package in C:/Users/snuff/AppData/Local/dub/packages/bindbc-harfbuzz-0.2.1/bindbc-harfbuzz/: BuildOption does not have a member named 'betterC' I am not sure why it is not working. .. my dub.json looks like this { "name": "graph", "authors": [ "Kai

Re: To get memory from another process.

2020-04-09 Thread Gregor Mückl via Digitalmars-d-learn
On Wednesday, 8 April 2020 at 21:04:42 UTC, Quantium wrote: I'm trying to do this because I have very special programm that makes some calculations and on every calculation there is a hash in RAM. I need to get a one of hash values from a .bin file, and replace them. I mean hash in RAM of the p