Alex Rivera | Logout

Invalid memory access of location in Java

Asked 2011-07-03T03:14:27.030
16

I've been working on a Java project for year. My code had been working fine for months. A few days ago I upgraded the Java SDK to the newest version 1.6.0_26 on my Mac (Snow Leopard 10.6.8). After the upgrade, something very weird happens. When I run some of the classes, I get this error:

Invalid memory access of location 0x202 rip=0x202

But, if I run them with -Xint (interpreted) they work, slow but work fine. I get that problem in classes where I use bitwise operators (bitboards for the game Othello). I can't put any code here because I don't get an error, exception or something similar. I just get that annoying message.

Is it normal that the code doesn't run without -Xint but it works with it? What should I do?

Thanks in advance

Edit
Report

1 Answer

0

Also verify that you are building the GUI on the event dispatch thread and never updating a GUI component from any other thread.

Related errors are notoriously hard to reproduce, but the change associated with altered timing is suggestive.

answered 2011-07-03T08:46:11.037

Your Answer