It compiles and links. It crashes the first time I try to access a
function from the dll, with no error message.
I have it working partly. I added your wrapper (cTessdll.cpp and
cTessdll.h), and then used your sample code below, from "TessDLL
*Tesseract = new TessDLL();" all the way to the end ("delete
It compiles and links fine.
When I run it, the program crashes at the line:
The "try" doesn't catch it -- it just simply exits with no error
message. If I step through the program up to that point, I can see
that all the variables are initialized. My .bmp image is opened, and
the program comes up with valid VirtualWidth, etc. I even added a
separate "try" for this line only, with no changes.
I notice that this is the first line that actually makes any calls to
tessdll.dll, I think, so I assume it somehow isn't linked in
correctly, though the line "TessHandle = LoadLibrary("tessdll.dll");"
in cTessdll.cpp comes up with a valid TessHandle.
I tried it without adding a Tess library to the project, then also
both the original library, and then a new one by running IMPLIB on
tessdll.dll. It always immediately stopped at that point.
What am I doing wrong?
Thanks, I feel like I am getting very close. If I can get over this
hump I think I'm good to go.