Closed GoogleCodeExporter closed 9 years ago
Sorry my english
Original comment by andresl...@gmail.com
on 8 Jul 2009 at 12:28
If you reverse the condition as you suggest, then it segfaults if code == NULL.
I
don't see what your problem is.
Original comment by theraysm...@gmail.com
on 19 May 2010 at 10:56
I will try to explain as better as i can:
I instance in my windows program the next line (like in the example):
TessDllAPI Ocr_api(MyLanguage); // MyLanguage="spa"
This line goes to tessdll.cpp line 79:
init_tesseract ("TESSEDIT", "tessapi", lang, 0L, 1, fake_argv);
that goes to tessedit.cpp line 168:
init_tesseract_lang_data (arg0, textbase, language, configfile, configc, onfigv);
that goes to tessedit.cpp line 124:
main_setup(arg0, textbase, configc, configv);
that goes to mainblk.cpp line 81:
if (argv0 != NULL) {
if (getpath(argv0, datadir) < 0)
that goes to the function getpath because argv0 is NOT NULL
because is not NULL and the "directory" variable have garbage because is not
init.
Then garbage + "TESSEDIT" crash the program
If i chage the condition all works fine.
Now in detail i see that probably mi solution does not work if the first
parameter is
NULL
Sorry my very bad english I hope you anderstand my exposition.
Original comment by andresl...@gmail.com
on 20 May 2010 at 8:49
Original issue reported on code.google.com by
andresl...@gmail.com
on 8 Jul 2009 at 12:27