#1  
Old 24th July 2018, 10:59 AM
karl karl is offline
Junior Member
 
Join Date: Jul 2018
Posts: 6
Default NexusDB for C++ Builder Tokyo 10.2

Does NexusDB work with C++ Builder Tokyo 10.2? After installing the trial version, I did not found any .lib files which are required for earlier C++ versions.
  #2  
Old 24th July 2018, 11:03 PM
Eivind Eivind is offline
Administrator
 
Join Date: Mar 2008
Posts: 184
Default

Quote:
Originally Posted by karl View Post
Does NexusDB work with C++ Builder Tokyo 10.2? After installing the trial version, I did not found any .lib files which are required for earlier C++ versions.
I believe we have some customers using Tokyo (please speak up . Note that successful use of C++Builder with NexusDB requires that your projects are built with runtime packages.
  #3  
Old 25th July 2018, 02:48 AM
Rodrigo G?mez
 
Posts: n/a
Default Re: NexusDB for C++ Builder Tokyo 10.2

Eivind wrote:
> karl;111136 Wrote:
>> Does NexusDB work with C++ Builder Tokyo 10.2? After installing the
>> trial version, I did not found any .lib files which are required for
>> earlier C++ versions.

>
> I believe we have some customers using Tokyo (please speak up . Note
> that successful use of C++Builder with NexusDB requires that your
> projects are built with runtime packages.
>
>


I haven't updated to it my projects, although I have it installed. Not
sure if I have installed Nexus there yet. I'm still on Berlin. I think
Shane is working with Tokyo.

Although if the problem are the missing lib files it might be an
oversight of the trial installation?

--
Rodrigo G?mez [NDX]
M?xico, GMT-6
  #4  
Old 25th July 2018, 05:01 AM
Shane Stump
 
Posts: n/a
Default Re: NexusDB for C++ Builder Tokyo 10.2

Howdy Karl!

Here are my BEST practices for getting C Builder to work with NexusDB
4.x (I am using 4.5003 with Rad Studio Tokyo 10.2.3):

1) Just have NexusDB install the software withOUT actually installing it
in your IDE.

2) Open the project group for C Builder Tokyo and make sure the C
Builder options are to set build the libraries, etc.

As far as using NexusDB in a program, this gets tricky. My largest
program has to be statically linked (I tried distributing BPLs and it
caused the headaches with my customers I was afraid of).

The cause of the headaches with statically linking NexusDB seem to come
from the use of nxMemoryManager. Here are a few suggestions:

1) If you don't need NexusDB in your application, remove any references
in the project so that they don't get linked in.

2) If you do need NexusDB in an application, test for compatibility
issues with other 3rd party database components (in my case, I found I
couldn't use UniDac SQLLITE components if the NexusDB memory manager was
linked into a static program).

3) If your application seems to work with NexusDB when you statically
link, you are almost guaranteed to get an EAccessError when your
application is closing (gave up trying to figure out why and using BPLS
isn't a solution). My solution since I know when my program is closing
that all resources have been saved/closed/etc is to use the WIN32/64 API
function ExitProcess().

Please read the caveats with using ExitProcess(). It has worked for me
over the last several years and so I am happy with it.

Hope this helps,

Shane
  #5  
Old 27th March 2019, 05:12 AM
a.osswald a.osswald is offline
Junior Member
 
Join Date: Feb 2015
Posts: 12
Default acess violation runtime libaries

Thank you Shane, for the hint with the workaround concerning the access violation during terminate program!!
Linking without runtime libaries is with Cbuilder not possible you have to support all libaries which is not possible in practice.
ExitProcess at the end of the main fuc seems to work for us.
Thank you again!

Regards Andreas
  #6  
Old 27th March 2019, 07:17 AM
Shane Stump
 
Posts: n/a
Default Re: NexusDB for C++ Builder Tokyo 10.2

On 3/26/2019 12:12 PM, a.osswald wrote:
> Thank you Shane, for the hint with the workaround concerning the access
> violation during terminate program!!
> Linking without runtime libaries is with Cbuilder not possible you have
> to support all libaries which is not possible in practice.
> ExitProcess at the end of the main fuc seems to work for us.
> Thank you again!
>
> Regards Andreas
>
>

Howdy Andreas!

No problem! I will NEVER (repeat) NEVER again ever try to distribute
another application that I have to have external BPLS / DLLS.

All the best,

Shane


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Embarcadero RAD Studio 10.2 Tokyo ? Release 3 nyavorsky nexusdb.public.support 2 16th March 2018 10:02 AM
Recompiling NX Server with Delphi 10 Tokyo 10.2.2 Tony Grant nexusdb.public.support 3 25th February 2018 01:19 PM
NexusDB and Delphi 10.2.2 Tokyo Alessandro Romano nexusdb.public.discussions 3 6th January 2018 08:11 PM
Berlin, Tokyo or where David Guest nexusdb.public.discussions 8 8th May 2017 05:58 AM
Tokyo Ad Franse [NDX] nexusdb.public.support 8 23rd April 2017 02:53 AM


All times are GMT +11. The time now is 04:23 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.