tesseract program shut down on running

33 views
Skip to first unread message

YongWoo

unread,
Jan 16, 2008, 12:42:15 AM1/16/08
to tesseract-ocr
I make a program include tesseract source in MFC.
and compile with MFC and tesseract so modified the tesseractmain.cpp
whith changed some part.

At first run, output is OK, but at next run, I got a message below

Error Message in Tesseract.log

Tesseract Open Source OCR Engine
Tesseract Open Source OCR Engine
-1912 MEM_ALLOC's used

Error: Memfree of NULL pointer!

Fatal error: No error trap defined!
Signal_termination_handler called with signal 0
Signal_exit 30 SIGNAL ABORT. LocCode: 3 SignalCode: 3

Vincent

unread,
Jan 16, 2008, 9:35:23 AM1/16/08
to tesseract-ocr

Wenjing Jia

unread,
Jan 17, 2008, 1:40:58 AM1/17/08
to tesseract-ocr
I had the similar problem, though my error message was different from
YongWoo's. After reading Luca et al.'s messages in below link (Thank
you, Vincent), I tried Luca's solution, and it worked just alright!

As Luca said:

"The problem is caused by the following code in wordrec/msmenus.cpp:
void init_ms_debug() {
static int first_time = 1;

if (first_time) {
first_time = 0;

This causes that init_permute() , that allocs EDGE_ARRAY dawg doesn't
get called the second time calling the av. As I remark //first_time =
0; everything works great."

Thank you Luca for posting this!

Cheers,
Wenjing

On Jan 17, 1:35 am, Vincent <vincent...@gmail.com> wrote:
> Look at the link, it may help you.
>
> http://groups.google.com/group/tesseract-ocr/browse_thread/thread/342...
Reply all
Reply to author
Forward
0 new messages