[Insight-users] ImageIO or FILeReader or FIleWrite's problem,

Mathieu Malaterre Mathieu . Malaterre at creatis . insa-lyon . fr
Wed, 02 Jul 2003 11:23:13 +0200


Your code is way too long, please make it as simple as possible. So that 
it still reproduce the bug.

Furthermore:
- You are using SetFilePrefix from an itkFileReader which doesn't exist:

http://www . itk . org/Doxygen/html/functions . html#index_s

- You are calling 'itkfilterwrap' but I don't have this code, I don't 
know if this allocate stuff properly,

- You are also using your own classes: MRCImageIO and IMAGICImageIO but 
I don't know what it does,

- Include all code: don't forget which '#include' you are using,

- Please send me a backtrace of gdb:

$ gdb myprog
gdb> r  [all necessary arguments]
gdb> bt
[cut and paste the output]

Thanks
mathieu


Shunming Fang wrote:
> Hello, Mathieu,
> The following code is my code, I declare two instance
> of my different specific ImageIO, one for reader and
> other for writer, when I setup a pipelince form reader
> -> filters->writer, the segmeantation always happen if
> the two instance of ImageIO is the same, any
> explanation about it?(Note: i change back for writer
> using the same ImageIO instance imageIO)
> Thanks,
> Fang
 >
> int main(int argc, char** argv)
[snip]
> 
> 
> --- Mathieu Malaterre
> <Mathieu . Malaterre at creatis . insa-lyon . fr> wrote:
> 
>>Shunming Fang wrote:
>>
>>>If I just use one ImageIO to reader and
>>>writer(supposed the input file and out file format
>>
>>is
>>
>>>the same), no problem. Only implmenting like the
>>>following way, the segmentation happen before
>>>writer->Update(), Yes, it is before
>>
>>writer->Update()
>>
>>Shunming,
>>	Are you sure you don't use any 'Update()' before
>>this one ?
>>	Because setting up a pipeline doesn't do anything
>>at all...until  an 
>>'Update()' is call on a filter.
>>
>>	So please send us the whole code you are using. You
>>can also send us 
>>the backtrace of a gdb session.
>>
>>Thanks,
>>Mathieu
>>
>>
>>
>>
>>>because try..Catch didn't catch the segmenataion.
>>>I wander whether in itk, there are just one
>>
>>ImageIO
>>
>>>instance allowed?
>>>Fang
>>
>>_______________________________________________
>>Insight-users mailing list
>>Insight-users at itk . org
>>http://www . itk . org/mailman/listinfo/insight-users
> 
> 
> 
> __________________________________
> Do you Yahoo!?
> SBC Yahoo! DSL - Now only $29.95 per month!
> http://sbc . yahoo . com
> 


-- 
Mathieu Malaterre
CREATIS
28 Avenue du Doyen LEPINE
B.P. Lyon-Montchat
69394 Lyon Cedex 03
http://www . creatis . insa-lyon . fr/~malaterre/