[Quickfix-developers] Quickfix csharp odbc log
Brought to you by:
orenmnero
From: Korcan A. <kor...@ho...> - 2010-06-11 13:22:34
|
Hi, I have downloaded quickfix-1.13.3 and try to use odbc setup. My sample code is below: Application application = new Application(); OdbcStoreFactory storeFactory = new OdbcStoreFactory(settings); //ScreenLogFactory logFactory = new ScreenLogFactory(settings); OdbcLogFactory logFactory = new OdbcLogFactory(settings); MessageFactory messageFactory = new DefaultMessageFactory(); initiator = new SocketInitiator(application, storeFactory, settings, logFactory, messageFactory); initiator.start(); SockectInitiator throws an ecxception saying "QuickFix.ConfigError: Configuration failed: [Microsoft][ODBC SQL Server Driver][Shared Memory]SQL Server does not exist or access denied." I digged into c++ code and print the connection string odbcConnection.h : connectionString[DATABASE=quickfix;DRIVER={SQLServer};SERVER=(local);] this is the default one but not the one I have configured in the settings file. I commented odbclog and use secreenlog keeping odbcstore then it worked. I have seen the session logging in db. I tried with the C++ version modifying executor and faced with same behaviour plus this time I saw some exceptions ("Access is denied") in the log when using odbclog. I have pasted output window below. I am using windows, visual studio 2008 .net 3.5 sp1 conf: ... PersistMessages=Y OdbcStoreUser=sa OdbcStoreConnectionString=DSN=FixDataStore #Logging ODBC OdbcLogUser=sa OdbcLogConnectionString=DSN=FixDataStore Regards. output: 'executor_cpp.exe': Loaded 'C:\WINDOWS\system32\ntdll.dll' 'executor_cpp.exe': Loaded 'C:\WINDOWS\system32\kernel32.dll' 'executor_cpp.exe': Loaded 'C:\WINDOWS\system32\sysfer.dll', Binary was not built with debug information. 'executor_cpp.exe': Loaded 'C:\WINDOWS\system32\ws2_32.dll' 'executor_cpp.exe': Loaded 'C:\WINDOWS\system32\advapi32.dll' 'executor_cpp.exe': Loaded 'C:\WINDOWS\system32\rpcrt4.dll' 'executor_cpp.exe': Loaded 'C:\WINDOWS\system32\secur32.dll' 'executor_cpp.exe': Loaded 'C:\WINDOWS\system32\msvcrt.dll' 'executor_cpp.exe': Loaded 'C:\WINDOWS\system32\ws2help.dll' 'executor_cpp.exe': Loaded 'C:\WINDOWS\system32\odbc32.dll' 'executor_cpp.exe': Loaded 'C:\WINDOWS\system32\comctl32.dll' 'executor_cpp.exe': Loaded 'C:\WINDOWS\system32\gdi32.dll' 'executor_cpp.exe': Loaded 'C:\WINDOWS\system32\user32.dll' 'executor_cpp.exe': Loaded 'C:\WINDOWS\system32\comdlg32.dll' 'executor_cpp.exe': Loaded 'C:\WINDOWS\system32\shell32.dll' 'executor_cpp.exe': Loaded 'C:\WINDOWS\system32\shlwapi.dll' 'executor_cpp.exe': Loaded 'C:\WINDOWS\system32\ole32.dll' 'executor_cpp.exe': Loaded 'C:\WINDOWS\system32\oleaut32.dll' 'executor_cpp.exe': Loaded 'C:\WINDOWS\WinSxS\x86_Microsoft.VC90.DebugCRT_1fc8b3b9a1e18e3b_9.0.30729.4148_x-ww_5d84dd2f\msvcp90d.dll', Symbols loaded. 'executor_cpp.exe': Loaded 'C:\WINDOWS\WinSxS\x86_Microsoft.VC90.DebugCRT_1fc8b3b9a1e18e3b_9.0.30729.4148_x-ww_5d84dd2f\msvcr90d.dll', Symbols loaded. 'executor_cpp.exe': Loaded 'C:\WINDOWS\system32\imm32.dll' 'executor_cpp.exe': Loaded 'C:\WINDOWS\WinSxS\x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.2600.5512_x-ww_35d4ce83\comctl32.dll' 'executor_cpp.exe': Loaded 'C:\WINDOWS\system32\odbcint.dll', Binary was not built with debug information. 'executor_cpp.exe': Loaded 'C:\WINDOWS\system32\odbctrac.dll' First-chance exception at 0x7c812afb in executor_cpp.exe: Microsoft C++ exception: FIX::ConfigError at memory location 0x0012f5ec.. First-chance exception at 0x7c812afb in executor_cpp.exe: Microsoft C++ exception: FIX::ConfigError at memory location 0x0012f5ec.. First-chance exception at 0x7c812afb in executor_cpp.exe: Microsoft C++ exception: FIX::ConfigError at memory location 0x0012f5ec.. First-chance exception at 0x7c809f52 in executor_cpp.exe: 0xC0000005: Access violation reading location 0x00000003. 'executor_cpp.exe': Loaded 'C:\WINDOWS\system32\sqlsrv32.dll' 'executor_cpp.exe': Loaded 'C:\WINDOWS\system32\netapi32.dll' 'executor_cpp.exe': Loaded 'C:\WINDOWS\system32\sqlunirl.dll' 'executor_cpp.exe': Loaded 'C:\WINDOWS\system32\winspool.drv' 'executor_cpp.exe': Loaded 'C:\WINDOWS\system32\version.dll' 'executor_cpp.exe': Loaded 'C:\WINDOWS\system32\nddeapi.dll' 'executor_cpp.exe': Loaded 'C:\WINDOWS\system32\sqlsrv32.rll', Binary was not built with debug information. 'executor_cpp.exe': Loaded 'C:\WINDOWS\system32\odbccp32.dll' 'executor_cpp.exe': Loaded 'C:\WINDOWS\system32\dbnetlib.dll' 'executor_cpp.exe': Loaded 'C:\WINDOWS\system32\wsock32.dll' 'executor_cpp.exe': Loaded 'C:\WINDOWS\system32\security.dll' 'executor_cpp.exe': Loaded 'C:\WINDOWS\system32\msapsspc.dll' 'executor_cpp.exe': Loaded 'C:\WINDOWS\system32\msvcrt40.dll' 'executor_cpp.exe': Unloaded 'C:\WINDOWS\system32\msapsspc.dll' 'executor_cpp.exe': Unloaded 'C:\WINDOWS\system32\msvcrt40.dll' 'executor_cpp.exe': Loaded 'C:\WINDOWS\system32\schannel.dll' 'executor_cpp.exe': Loaded 'C:\WINDOWS\system32\crypt32.dll' 'executor_cpp.exe': Loaded 'C:\WINDOWS\system32\msasn1.dll' 'executor_cpp.exe': Loaded 'C:\WINDOWS\system32\userenv.dll' 'executor_cpp.exe': Unloaded 'C:\WINDOWS\system32\schannel.dll' 'executor_cpp.exe': Unloaded 'C:\WINDOWS\system32\userenv.dll' 'executor_cpp.exe': Unloaded 'C:\WINDOWS\system32\crypt32.dll' 'executor_cpp.exe': Unloaded 'C:\WINDOWS\system32\msasn1.dll' 'executor_cpp.exe': Loaded 'C:\WINDOWS\system32\digest.dll' 'executor_cpp.exe': Unloaded 'C:\WINDOWS\system32\digest.dll' 'executor_cpp.exe': Loaded 'C:\WINDOWS\system32\msnsspc.dll' 'executor_cpp.exe': Loaded 'C:\WINDOWS\system32\msvcrt40.dll' 'executor_cpp.exe': Unloaded 'C:\WINDOWS\system32\msnsspc.dll' 'executor_cpp.exe': Unloaded 'C:\WINDOWS\system32\msvcrt40.dll' 'executor_cpp.exe': Loaded 'C:\WINDOWS\system32\msv1_0.dll' 'executor_cpp.exe': Loaded 'C:\WINDOWS\system32\cryptdll.dll' 'executor_cpp.exe': Loaded 'C:\WINDOWS\system32\iphlpapi.dll' 'executor_cpp.exe': Loaded 'C:\WINDOWS\system32\ntdsapi.dll' 'executor_cpp.exe': Loaded 'C:\WINDOWS\system32\dnsapi.dll' 'executor_cpp.exe': Loaded 'C:\WINDOWS\system32\wldap32.dll' 'executor_cpp.exe': Loaded 'C:\WINDOWS\system32\crypt32.dll' 'executor_cpp.exe': Loaded 'C:\WINDOWS\system32\msasn1.dll' 'executor_cpp.exe': Loaded 'C:\WINDOWS\system32\dbnmpntw.dll' 'executor_cpp.exe': Loaded 'C:\WINDOWS\system32\mswsock.dll' 'executor_cpp.exe': Loaded 'C:\WINDOWS\system32\hnetcfg.dll' 'executor_cpp.exe': Loaded 'C:\WINDOWS\system32\wshtcpip.dll' 'executor_cpp.exe': Loaded 'C:\WINDOWS\system32\winrnr.dll' 'executor_cpp.exe': Loaded 'C:\Program Files\Bonjour\mdnsNSP.dll' 'executor_cpp.exe': Loaded 'C:\WINDOWS\system32\rasadhlp.dll' 'executor_cpp.exe': Loaded 'C:\WINDOWS\system32\dbmsrpcn.dll' First-chance exception at 0x7c812afb in executor_cpp.exe: 0x00000005: Access is denied. First-chance exception at 0x7c812afb in executor_cpp.exe: 0x00000005: Access is denied. First-chance exception at 0x7c812afb in executor_cpp.exe: 0x00000005: Access is denied. First-chance exception at 0x7c812afb in executor_cpp.exe: 0x00000005: Access is denied. First-chance exception at 0x7c812afb in executor_cpp.exe: 0x00000005: Access is denied. First-chance exception at 0x7c812afb in executor_cpp.exe: 0x00000005: Access is denied. First-chance exception at 0x7c812afb in executor_cpp.exe: 0x00000005: Access is denied. First-chance exception at 0x7c812afb in executor_cpp.exe: 0x00000005: Access is denied. First-chance exception at 0x7c812afb in executor_cpp.exe: 0x00000005: Access is denied. First-chance exception at 0x7c812afb in executor_cpp.exe: Microsoft C++ exception: FIX::ConfigError at memory location 0x0012f34c.. The thread 'Win32 Thread' (0xf2c) has exited with code 1 (0x1). The program '[6084] executor_cpp.exe: Native' has exited with code 1 (0x1). _________________________________________________________________ Your E-mail and More On-the-Go. Get Windows Live Hotmail Free. https://signup.live.com/signup.aspx?id=60969 |