Author Topic: I have just found the first really irksome thing about win10.  (Read 2619 times)

hutch--

  • Administrator
  • Member
  • ******
  • Posts: 4813
  • Mnemonic Driven API Grinder
    • The MASM32 SDK
I have just found the first really irksome thing about win10.
« on: February 19, 2016, 12:17:48 AM »
With Win7 64 I could routinely allocate just on 2 gig of memory, Win10 uses something like a gigabyte of win32 accessible memory for Windows Defender and the most I can regularly allocate in win32 is about 1.25 gig of memory. Now i have to try and find a way to get around this as it is a major restriction for some of the code designs I have used.
hutch at movsd dot com
http://www.masm32.com    :biggrin:  :biggrin:

hutch--

  • Administrator
  • Member
  • ******
  • Posts: 4813
  • Mnemonic Driven API Grinder
    • The MASM32 SDK
Re: I have just found the first really irksome thing about win10.
« Reply #1 on: February 19, 2016, 01:39:16 AM »
Hmmmm,

Seems you can get around it by turning OFF defender AND using the LARGEADDRESSAWARE linker option. Never had to do this in Win7.
hutch at movsd dot com
http://www.masm32.com    :biggrin:  :biggrin:

Vortex

  • Member
  • *****
  • Posts: 1704
Re: I have just found the first really irksome thing about win10.
« Reply #2 on: February 19, 2016, 06:58:12 AM »
Reading Pelles help file :

Quote
Syntax:
/LARGEADDRESSAWARE [:NO]

Description:
The /LARGEADDRESSAWARE option tells the operating-system that the executable file can handle addresses above 2 GB. The IMAGE_FILE_LARGE_ADDRESS_AWARE flag will be set in the file header of the linked executable. See Microsoft Windows documentation for more information about this flag.

The /LARGEADDRESSAWARE:NO option will not set the file header flag.

hutch--

  • Administrator
  • Member
  • ******
  • Posts: 4813
  • Mnemonic Driven API Grinder
    • The MASM32 SDK
Re: I have just found the first really irksome thing about win10.
« Reply #3 on: February 19, 2016, 02:06:20 PM »
Hi Erol,

After setting the flag in the link line to /LARGEADDRESSAWARE I did this test and it works OK.

Code: [Select]
    mov pMem1, alloc(1024*1024*1024)
    fn MessageBox,0,hex$(pMem1),"pMem1",MB_OK

    mov pMem2, alloc(1024*1024*1024)
    fn MessageBox,0,hex$(pMem2),"pMem2",MB_OK

    mov pMem3, alloc(1024*1024*768)
    fn MessageBox,0,hex$(pMem3),"pMem3",MB_OK

About 2.75 gig is about the limit so it seems to work OK.
hutch at movsd dot com
http://www.masm32.com    :biggrin:  :biggrin:

jj2007

  • Member
  • *****
  • Posts: 7558
  • Assembler is fun ;-)
    • MasmBasic
Re: I have just found the first really irksome thing about win10.
« Reply #4 on: February 19, 2016, 02:41:51 PM »
With Win10, Microsoft is still in the banana marketing phase ("the product matures on the consumer's premises").

I hope the European Commission is busy studying their incredible EULA ("we'll happily read your emails if we think we need that to improve our services"). Right now, Apple is going the opposite road ("No, Apple Has Not Unlocked 70 iPhones For Law Enforcement"). We'll see who has more success; I'm somewhat pessimistic :(

hutch--

  • Administrator
  • Member
  • ******
  • Posts: 4813
  • Mnemonic Driven API Grinder
    • The MASM32 SDK
Re: I have just found the first really irksome thing about win10.
« Reply #5 on: February 19, 2016, 03:49:50 PM »
See if you can get your hands on one of the $5.00 Indian made mobile phones. Apparently they work fine. I have more or less got Win10 working OK with only the occasional "mutter", the lack of a Winhelp app is a pain, had to scoure through a win2000 SDK disk to get a collection of CHM files so I had win32 reference available. Tried a later XP SDK but it uses the HXS or whatever it is help system which I doubt can be used in Win10 at all.
hutch at movsd dot com
http://www.masm32.com    :biggrin:  :biggrin:

jimg

  • Member
  • **
  • Posts: 191
Re: I have just found the first really irksome thing about win10.
« Reply #6 on: February 19, 2016, 04:01:35 PM »
I just got winhlp32 working by using the info on tenforum.  It uses winhlp32.exe from XP 64 bit.  I'll post the file if you approve.

Magnum

  • Member
  • *****
  • Posts: 2235
Re: I have just found the first really irksome thing about win10.
« Reply #7 on: February 19, 2016, 04:45:59 PM »
With Win10, Microsoft is still in the banana marketing phase ("the product matures on the consumer's premises").

I hope the European Commission is busy studying their incredible EULA ("we'll happily read your emails if we think we need that to improve our services"). Right now, Apple is going the opposite road ("No, Apple Has Not Unlocked 70 iPhones For Law Enforcement"). We'll see who has more success; I'm somewhat pessimistic :(

Thanks for the good info.

The government does like to overstep their boundaries.

My policy is to never post anything that I would not like the world to know about. :-)

Take care,
                   Andy

Ubuntu-mate-16.04-desktop-amd64

http://www.goodnewsnetwork.org

hutch--

  • Administrator
  • Member
  • ******
  • Posts: 4813
  • Mnemonic Driven API Grinder
    • The MASM32 SDK
Re: I have just found the first really irksome thing about win10.
« Reply #8 on: February 19, 2016, 04:46:09 PM »
Jim,

yes !  :biggrin:
hutch at movsd dot com
http://www.masm32.com    :biggrin:  :biggrin:

jimg

  • Member
  • **
  • Posts: 191
Re: I have just found the first really irksome thing about win10.
« Reply #9 on: February 19, 2016, 04:52:08 PM »
just unzip into a temp folder, start an administrator mode command prompt, and run batch file, which will copy the new one into your system folder using all the necessary permissions.

(Modified to clarify procedure)
« Last Edit: February 20, 2016, 10:58:58 AM by jimg »

jimg

  • Member
  • **
  • Posts: 191
Re: I have just found the first really irksome thing about win10.
« Reply #10 on: February 19, 2016, 04:57:32 PM »
this one should be good.

jj2007

  • Member
  • *****
  • Posts: 7558
  • Assembler is fun ;-)
    • MasmBasic
Re: I have just found the first really irksome thing about win10.
« Reply #11 on: February 19, 2016, 09:18:48 PM »
the lack of a Winhelp app is a pain, had to scoure through a win2000 SDK disk to get a collection of CHM files so I had win32 reference available. Tried a later XP SDK but it uses the HXS or whatever it is help system which I doubt can be used in Win10 at all.

Consider using the Visual Studio offline MSDN help ("Help Library Agent"). I've implemented that in RichMasm a while ago, and nowadays I use it most of the time, especially when I suspect that the old WIN32.HLP is not up-to-date.

hutch--

  • Administrator
  • Member
  • ******
  • Posts: 4813
  • Mnemonic Driven API Grinder
    • The MASM32 SDK
Re: I have just found the first really irksome thing about win10.
« Reply #12 on: February 19, 2016, 09:25:39 PM »
Thank Jim, works perfect.
hutch at movsd dot com
http://www.masm32.com    :biggrin:  :biggrin:

raymond

  • Member
  • **
  • Posts: 172
    • Raymond's page
Re: I have just found the first really irksome thing about win10.
« Reply #13 on: February 20, 2016, 07:53:34 AM »
this one should be good.

It is good IF and only IF I run it separately on its own.

I tried to copy it over the one in my Windows folder (where its current size is only 10 kb) but I get an "access denied" message, same when I try to run the .bat file.
Whenever you assume something, you risk being wrong half the time.
http://www.ray.masmcode.com/

hutch--

  • Administrator
  • Member
  • ******
  • Posts: 4813
  • Mnemonic Driven API Grinder
    • The MASM32 SDK
Re: I have just found the first really irksome thing about win10.
« Reply #14 on: February 20, 2016, 09:35:00 AM »
Ray, on Win10, try starting a command prompt as Administrator then run the batch file. I have it working here on Win10 with no problems at all.
hutch at movsd dot com
http://www.masm32.com    :biggrin:  :biggrin: