• AVR Freaks

Helpful ReplyHot!MPASMX.exe throws NULL reference exceptions in Windows 8.1

Author
Questor13
New Member
  • Total Posts : 20
  • Reward points : 0
  • Joined: 2009/09/30 17:49:00
  • Location: 0
  • Status: offline
2015/02/16 20:27:58 (permalink)
0

MPASMX.exe throws NULL reference exceptions in Windows 8.1

Although the MPASMX.exe program compiles ASM files just fine, before it exits, it generates 4  NULL pointer exceptions.  This occurs when compiling from a Batch file or a Command Prompt.
 
                          Access violation at address 00000000. Read of address 00000000.
 
I have attached a simple ASM file.  You can verify this by placing the file in a C:\TEMP directory, opening an Administator Command prompt and executing the following 2 commands.
 
CD \Temp
"C:\Program Files (x86)\Microchip\MPLABX\MPASMX\MPASMX" JRH170.ASM /aINHX32 /e /t8
 
I placed the MPASMWIN.exe file into the same directory and executed it the same way as above and it did not throw the exceptions.
 
Don't know if it makes a difference, but although I show the default directory for MPASMX in the statements above, I have removed the "Microchip" sub-directory and installed the MPASMX directory in the program files (x86) directory.
 

Attachment(s)

Attachments are not available: Download requirements not met
#1
annapolis
Administrator
  • Total Posts : 1808
  • Reward points : 0
  • Status: offline
Re: MPASMX.exe throws NULL reference exceptions in Windows 8.1 2015/02/20 09:47:26 (permalink)
+1 (3)
Program Files subfolders do not have Write access, including \mpasmx.
You might grant access to that folder and check results.
Linker has -o option for output filename, if using Relocatable.
 
#2
Questor13
New Member
  • Total Posts : 20
  • Reward points : 0
  • Joined: 2009/09/30 17:49:00
  • Location: 0
  • Status: offline
Re: MPASMX.exe throws NULL reference exceptions in Windows 8.1 2015/05/14 13:29:42 (permalink)
0
Since this also happens at work on windows 7, and I do not have rights to modify folder permissions, this is not an option.  No program should throw an exception and force the user to respond to 4 messages boxes every time they try to assemble a program.
 
#3
Jim Nickerson
User 452
  • Total Posts : 6361
  • Reward points : 0
  • Joined: 2003/11/07 12:35:10
  • Location: San Diego, CA
  • Status: offline
Re: MPASMX.exe throws NULL reference exceptions in Windows 8.1 2015/05/17 10:39:19 (permalink)
+1 (1)
Windows 8.1 is ( successfully ) protecting you from your self by disabling writes to your program folders.
 
 
#4
Jim Nickerson
User 452
  • Total Posts : 6361
  • Reward points : 0
  • Joined: 2003/11/07 12:35:10
  • Location: San Diego, CA
  • Status: offline
Re: MPASMX.exe throws NULL reference exceptions in Windows 8.1 2015/05/17 10:50:14 (permalink)
0
This page http://winaero.com/blog/how-to-edit-environment-variables-quickly-in-windows-8-1-and-windows-8/ demonstrates how one might edit the "Environment Variables" for a specific user.
If you were to add the path to "MPASMX" maybe you could place the ".asm" file in a user accessible dir ( maybe in "Documents" ) and no longer write to the protected system folder.
#5
findux
New Member
  • Total Posts : 1
  • Reward points : 0
  • Joined: 2016/10/21 09:58:15
  • Location: 0
  • Status: offline
Re: MPASMX.exe throws NULL reference exceptions in Windows 8.1 2016/10/25 00:19:29 (permalink) ☄ Helpfulby AlanMcR 2019/11/13 12:51:57
+1 (1)
(ANOTHER SOLVER )
Hi .
I've encountered the same problem. I realized that it was about the parameters. /s- parameter is solve the problem.
like that
mpasmx.exe  /s-  ilk.asm
 
#6
AlanMcR
New Member
  • Total Posts : 14
  • Reward points : 0
  • Joined: 2018/07/26 10:42:22
  • Location: 0
  • Status: offline
Re: MPASMX.exe throws NULL reference exceptions in Windows 8.1 2019/11/13 12:52:23 (permalink)
0
Yep, the /s- fixed it for me.  Thanks!
#7
Jump to:
© 2019 APG vNext Commercial Version 4.5