Have you tried adding a try { .... } catch (..) { } block around the call that
crashes ?
--- On Sun, 19/10/08, Mikael Larsson <[EMAIL PROTECTED]> wrote:
From: Mikael Larsson <[EMAIL PROTECTED]>
Subject: [mitab] catching exceptions from the mitab library.
To: [email protected]
Received: Sunday, 19 October, 2008, 9:52 PM
Hello!
I'm writing a software to convert a file from one coordinate system to another.
I do this by reading the different objects from the file with the available
functions, transform the coordinates and write back the object to a new output
file.
For one input file I get an exception when calling the mitab_c_write_ feature
function. The exception originates in the function PickSeedsForSplit found in
the file mitab_mapindexblock .cpp. The problem seems to be that nSrcHeight or
nSrcWidth can be equal to zero. Then the division on line 1065 will not work
and an exception is thrown.
Is there any way to catch this exception in my MFC application? I would very
much like to avoid a software crash because of this.
I'm using the latest version (1.7.0).
Can anyone please advise?
Best Regards
Mikael Larsson
Connect to the next generation of MSN Messenger Get it now!
Send instant messages to your online friends http://au.messenger.yahoo.com