Re: Crash in PNG.exe
- To: mathgroup at smc.vnet.net
 - Subject: [mg92207] Re: Crash in PNG.exe
 - From: Jean-Marc Gulliet <jeanmarc.gulliet at gmail.com>
 - Date: Tue, 23 Sep 2008 07:31:00 -0400 (EDT)
 - Organization: The Open University, Milton Keynes, UK
 - References: <gb74im$eap$1@smc.vnet.net>
 
Szabolcs wrote:
> I was trying to export a matrix as an image, so I did this:
> 
> tb = Table[Exp[-x^2 - y^2], {x, 0, 2, .1}, {y, 0, 2, .1}];
> Export["tb.png", tb, {"PNG", "Data"}]
> 
> The result was that PNG.exe crashed.
> 
> (But Export["tb.png", Round[255 tb], {"PNG", "Data"}] did work.)
FWIW, it also crashes on a 64-bit Mac OS X system with version 6.0.3.
In[1]:= $Version
Out[1]= "6.0 for Mac OS X x86 (64-bit) (May 21, 2008)"
In[2]:= tb = Table[Exp[-x^2 - y^2], {x, 0, 2, .1}, {y, 0, 2, .1}];
Export["tb.png", tb, {"PNG", "Data"}]
During evaluation of In[2]:= LinkObject::linkd: Unable to communicate \
with closed link \
LinkObject[/Applications/Mathematica.app/SystemFiles/Converters/\
Binaries/MacOSX-x86-64/PNG.exe,7,7]. >>
Out[3]= $Failed
In[4]:= ByteCount[tb]
Out[4]= 3648
In[5]:=  Export["tb.png", Round[255 tb], {"PNG", "Data"}]
Out[5]= "tb.png"
Regards,
-- Jean-Marc