What determines the numerical size of a memory address?

Get help with using AutoHotkey (v2 or newer) and its commands and hotkeys
arcticir
Posts: 694
Joined: 17 Nov 2013, 11:32

What determines the numerical size of a memory address?

15 Jun 2022, 09:32

I use other software to call ahk-h.dll(64) and it crashes a lot, the reason for the crash is that it has a very large memory address, for example "strptr('a') => 3092365760128", while the address value we get when using ahk.exe is usually much smaller.

It frequently reports an error "Critical Error: Invalid memory read/write.", or simply crashes.


So what is causing this huge value? Is there a solution to this?

----

I checked the internal address of that software and the values were equally huge. But it never caused errors in reading or writing to the address. Why does ahk report an error?
arcticir
Posts: 694
Joined: 17 Nov 2013, 11:32

Re: What determines the numerical size of a memory address?

16 Jun 2022, 00:07

I am in a dilemma.
I went to the rust forum to give feedback. the rust people said that the values were large but normal and safe in rust. the AHKDLL error was a problem with the DLL itself and had nothing to do with rust.

On the other hand, AHKDLL works fine in all software, but only crashes in rust.

Can anyone help me?
Helgef
Posts: 4709
Joined: 17 Jul 2016, 01:02
Contact:

Re: What determines the numerical size of a memory address?

16 Jun 2022, 02:41

Large numbers shouldn't be an issue on its own. In combination with (an exceptionally) poor implementation, this could cause issues ofc. Your issue is probably not related to large numbers, but there is no way to tell from the information given.

Cheers.

Return to “Ask for Help (v2)”

Who is online

Users browsing this forum: emp00, popdeg and 48 guests