Skip to content
This repository has been archived by the owner on Dec 21, 2020. It is now read-only.

parser.Parse(bytes) is empty #9

Open
zdy2027 opened this issue May 26, 2017 · 3 comments
Open

parser.Parse(bytes) is empty #9

zdy2027 opened this issue May 26, 2017 · 3 comments

Comments

@zdy2027
Copy link

zdy2027 commented May 26, 2017

I use the code "data, _ := parser.Parse(bytes)" to parse my dcm, but data is empty.
I wonder why DicomMessage'msg is not Msg

@zdy2027
Copy link
Author

zdy2027 commented May 26, 2017

I must add

dcm := &dicom.DicomFile{}
gw := new(sync.WaitGroup)
dcm.Discard(c,gw)
gw.Wait()

before

for _, elem := range datax.Elements {
fmt.Printf("%+v\n", &elem)
}
"
than it can print elem

@zdy2027
Copy link
Author

zdy2027 commented May 26, 2017

you should fmt.Printf("%+v\n", elem) not &elem

@zdy2027
Copy link
Author

zdy2027 commented May 26, 2017

also in dicomPipes.go's WriteToFile and Log should print *dcmMsg.msg not dcmMsg.msg

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant