Re: ofxdump/ofxdump.cpp 1.26: Removing sys/stat.h
Ace Jones <[email protected]> Tue, 1 Aug 2006 20:54:01 -0700
| Newsgroups | gmane.comp.finance.libofx.devel |
|---|---|
| Message-ID | <[email protected]> |
It looks like I was mistaken about it crashing. The problem is that it gives this spew: LibOFX INFO: libofx_proc_file(): File format not specified, autodecting... (Above message occured on Line 4294967295, Column 4294967295) LibOFX ERROR: libofx_detect_file_type():Unable to open the input file x (Above message occured on Line 4294967295, Column 4294967295) LibOFX INFO: libofx_proc_file(): Detected file format: UNKNOWN (File format couldn't be sucessfully identified) (Above message occured on Line 4294967295, Column 4294967295) LibOFX ERROR: libofx_proc_file(): Detected file format not yet supported ou couldn't detect file format; aborting. (Above message occured on Line 4294967295, Column 4294967295) By inexperienced users, this has been reported as a problem with file format. As in, "Why isn't this file supported? Why can't my file be detected." This results in extraneous support mails when the program could just clearly tell the user what the problem is with a single error message. </Ace> On Sat, Jul 29, 2006 at 12:23:52PM -0400, Benoit Gregoire wrote: > On Saturday 29 July 2006 01:09, ace jones wrote: > > Benoit, I see you reverted the check for the file existing due to a > > "system dependent header", without replacing it with an alternative. > > > > Is there no way to check for the existence of the file in a "system > > independent" manner? ofxdump crashes otherwise. > > > Normally, checking the value of the pointer after the open() call would be the > way. Here ofxdump gives me a clean "Unable to open the input file" error. > The flow could be improved, but it doesn't crash. Can you trace where it > crashes for you? ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV