Discover Refinitiv
MyRefinitiv Refinitiv Perspectives Careers
Created with Sketch.
All APIs Questions & Answers  Register |  Login
Ask a question
  • Questions
  • Tags
  • Badges
  • Unanswered
Search:
  • Home /
  • TREP APIs /
  • RFA /
avatar image
Question by frenchc · Jul 15, 2018 at 11:50 PM · rfa.nettrep rfarfa c#

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.

rfa-dialog.png (23.4 KiB)
fmdatacaptureservice-00002900-0000233c-20180716-01.txt (741 B)

People who like this

0 Show 0
Comment
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

2 Replies

  • Sort: 
avatar image
REFINITIV
Best Answer
Answer by umer.nalla · Jul 16, 2018 at 06:30 AM

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

Comment

People who like this

0 Show 1 · Share
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

avatar image
frenchc · Jul 22, 2018 at 02:27 AM 0
Share

Thank you, Umer. Your answer worked perfectly.

avatar image
Answer by frenchc · Jul 16, 2018 at 08:17 AM

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.

Comment

People who like this

0 Show 0 · Share
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Watch this question

Add to watch list
Add to your watch list to receive emailed updates for this question. Too many emails? Change your settings >
7 People are following this question.

Related Questions

PauseAll and ResumeAll has no effect

How can I use RFA to get Bond Info

Refinitiv Robust Foundation API(RFA .NET 8.2) Questions ?

Errror RFA 0000009b SystemErr R ILLEGAL PACKAGE NAME FOUND: com.reuters.rfa.privatestream

traceMsgFileMaxFileSize

  • Feedback
  • Copyright
  • Cookie Policy
  • Privacy Statement
  • Terms of Use
  • Careers
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Alpha
  • App Studio
  • Block Chain
  • Bot Platform
  • Calais
  • Connected Risk APIs
  • DSS
  • Data Fusion
  • Data Model Discovery
  • Datastream
  • Eikon COM
  • Eikon Data APIs
  • Electronic Trading
    • Generic FIX
    • Local Bank Node API
    • Trading API
  • Elektron
    • EMA
    • ETA
    • WebSocket API
  • Legal One
  • Messenger Bot
  • Messenger Side by Side
  • ONESOURCE
    • Indirect Tax
  • Open PermID
    • Entity Search
  • Org ID
  • PAM
    • PAM - Logging
  • ProView
  • ProView Internal
  • Product Insight
  • Project Tracking
  • Refinitiv Data Platform
    • Refinitiv Data Platform Libraries
  • Rose's Space
  • Screening
    • Qual-ID API
    • Screening Deployed
    • Screening Online
    • World-Check One
    • World-Check One Zero Footprint
  • Side by Side Integration API
  • TR Knowledge Graph
  • TREP APIs
    • CAT
    • DACS Station
    • Open DACS
    • RFA
    • UPA
  • TREP Infrastructure
  • TRIT
  • TRKD
  • TRTH
  • Thomson One Smart
  • Transactions
    • REDI API
  • Velocity Analytics
  • Wealth Management Web Services
  • World-Check Data File
  • Explore
  • Tags
  • Questions
  • Badges