C# RFA (Dead Stop)
Hi Community:
Apologies if my question is too vague. I'm new to RFA and TREP.
I've created a simple application in C# to request snapshots (InitialImages) from TREP every few seconds. Nothing too voluminous. The application runs as a Windows Service and has been going well for about a week. Today, it just just stopped. It actually stopped on a function that closes down the RFA session. The code looks very similar to the standard quick start examples provided with RFA:
public void Stop()
{
try
{
ommConsumer.UnregisterClient(loginHandle);
ommConsumer.Destroy();
session.Release();
stgConfigDb.Destroy();
configDb.Release();
rdmFieldDictionary.Destroy();
if ((!Context.Uninitialize()) && (Context.InitializedCount == 0))
logger.Error("RFA Context fails to uninitialize.");
}
catch (System.Exception ex)
{
logger.Error(ex);
throw ex;
}
Nothing too fancy, and I do my best to catch any possible exception raised (which are logged).
My question is could the RFA component generate an exception dialog that would prevent my service from continuing to its next executable statement? I appreciate that Windows Services don't have a desktop, but I did notice during development (within Visual Studio's IDE) an occasional C++ dialog when I stopped the application abruptly. When I say dialog, I'm thinking of something similar the following (note: the error is just a V8 example I used to make it appear in VS):
I've configured my RFA config to log as much as possible (note: the application is using V7 RFA):
\Logger\ComponentLoggers\Connections\messageFile= "RFA7_Connections"
\Logger\ComponentLoggers\RSSL_Adapter\messageFile= "RFA7_RSSL_Adapter"
\Logger\ComponentLoggers\RSSL_Cons_Adapter\messageFile= "RFA7_RSSL_Cons_Adapter"
\Logger\ComponentLoggers\RSSL_Prov_Adapter\messageFile= "RFA7_RSSL_Prov_Adapter"
\Logger\ComponentLoggers\SessionCore\messageFile= "RFA7_SessionLayer"
\Logger\ComponentLoggers\Static\messageFile= "RFA7_MsgFile"
Just wanted to check with the experts to see if I need to disable a setting in the RFA API to avoid a potential dialog popping up (even when running as a service).
Note: Found a log file at the time of the error and attached it below.
Many thanks (as always).
Regards,
Craig.
Best Answer
-
Hi @frenchc
Please refer to the 'Message Box' section of the RFANET_ConfigGuide.pdf
The RFA_MESSAGEBOX_ENABLED is a Boolean config parameter which defaults to True and when set to True, a message box pops up for internal RFA errors.
Regards,
Umer
0
Answers
-
Thank you for your reply, Umer. You are most kind. I'll certainly give the setting a try. I hope I didn't confuse the issue by including the screenshot above as the RFA_Verify dialog was just an example of a dialog taken from a Visual Studio. My error (as shown in the attached log) appears to be different and occurs when the executable is running as a native windows service.
Many thanks (again).
Regards,
Craig.0 -
Thank you, Umer. Your answer worked perfectly.
0
Categories
- All Categories
- 3 Polls
- 6 AHS
- 36 Alpha
- 166 App Studio
- 6 Block Chain
- 4 Bot Platform
- 18 Connected Risk APIs
- 47 Data Fusion
- 34 Data Model Discovery
- 690 Datastream
- 1.5K DSS
- 629 Eikon COM
- 5.2K Eikon Data APIs
- 11 Electronic Trading
- 1 Generic FIX
- 7 Local Bank Node API
- 3 Trading API
- 2.9K Elektron
- 1.4K EMA
- 255 ETA
- 560 WebSocket API
- 39 FX Venues
- 15 FX Market Data
- 1 FX Post Trade
- 1 FX Trading - Matching
- 12 FX Trading – RFQ Maker
- 5 Intelligent Tagging
- 2 Legal One
- 25 Messenger Bot
- 3 Messenger Side by Side
- 9 ONESOURCE
- 7 Indirect Tax
- 60 Open Calais
- 281 Open PermID
- 46 Entity Search
- 2 Org ID
- 1 PAM
- PAM - Logging
- 6 Product Insight
- Project Tracking
- ProView
- ProView Internal
- 23 RDMS
- 2K Refinitiv Data Platform
- 724 Refinitiv Data Platform Libraries
- 4 LSEG Due Diligence
- LSEG Due Diligence Portal API
- 4 Refinitiv Due Dilligence Centre
- Rose's Space
- 1.2K Screening
- 18 Qual-ID API
- 13 Screening Deployed
- 23 Screening Online
- 12 World-Check Customer Risk Screener
- 1K World-Check One
- 46 World-Check One Zero Footprint
- 45 Side by Side Integration API
- 2 Test Space
- 3 Thomson One Smart
- 10 TR Knowledge Graph
- 151 Transactions
- 143 REDI API
- 1.8K TREP APIs
- 4 CAT
- 27 DACS Station
- 121 Open DACS
- 1.1K RFA
- 106 UPA
- 194 TREP Infrastructure
- 229 TRKD
- 918 TRTH
- 5 Velocity Analytics
- 9 Wealth Management Web Services
- 95 Workspace SDK
- 11 Element Framework
- 5 Grid
- 19 World-Check Data File
- 1 Yield Book Analytics
- 48 中文论坛