Subject RE: [IBO] Re: IBO 5.2.0.7 and strange error on connect to the server
Author IBO Support List
Those having this problem, please make the following changes in your source,
recompile your packages/projects and let me know what the real message
should be that led up to the false reporting of an ErrCode 0 error.


function TIB_Transaction.CheckLostConnection: boolean;
var
ii: integer;
tmpErr: longint;
tmpStatus: status_vector;
begin
Assert( Assigned( IB_Session ));
tmpErr := IB_Session.ErrCode;
tmpStatus := IB_Session.Status;
try
Result := ConnectionLostErrcode( IB_Session.ErrCode );
if Result then
begin
FServerConnectionWasLost := true;
if ConnectionCount = 1 then
Connections[0].SetLostConnection
else
begin
for ii := 0 to ConnectionCount - 1 do
begin
Connections[ii].VerifyConnection;
end;
end;
end;
finally
IB_Session.ErrCode := tmpErr;
IB_Session.Status := tmpStatus;
end;
end;

Thanks,
Jason


-----Original Message-----
From: IBObjects@yahoogroups.com [mailto:IBObjects@yahoogroups.com] On Behalf
Of DanyM
Sent: Sunday, August 25, 2013 6:50 AM
To: IBObjects@yahoogroups.com
Subject: [IBO] Re: IBO 5.2.0.7 and strange error on connect to the server



Ops! Mee too!

Same scenario: A client windows small business server 2008. Affects the
IB_FTS Util and my FTS indexing service on that machine. Tried to fiddle
with the connection parameters to no avail (localhost/127.0.0.1/DNS Name)
alias or path. No go.

The Util is 32-bit and the service is 64-bit. Same diagnose.

I can not restart the server from here, but i'll ask the on-site people to
do it when possible.

Oh, and i too accessed the clients using Terminal Sever.

Regards,

/Dany



--- In IBObjects@yahoogroups.com, Markus Ostenried <macnoz@...> wrote:
>
> Just had the same problem in an Amazon Windows Server 2012 instance.
> Restarting the instance fixed it for now.
>
>
> On Fri, Aug 2, 2013 at 1:10 AM, garethm <gareth@...> wrote:
>
> > **
> >
> >
> > Hi,
> >
> > I have also had sporadic issues with this problem in our internal
testing.
> >
> > Here are our observations:
> > - We are currently using IBO-5.2.0 Build 6.
> > - It can happen when connecting to a Firebird server using TCP and
> > when using Firebird in embedded mode.
> > - Once this happens, the only way to get applications that use
> > IBObjects to connect to databases again appears to be to restart the
computer.
> > Neither restarting the application nor reinstalling the application
> > make any difference.
> > - Once this happens, our applications cannot connect to local or
> > remote databases and both network and embedded Firebird connection
> > attempts throw the same "ISC ERROR CODE: 335544648 unknown ISC error
code 0" exceptions.
> > - FlameRobin running on the computer experiencing the issues can
> > connect to both local and remote databases without issue.
> > - Our application running on other computers can connect to the
> > Firebird server running on an affected machine without issue.
> > - In one case, this happened after the user logged in to their
> > computer via remote desktop, and we aren't sure about the other cases.
> >
> > Any advice on resolving this issue would be appreciated.
> >
> > Regards,
> > Gareth Marshall
> >
> >
> > --- In IBObjects@yahoogroups.com, Marcin Bury <marcin.bury@> wrote:
> > >
> > > Hello
> > >
> > > I have recently upgraded IBO library to 5.2.0.7 (the latest version).
> > > Everything works great except one customer environment. There is
> > > MS Terminal Server where application compiled with latest IBO
> > > returns following exception after connecting to the Firebird
> > > server
> > [2.5.1.26266] :
> > >
> > > ISC ERROR CODE:335544648
> > >
> > > ISC ERROR MESSAGE:
> > > unknown ISC error 0
> > >
> > > I did some searching and found that this error code represents
> > > following
> > > error:
> > >
> > > 335544648 conn_lost Connection lost to pipe server
> > >
> > > I haven't noticed any similar behavior elsewhere.
> > >
> > > Below is attached call stack from EurekaLog.
> > > Maybe someone will be able to suggest something how to find the
> > > cause of the exception...
> > >
> > > Thanks
> > > Marcin
> > >
> > >
> > > |
> > > |----------------------------------------------------------|
> > > |7FFFFFFE|04 |00000000|0090D224|ZT_ML_115.exe|0050D224|IB_Session
> > > |TIB_SessionBase|HandleException |1599[106] |
> > > |00000040|04 |0012EB20|00719A46|ZT_ML_115.exe|00319A46|EInject
> > > | |GetExceptionStackInfoHook |364[9] |
> > > |00000040|03
> > > |0012EB44|004492D8|ZT_ML_115.exe|000492D8|System.SysUtils|Exceptio
> > > |0012EB44|004492D8|n
> > > |RaisingException | |
> > > |00000040|04
> > > |00000040||0012FC9C|00968303|ZT_ML_115.exe|00568303|IB_Components
> > > |TIB_Transaction|API_Start |20100[115] |
> > > |00000040|04
> > > |00000040||0012FD5C|0096651E|ZT_ML_115.exe|0056651E|IB_Components
> > > |TIB_Transaction|SysStart |19021[11] |
> > > |00000040|04
> > > |00000040||0012FD68|0096773E|ZT_ML_115.exe|0056773E|IB_Components
> > > |TIB_Transaction|SetStarted |19652[4] |
> > > |00000040|04 |0012FD78|0092EC39|ZT_ML_115.exe|0052EC39|IB_Schema
> > > | |GetOldParameterOrder |2163[14] |
> > > |00000040|04
> > > |00000040||0012FDFC|00960742|ZT_ML_115.exe|00560742|IB_Components
> > > |TIB_Connection |SysAfterConnect |16677[38] |
> > > |00000040|04
> > > |00000040||0012FE60|009601BA|ZT_ML_115.exe|005601BA|IB_Components
> > > |TIB_Connection |SysLogin |16491[23] |
> > > |00000040|04
> > > |00000040||0012FE78|009600A7|ZT_ML_115.exe|005600A7|IB_Components
> > > |TIB_Connection |SysConnect |16454[14] |
> > > |00000040|04
> > > |00000040||0012FE88|0095CCED|ZT_ML_115.exe|0055CCED|IB_Components
> > > |TIB_Connection |Connect |15426[7] |
> > > |00000040|04 |0012FEA0|00F4102C|ZT_ML_115.exe|00B4102C|DM
> > > |T_DM |Set_DB_Connection |453[8] |
> > > |00000040|04 |0012FEC8|00F3F7A3|ZT_ML_115.exe|00B3F7A3|DM
> > > |T_DM |DataModuleCreate |142[14] |
> > > |00000040|03
> > > |0012FEF4|004E946F|ZT_ML_115.exe|000E946F|System.Classes
> > > |0012FEF4|004E946F||TDataModule
> > > |DoCreate | |
> > > |00000040|03
> > > |0012FF18|004E931C|ZT_ML_115.exe|000E931C|System.Classes
> > > |0012FF18|004E931C||TDataModule
> > > |AfterConstruction | |
> > > |00000040|03
> > > |0012FF40|004E92FA|ZT_ML_115.exe|000E92FA|System.Classes
> > > |0012FF40|004E92FA||TDataModule
> > > |Create | |
> > > |00000040|03 |0012FF74|007095E6|ZT_ML_115.exe|003095E6|Vcl.Forms
> > > |TApplication |CreateForm | |
> > > |00000040|04 |0012FFAC|014C8281|ZT_ML_115.exe|010C8281|ZT_ML
> > > | |Initialization |92[5] |
> > > |00000040|03 |0012FFC4|7C82F23B|kernel32.dll |0002F23B|kernel32
> > > | |(possible ProcessIdToSessionId+521)| |
> > >
> >
> >
> >
>
>
> [Non-text portions of this message have been removed]
>




------------------------------------

___________________________________________________________________________
IB Objects - direct, complete, custom connectivity to Firebird or InterBase
without the need for BDE, ODBC or any other layer.
___________________________________________________________________________
http://www.ibobjects.com - your IBO community resource for Tech Info papers,
keyword-searchable FAQ, community code contributions and more !
Yahoo! Groups Links