hi,

i got 2 problems with the eventhandling of the NETProvider.

1) 40% of the time the program does not get past the following lines.

m_fbEventAddress = new FbRemoteEvent( m_fbConnection );
m_fbEventAddress.AddEvents( m_pszEventsAddress );
m_fbEventAddress.RemoteEventCounts += new FbRemoteEventEventHandler( firebirdEvents_address );
m_fbEventAddress.QueueEvents();

the QueueEvents call just does not return.  if on the other hand i set up a breakpoint on
the first line and step through it, then it ALWAYS works.

2) how can i determine, if the event coming in, is not from the current thread ?
if for e.g. i insert a record, then i also get the event but do not really want to do anything
with it, since it was me inserting it.

if ( ( (FirebirdSql.Data.FirebirdClient.FbRemoteEvent)( sender ) ).revent.RemoteId != m_fbEventAddress.revent.remoteId )

would solve the problem, if only i could get to revent.remoteId ;) 
the debugger shows them up nicely, but they are not public.

anyone got an idea ?

environment:
v.2.0 Beta 3, 6 January 2006
WinXP
VS 2005 Express


ciao
   Martin

Reply via email to