bug-ocrad
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-ocrad] visual studio 2008 and ocrad 0.17 and ocrad 0.18 pre release


From: Muhammad Umar Janjua
Subject: [Bug-ocrad] visual studio 2008 and ocrad 0.17 and ocrad 0.18 pre release
Date: Tue, 4 Mar 2008 07:44:22 +0000 (GMT)

I am compiling ocrad 0.17 and 0.18 pre release with
visual studio 2008 on windows xp.

There following change was needed

1) void internal_error( const char * msg ) throw();//
__attribute__ ((noreturn));


The __attribute__ ((noreturn)) was not recognizable.
So I commented it out.

The compilation was successful with warnings
ucs.cc(253) : warning C4309: 'return' : truncation of
constant value

bitmap.h(48) : warning C4800: 'const char' : forcing
value to bool 'true' or 'false' (performance warning)

page_image.h(35) : warning C4290: C++ exception
specification ignored except to indicate a function is
not __declspec(nothrow)

main.cc(348) : warning C4996: 'fopen': This function
or variable may be unsafe. Consider using fopen_s
instead.

and others ....



However, when I ran the generated program with
test.pbm, the program gave a runtime debug assertion
violation. The call stack is


        msvcr90.dll!_invalid_parameter_noinfo()  Line 125 +
0xc bytes       C++
        OCRv18.exe!Bitmap::left(const int l=42)  Line 66 +
0x78 bytes      C++
        OCRv18.exe!`anonymous
namespace'::remove_left_right_noise(std::vector<Blob
*,std::allocator<Blob *> > &
blobp_vector=[546](0x0047cfd0 {bpv=[0]() },0x0047d078
{bpv=[0]() },0x0047d278 {bpv=[0]() },0x0047d320
{bpv=[0]() },0x0047daa8 {bpv=[0]() },0x0047db20
{bpv=[0]() },0x0047dcc0 {bpv=[0]() },0x004809e0
{bpv=[0]() },0x00480ae0 {bpv=[0]() },0x00480bc8
{bpv=[0]() },0x00480c20 {bpv=[0]() },0x00480e28
{bpv=[0]() },0x00480f58 {bpv=[0]() },0x00480fd0
{bpv=[0]() },0x00481078 {bpv=[0]() },0x004811c8
{bpv=[0]() },0x00481270,...))  Line 180 + 0x18 bytes
C++
        OCRv18.exe!`anonymous namespace'::scan_page(const
Page_image & page_image={...}, std::vector<`anonymous
namespace'::Zone,std::allocator<`anonymous
namespace'::Zone> > & zone_vector=[0](), const int
debug_level=0, const bool layout=false)  Line 416 +
0xb bytes       C++
>       OCRv18.exe!Textpage::Textpage(const Page_image &
page_image={...}, const char * filename=0x00000000,
const Control & control={...}, const bool
layout=false)  Line 445 + 0x11 bytes    C++
        OCRv18.exe!`anonymous
namespace'::process_file(_iobuf * infile=0x00000000,
const char * infile_name=0x00000000, const
`anonymous-namespace'::Input_control &
input_control={...}, const Control & control={...}) 
Line 195        C++
        OCRv18.exe!main(const int argc=2, const char * *
argv=0x00334a00)  Line 355 + 0x15 bytes C++
        OCRv18.exe!__tmainCRTStartup()  Line 582 + 0x17
bytes   C





Let me know if there are any suggestions to help this out


      ___________________________________________________________ 
Rise to the challenge for Sport Relief with Yahoo! For Good  

http://uk.promotions.yahoo.com/forgood/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]