Page 1 of 1

PNGImageDecoder + AddGadgetItem = IMA ?

Posted: Sun Sep 09, 2012 4:19 pm
by Lord
Hello!

I'm just trying to make my first steps with Linux+PB.

I'm running Linux Mint 64 in a VMWare virtual machine
on a Win7 x64 system.
PureBasic in this VM is PB 4.61x64.

I tried to compile a program that works fine on the
above mentioned Win7 x64 with PB 4.61 x86 and
PB 4.61 x64 but on Linux I got an IMA.

I reduced my program until I still got the IMA with
minimum code:

Code: Select all

UsePNGImageDecoder()  ; comment this out and there is no IMA

OpenWindow(1, 0, 0, 780, 400, "Test")
TreeGadget(0, 0,0, 180,400)
AddGadgetItem(0, -1, "Test")   ; or comment this out and there is also no IMA


Repeat
  Event.i=WaitWindowEvent()    ; IMA is indicated here

Until Event=#PB_Event_CloseWindow
If I comment out "UsePNGImageDecoder()" or
"AddGadgetItem(0, -1, "Test")" the IMA has gone.

So my question is, wether I found a bug or my soft-
ware configuration is causing this problem.
If this is a bug, is it already stated somewhere in
the Bug Section (I didn't find such) and is this "bug"
already fixed in PB 5 or can anybody confirm that
this is not a bug?

Re: PNGImageDecoder + AddGadgetItem = IMA ?

Posted: Sun Sep 09, 2012 5:36 pm
by Guimauve
Very strange...

I have try your code in LinuxMint 13 x64 + Gnome-Shell and I don't have any "IMA" error of any kind.
But I use PB V5.00B2 x64 instead of V4.61 maybe it's the difference.

Best regards
Guimauve

Re: PNGImageDecoder + AddGadgetItem = IMA ?

Posted: Sun Sep 09, 2012 9:28 pm
by idle
No problem with PB 4.61 or PB 5.0 x64 on Ubuntu 12.04 either

Re: PNGImageDecoder + AddGadgetItem = IMA ?

Posted: Mon Sep 10, 2012 5:06 pm
by Lord
Hello Guimauve and idle!

Thank you for your answers.

I will try to run PureBasic on a Ubuntu 12.04 system
in a virtual machine. If this doesn't work either, it must
be a VM issue.
But it is strange at all.
I switched in the original (not stripped down) source
all used graphics from PNG to BMP and removed the
UsePNGImageDecoder() statement, everything works
just fine.