Re: [Quickfix-users] RES: Trouble compiling, linker errors
Brought to you by:
orenmnero
From: <Gre...@Ca...> - 2006-10-19 21:21:28
|
The project was already doing a catch: catch ( std::exception & e ) but it wasn't catching anything. I've commented most everything out now. I'm left with this: #include "FixApp.h" #include "quickfix\SessionSettings.h" using namespace std; int main() { try { std::string file = "Trade_Entry_Sample.ini"; FIX::SessionSettings settings( file ); return 0; } catch ( ... ) { std::cerr << "There was an error\n"; return 1; } } It still won't catch the error. It looks to be happening in the settings call based on the stack. I've checked the spelling of the ini file and moved a copy into the Debug folder just to be safe. Greg Chabala Oren Miller <or...@qu...> Sent by: qui...@li... 10/19/2006 02:14 PM To Gre...@Ca... cc qui...@li... Subject Re: [Quickfix-users] RES: Trouble compiling, linker errors You should trap the ConfigError and print out the message. QuickFIX is trying to tell you that their is an error with the configuration that prevents it from running. Perhaps a file that can't be open, or a directory that cannot be created. You will need to trap and print out the exception to find the exact reason. --oren On Oct 19, 2006, at 2:06 PM, Gre...@Ca... wrote: Yes, that's correct. I confused myself and picked the non-DLL multithreaded runtime library. Unfortunately, while I can now compile, my code crashes with a memory error: Unhandled exception at 0x7c812a5b in fix-test-connection.exe: Microsoft C++ exception: FIX::ConfigError at memory location 0x0012f610 and it breaks at line 107 in the C:\Program Files\Microsoft Visual Studio 8\VC\crt\src\xutility and trying to continue just leads to stack overflow errors -- This communication may contain privileged and/or confidential information and is intended solely for the addressee. No waiver of confidentiality or privilege is made by mistransmission. If you are not the intended recipient, you are hereby notified that any unauthorized dissemination, distribution, reading, printing, copying and/or use of this communication is strictly prohibited. If you have received this communication in error, please delete this message and immediately notify the sender by return e-mail. Calyon Financial Inc. makes no representation or warranty regarding the correctness of any information contained herein, or the appropriateness of any transaction for any person. Nothing herein shall be construed as a recommendation to buy or sell any financial instrument or security. This communication is for informational purposes only. Unless expressly stated, opinions in this e-mail are those of the individual sender and not of the Calyon Financial Group. For further information about the Calyon Financial Group, please see our website at http://www.calyonfinancial.com |