comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: print statements not working with dicom series uids?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: print statements not working with dicom series uids? [message #66477] Wed, 20 May 2009 17:15 Go to next message
justin.mikell is currently offline  justin.mikell
Messages: 5
Registered: May 2009
Junior Member
On May 20, 7:10 am, "Jean H." <jghas...@DELTHIS.ucalgary.ANDTHIS.ca>
wrote:
> justin.mik...@gmail.com wrote:
>> I use IDL 7.0 on windows XP.
>
>> When I execute the program, IDL chooses not to print certain
>> statements.
>> All the suspect print statements are trying to print a dicom series
>> uid string.
>
>> However, when I place a breakpoint and then step through the statement
>> it prints to screen.
>
>> -Justin
>
> Hi Justin,
>
> I have witnessed, today, that some statements are "partly printed"...
> If I look at the console output (winXP, IDL 7.0.8) the expected line is
> not there... but moving up and down in the console makes the line
> automagically appear! Strange.
>
> Jean

I am unable to have them appear by moving the console position. They
do appear when I print to an actual file instead of the console.
Re: print statements not working with dicom series uids? [message #66487 is a reply to message #66477] Wed, 20 May 2009 05:10 Go to previous messageGo to next message
Jean H. is currently offline  Jean H.
Messages: 472
Registered: July 2006
Senior Member
justin.mikell@gmail.com wrote:
> I use IDL 7.0 on windows XP.
>
> When I execute the program, IDL chooses not to print certain
> statements.
> All the suspect print statements are trying to print a dicom series
> uid string.
>
> However, when I place a breakpoint and then step through the statement
> it prints to screen.
>
> -Justin
>

Hi Justin,

I have witnessed, today, that some statements are "partly printed"...
If I look at the console output (winXP, IDL 7.0.8) the expected line is
not there... but moving up and down in the console makes the line
automagically appear! Strange.

Jean
Re: print statements not working with dicom series uids? [message #66565 is a reply to message #66477] Thu, 21 May 2009 09:49 Go to previous message
bill.dman is currently offline  bill.dman
Messages: 17
Registered: June 2007
Junior Member
On May 20, 8:15 pm, justin.mik...@gmail.com wrote:
> On May 20, 7:10 am, "Jean H." <jghas...@DELTHIS.ucalgary.ANDTHIS.ca>
> wrote:
>
>
>
>> justin.mik...@gmail.com wrote:
>>> I use IDL 7.0 on windows XP.
>
>>> When I execute the program, IDL chooses not to print certain
>>> statements.
>>> All the suspect print statements are trying to print a dicom series
>>> uid string.
>
>>> However, when I place a breakpoint and then step through the statement
>>> it prints to screen.
>
>>> -Justin
>
>> Hi Justin,
>
>> I have witnessed, today, that some statements are "partly printed"...
>> If I look at the console output (winXP, IDL 7.0.8) the expected line is
>> not there... but moving up and down in the console makes the line
>> automagically appear! Strange.
>
>> Jean
>
> I am unable to have them appear by moving the console position. They
> do appear when I print to an actual file instead of the console.

I remember experiencing something like this when using idlffdicom, and
tracked it down to
there being at least one null character at the end of the UID. See if
this helps:

function str_remove_trailing_null, string_in

compile_opt strictarr

s1 = strmid(string_in, 0, strlen(string_in)-1)
return, s1 eq string_in ? s1 : string_in
end

uid = strtrim(str_remove_trailing_null(*dcmvalptr[0]),2)
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: IDL 6.4.1 and X Windows with OS X 10.5.7 and ssh
Next Topic: problem with idl7.1 installation

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 17:06:13 PDT 2025

Total time taken to generate the page: 0.00693 seconds