Author Topic: FrameBuffer.getOutputBuffer() problem with new jpct version.  (Read 4352 times)

Offline qjvictor

  • int
  • **
  • Posts: 77
    • View Profile
when I use FrameBuffer.getOutputBuffer(), I get the exception as following:
java.lang.NullPointerException
   at java.lang.System.arraycopy(Native Method)
   at com.threed.jpct.FrameBuffer.getOutputBuffer(Unknown Source)

While when I use the old version, it works.

is it a bug?

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 11777
    • View Profile
    • http://www.jpct.net
Re: FrameBuffer.getOutputBuffer() problem with new jpct version.
« Reply #1 on: May 07, 2007, 06:12:52 pm »
Yes, it is. It happens when using one of the new oversampling modes for hardware. I've uploaded a fixed version here: http://www.jpct.net/download/beta/jpct.jar. This version includes some (still undocumented) future stuff...ignore this for now. I've also removed some code from getOutputBuffer() that made no sense to me. Please let me know, if i've broken something with this change...

Offline qjvictor

  • int
  • **
  • Posts: 77
    • View Profile
Re: FrameBuffer.getOutputBuffer() problem with new jpct version.
« Reply #2 on: May 07, 2007, 06:15:17 pm »
You mean if I use the .jar you provided, the problem will be fixed?

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 11777
    • View Profile
    • http://www.jpct.net
Re: FrameBuffer.getOutputBuffer() problem with new jpct version.
« Reply #3 on: May 07, 2007, 06:16:55 pm »
Hopefully...

Offline qjvictor

  • int
  • **
  • Posts: 77
    • View Profile
Re: FrameBuffer.getOutputBuffer() problem with new jpct version.
« Reply #4 on: May 07, 2007, 06:21:42 pm »
It works.
Thanks. So do you think I should replace the old jar with the new one you provided, is it a stable release?

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 11777
    • View Profile
    • http://www.jpct.net
Re: FrameBuffer.getOutputBuffer() problem with new jpct version.
« Reply #5 on: May 07, 2007, 06:27:24 pm »
It's not a stable release, but changes should be limited to upcoming (1.14+) features only, so it should work fine when using the "old" features only. I suggest to replace the current jar with it as long as no other problems arise. If they arise, please let me know.

Offline qjvictor

  • int
  • **
  • Posts: 77
    • View Profile
Re: FrameBuffer.getOutputBuffer() problem with new jpct version.
« Reply #6 on: May 07, 2007, 06:45:36 pm »
Thanks.