I am trying to compress a palette color image to jpeg lossless. I am using the dcmcjpeg code as is. I am creating a dll instead of .exe, later using Runtime loading I am loading and running the compressing function.
the trouble is that its giving me a null pointer at
i tried compress the same file using binaries, and it happeneddataset->chooseRepresentation(opt_oxfer, rp);
the stack trace is as follows
so can some one pt. out where is the trouble.DiOverlay::getCount() line 244 + 15 bytes
DiMonoImage::Init(DiMonoModality * 0x00807b30) line 653 + 26 bytes
DiMonoImage::DiMonoImage(const DiDocument * 0x00807d50, EI_Status EIS_Normal) line 104
DiMono2Image::DiMono2Image(const DiDocument * 0x00807d50, EI_Status EIS_Normal) line 49 + 23 bytes
DicomImage::Init() line 207 + 51 bytes
DicomImage::DicomImage(DcmObject * 0x00803310, E_TransferSyntax EXS_LittleEndianImplicit, const unsigned long 0, const unsigned long 0, const unsigned long 0) line 106
DJCodecEncoder::encodeColorImage(int 0, DcmItem * 0x00803310, const DcmRepresentationParameter * 0x0012fd9c, DcmPixelSequence * & 0x00000000, const DJCodecParameter * 0x008039a0, double & 0.00000000000000) line 274 + 54 bytes
DJCodecEncoder::encode(const unsigned short * 0x00880068, const unsigned short * 0x00880068, const DcmRepresentationParameter * 0x0012fd9c, DcmPixelSequence * & 0x00000000, const DcmCodecParameter * 0x008039a0, DcmStack & {...}) line 150 + 37 bytes
DcmCodecList::encode(E_TransferSyntax EXS_LittleEndianExplicit, const unsigned short * 0x00880068, const unsigned long 258000, E_TransferSyntax EXS_JPEGProcess14SV1TransferSyntax, const DcmRepresentationParameter * 0x0012fd9c, DcmPixelSequence * & 0x00000000, DcmStack & {...}) line 408 + 65 bytes
DcmPixelData::encode(const DcmXfer & {...}, const DcmRepresentationParameter * 0x00000000, DcmPixelSequence * 0x00000000, const DcmXfer & {...}, const DcmRepresentationParameter * 0x0012fd9c, DcmStack & {...}) line 412 + 47 bytes
DcmPixelData::chooseRepresentation(E_TransferSyntax EXS_JPEGProcess14SV1TransferSyntax, const DcmRepresentationParameter * 0x0012fd9c, DcmStack & {...}) line 322 + 49 bytes
DcmDataset::chooseRepresentation(E_TransferSyntax EXS_JPEGProcess14SV1TransferSyntax, const DcmRepresentationParameter * 0x0012fd9c) line 490 + 43 bytes