Error in C++ / NES emulator program

Hello,
I am attempting to plan a Nintendo NES emulator.
Also I have coded a number of opcodes (NES utilizes a 6502 processor) as well as them worked rightly.
However now I am attempting to assign a part of memory but I find this error message.
Please help me to solve it.

Unhandled Exception
General Protection Exception
EMUTEST.CPP 134
EMUTEST(2) 0x1B7F:0x0286 Processor
Fault
                      OK
Thanks a lot.
