I am currently getting an "exception thrown" error on the line
mov      [ebx], eax
I can't find a solution because all of them use this exact same code and it works for them.
This is an exact copy from my lecture notes and it seems to work for other people except for me.
 TITLE Program Template     (template.asm)
; Author:
; Last Modified:
; OSU email address: 
; Course number/section:
; Project Number:                 Due Date:
; Description:
INCLUDE Irvine32.inc
.data
intro           BYTE    "Fun with Arrays! by ", 0
instruction BYTE    "This program generates random numbers in the range [100 .. 999], displays the original list, sorts the list, and calculates the median value. Finally, it displays the list sorted in descending order.", 0
request         DWORD   ?
ask_user        BYTE    "How many numbers should be generated? [10 ... 200]: ", 0
.code
main PROC
    ;call   randomize
    call    introduction
    push    OFFSET request
    call    getData
    exit    ; exit to operating system
main ENDP
introduction PROC
     mov    edx, OFFSET intro
     call   WriteString
     call   CrLf
     mov    edx, OFFSET instruction
     call   WriteString
     call   CrLf
introduction ENDP
getData PROC
    push    ebp
    mov     ebp, esp
    mov     edx, OFFSET ask_user
    call    WriteString
    call    ReadInt
    mov     ebx, [ebp+8]
    mov     [ebx], eax
    pop     ebp
    ret     4
getData ENDP
END main
 
    