c++ - CImg: stack overflow when loading .cimg file -
i'm stumped on crash here. have in past been able load .cimg files fine. these files saved cimg.save() function. paths like:
"c:\\nionprojects\\testenvironment\\data\\nionccd\\nionccd1010plugin\\dark_exptimeus=121536_bin=1_dualreadout=1.cimg"
(no spaces)
i'm getting stack overflow here:
nionccd1010_x64.dll!cimg_library::cimglist<float>::_load_cimg(_iobuf * const file, const char * const filename) line 45175 c++
loading image simple standalone dll works fine - image data seems ok.
cimg.h included in multiple dll's in system. possible source of confusion? call stack looks ok me:
nionccd1010_x64.dll!__chkstk() unknown nionccd1010_x64.dll!cimg_library::cimglist<float>::_load_cimg(_iobuf * const file, const char * const filename) line 45175 c++ nionccd1010_x64.dll!cimg_library::cimg<float>::load_cimg(const char * const filename, const char axis, const float align) line 38130 c++ nionccd1010_x64.dll!cimg_library::cimg<float>::load(const char * const filename) line 36485 c++
are there other considerations i'm missing?
this red herring, due managed code. not being careful enough, , confusion going on between things compiled native, , others managed. when removed attempts force things native (#pragma managed(push,off)), crash when away.
Comments
Post a Comment