Subject Re: [IBO] IBO 5.2.0 Build 8 has been released
Author Carlos H. Cantu
Jason, what about the IB_OnCustomGetDefaultSession ? Afair, this was
created to avoid the need of instantiating everything from the session
component (or its owner) when you just want to use the Default Session.

[]s
Carlos H. Cantu
www.FireBase.com.br - www.firebirdnews.org
www.warmboot.com.br - blog.firebase.com.br

ISL> This is actually intended behavior to warn you about something that should
ISL> not have been allowed previously. Strangely enough you should have ran into
ISL> an access violation but for some reason in some cases it did not, which
ISL> potentially could have corrupted memory causing more difficult issues to
ISL> diagnose.

ISL> The remedy to the code you have shown below can be accomplished in two ways.

ISL> 1) Do not use NULL as the owner when instantiating. Instead, use the
ISL> intended TIB_Session instance as the owner and then it will automatically
ISL> become the session of the components it owns.

ISL> 2) You can explicitly set the IB_Session property to the desired session.

ISL> Please keep in mind the purpose of setting an IB_Session property is so that
ISL> you can have each thread with its own isolated grouping of IBO components.
ISL> When you are coordinating the activities of a thread it should always be
ISL> working inside of its own exclusive IB_Session context.

ISL> Please let me know if you feel I haven't understood something.

ISL> I'll have to look into the OnErrorEx problem more closely. I test building
ISL> IBO on all supported versions of Delphi/C++Builder prior to release. I even
ISL> test running a new simple application on all of them. Which version of
ISL> C++Builder did this happen on?

ISL> Thanks,
ISL> Jason

ISL> -----Original Message-----
ISL> From: IBObjects@yahoogroups.com
ISL> [mailto:IBObjects@yahoogroups.com] On Behalf
ISL> Of Sylwek G
ISL> Sent: Wednesday, August 28, 2013 1:23 AM
ISL> To: IBObjects@yahoogroups.com
ISL> Subject: Re: [IBO] IBO 5.2.0 Build 8 has been released



ISL> Hello,
ISL> I think there is a problem with new release. When I'm trying to run my app I
ISL> get an exception 'Session is undefined'. Below i send you simple code in C++
ISL> to reproduce this problem.

ISL> TIB_Connection *conn = new TIB_Connection(NULL); TIB_Transaction *trans =
ISL> new TIB_Transaction(NULL);

ISL> TIB_Query *query = new TIB_Query(NULL);
ISL> try {
conn->>Connected = false;
conn->>LoginPrompt = false;
conn->>Username = "SYSDBA";
conn->>Password = "masterkey";
conn->>Server = "127.0.0.1/3050";
conn->>Protocol = cpTCP_IP;
conn->>Path = "D:\\MASTER.GDB";
conn->>Connect();

trans->>AutoCommit = false;
trans->>Isolation = tiConcurrency;
trans->>IB_Connection = conn;
if (!trans->>Started)

trans->>StartTransaction();

query->>IB_Connection = conn;
query->>IB_Transaction = trans;
query->>SQL->Text = " select * from rdb$database "; //dziaƂa
query->>Prepare();

query->>Open();
trans->>Rollback();
conn->>Disconnect();

ISL> } __finally {
ISL> delete query;
ISL> delete trans;
ISL> delete conn;
ISL> }

ISL> After installation I also get compilation error with property OnErrorEx in
ISL> module IBODataset.hpp line 1180.
ISL> The same problem was with earlier release, but for now I resolved this by
ISL> commenting this line :)

ISL> [BCC32 Error] IBODataset.hpp(1180): E2370 Simple type name expected
ISL>   Full parser context
ISL>     std_types.cpp(1): #include ustd\uProject\all_headers.h
ISL>     all_headers.h(53): #include ustd\std_defs.h
ISL>     std_defs.h(7): #include D:\Pcbest\Components\Pcb\NewIBOQuery.h
ISL>     NewIBOQuery.h(9): #include
ISL> D:\Pcbest\Components\Ibo5\lib\d2011\Win32\Release\IBODataset.hpp
ISL>     IBODataset.hpp(32): namespace Ibodataset
ISL>     IBODataset.hpp(1142): class TIBOStoredProc


ISL> Environment:
ISL> Windows XP
ISL> C++ Builder XE

ISL> Regards
ISL> Sylwek



ISL> ________________________________
ISL> From: kylixguru <supportlist@...>
ISL> To: IBObjects@yahoogroups.com
ISL> Sent: Wednesday, August 28, 2013 7:34 AM
ISL> Subject: [IBO] IBO 5.2.0 Build 8 has been released
ISL>


ISL>  
ISL> This release contains several bug fixes and some new enhancements.

ISL> NOTE: I reworked the new FilterOptions fopInMemory option added in Build 7.
ISL> If you adopted this in your projects you will need to read the release notes
ISL> for how to adjust things to the way I have improved it.

ISL> For more details about this release please see the release notes:
ISL> http://www.ibobjects.com/ReleaseNotes.rtf

ISL> If you are a registered customer with a current source access subscription
ISL> you can go here to download this new release:
ISL> http://community.ibobjects.com

ISL> I also included a new version of IBO 4.9.14 in Build 60. It pretty much has
ISL> all of the bug fixes and most of the enhancements that went into IBO 5.2.0
ISL> Build 8 included.

ISL> Thanks to everyone who assisted with isolating and reproducing bugs. Please
ISL> remember I have an active bug tracking system here to report your bugs in
ISL> directly:
ISL> http://tracker.ibobjects.com

ISL> Kind regards,
ISL> Jason Wharton
ISL> www.ibobjects.com


ISL>

ISL> [Non-text portions of this message have been removed]



ISL> ------------------------------------

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





ISL> ------------------------------------

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