[vtkusers] vtkBmpReader access violation
Peter F Bradshaw
pfb at exadios.com
Wed Nov 23 09:01:09 EST 2005
Hi Mattias;
On Mon, 21 Nov 2005, Mattias Bair wrote:
> Hi everybody,
>
> I'm a VTK newbie and so I have a problem reading bmp files. As my
> programming environment I'm using Borland builder. The following code should
> show you my proceeding.
>
>
> vtkBMPReader* vtkBmpImage = vtkBMPReader::New();
> vtkBmpImage->SetFileName( "/Temp/xxxx_cl_DB.bmp" );
> vtkBmpImage->Update();
You probably need to call
vtkBmpImage->SetDataExtent(int, int, int, int, int, int);
with some sensible values.
>
> At the last line I'll get an error of the code guard which says that the
> program attempts to access 65 bytes but there were only 64 bytes allocated
> for this array. I don't know which array is meant because I only get the
> compiled code of a dll I think. Is there a special type of bitmap used, does
> anybody have an idea what's wrong?
>
> Thx for your help.
>
Cheers
--
Peter F Bradshaw, http://www.exadios.com, ICQ 75431157 (exadios).
Public key at www.exadios.com/pfb.pgp.key and www.exadios.com/pfb.gpg.key
"I love truth, and the way the government still uses it occasionally to
keep us guessing." - Sam Kekovich.
More information about the vtkusers
mailing list