Subject | RE: [IBO] IBO 5.2.0 Build 8 has been released |
---|---|
Author | IBO Support List |
Post date | 2013-08-30T05:47:26Z |
-----Original Message-----
From: IBObjects@yahoogroups.com [mailto:IBObjects@yahoogroups.com] On Behalf
Of Carlos H. Cantu
Sent: Wednesday, August 28, 2013 7:08 AM
To: IBO Support List
Subject: Re: [IBO] IBO 5.2.0 Build 8 has been released
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
ISL> should not have been allowed previously. Strangely enough you
ISL> should have ran into an access violation but for some reason in
ISL> some cases it did not, which potentially could have corrupted
ISL> memory causing more difficult issues to 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
ISL> the intended TIB_Session instance as the owner and then it will
ISL> automatically 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
ISL> is so that 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
ISL> always be 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
ISL> building IBO on all supported versions of Delphi/C++Builder prior
ISL> to release. I even test running a new simple application on all of
ISL> 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 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
ISL> my app I get an exception 'Session is undefined'. Below i send you
ISL> simple code in C++ to reproduce this problem.
ISL> TIB_Connection *conn = new TIB_Connection(NULL); TIB_Transaction
ISL> *trans = new TIB_Transaction(NULL);
ISL> TIB_Query *query = new TIB_Query(NULL); 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
ISL> OnErrorEx in module IBODataset.hpp line 1180.
ISL> The same problem was with earlier release, but for now I resolved
ISL> this by 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
ISL> release notes 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
ISL> subscription 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
ISL> much has all of the bug fixes and most of the enhancements that
ISL> went into IBO 5.2.0 Build 8 included.
ISL> Thanks to everyone who assisted with isolating and reproducing
ISL> bugs. Please remember I have an active bug tracking system here to
ISL> 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
ISL> 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
ISL> Tech Info papers, keyword-searchable FAQ, community code
ISL> contributions and more !
ISL> Yahoo! Groups Links
ISL> ------------------------------------
ISL> ___________________________________________________________________
ISL> ________ IB Objects - direct, complete, custom connectivity to
ISL> 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
ISL> Tech Info papers, keyword-searchable FAQ, community code
ISL> contributions and more ! Yahoo! Groups Links
------------------------------------
___________________________________________________________________________
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
From: IBObjects@yahoogroups.com [mailto:IBObjects@yahoogroups.com] On Behalf
Of Carlos H. Cantu
Sent: Wednesday, August 28, 2013 7:08 AM
To: IBO Support List
Subject: Re: [IBO] IBO 5.2.0 Build 8 has been released
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
ISL> should not have been allowed previously. Strangely enough you
ISL> should have ran into an access violation but for some reason in
ISL> some cases it did not, which potentially could have corrupted
ISL> memory causing more difficult issues to 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
ISL> the intended TIB_Session instance as the owner and then it will
ISL> automatically 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
ISL> is so that 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
ISL> always be 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
ISL> building IBO on all supported versions of Delphi/C++Builder prior
ISL> to release. I even test running a new simple application on all of
ISL> 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 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
ISL> my app I get an exception 'Session is undefined'. Below i send you
ISL> simple code in C++ to reproduce this problem.
ISL> TIB_Connection *conn = new TIB_Connection(NULL); TIB_Transaction
ISL> *trans = new TIB_Transaction(NULL);
ISL> TIB_Query *query = new TIB_Query(NULL); 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
ISL> OnErrorEx in module IBODataset.hpp line 1180.
ISL> The same problem was with earlier release, but for now I resolved
ISL> this by 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
ISL> release notes 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
ISL> subscription 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
ISL> much has all of the bug fixes and most of the enhancements that
ISL> went into IBO 5.2.0 Build 8 included.
ISL> Thanks to everyone who assisted with isolating and reproducing
ISL> bugs. Please remember I have an active bug tracking system here to
ISL> 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
ISL> 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
ISL> Tech Info papers, keyword-searchable FAQ, community code
ISL> contributions and more !
ISL> Yahoo! Groups Links
ISL> ------------------------------------
ISL> ___________________________________________________________________
ISL> ________ IB Objects - direct, complete, custom connectivity to
ISL> 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
ISL> Tech Info papers, keyword-searchable FAQ, community code
ISL> contributions and more ! Yahoo! Groups Links
------------------------------------
___________________________________________________________________________
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