#1 Re: mORMot 1 » General application design » 2019-12-22 14:34:15

thanks a lot igors233 for your reply,
so if i understand you well, i must do my business model (for that i can use the project 12- syndb explorer in the sample's dirctary)
and put it in unit that will be shared by the server side and client side, put all the CRUD operations in the client side.
my problem is how i instance the dataset? i mean that my project use DB components (FIBPlus)
all over the units of the project, so should i instance all the datasets or a simple unite where i instance the database
and the connection to it, and i leave all the rest without changement?
unfortunlly there is no example in all the documentation of morMot. in the documentation,
there is a simply note about the possibility to use TSQLRestServerFullMemory and the mentioned sample (14- interface based services)
is as his name indicate a simple service where no use of data base.

#2 Re: mORMot 1 » General application design » 2019-12-19 15:34:34

This is my first post here and I'm sorry, I don't know where to post it, so i put it here as reply because i think that is the same subject.

I developed a small ERP for an industrial company a long time ago, everything was at the top until the arrival of win64 (windows 7 and 10 64bit), the computer park of the company is diversified, from win xp 32 to win10 64bit of course ... then it starts the bugs, my little software starts to crash especially in PCs equipped with win7 64bit and win10 and the message is the same each time "no connection with the database ... ", my little software was developed on Delphi2009 with the FIBPlus components for transactions with the database (FireBird V2.5). Of course I check the local network at each software crash with ping (cmd of windows ...) ... everything seems normal.
looking on the internet, I found that I have to put the DLL fbclient version 64bit in 64bit machines and 32 in 32 machines .... despite the crash persist .... a friend advised me to put the DLL fbClient 32bit in the directory (Windows \ syswow64 \) and the version 64 of the DLL in system32 directory , I know it doesn't make sense but since I'm looking for a solution I tried it and always the same crash ....
internet another time and here I find morMot and the whole concept of HTTP and REST servers and DATAsnap ... I got lost, me who used  DataSet abd DataSource, I find it difficult to understand all this circus, especially that 'there is no a single tutorial, for morMot + firebird... also in the example that come with morMot I still see the DLL file fbClient nicknamed fbEmbed, then I suppose that the same games of 64 and 32 will be repeated.
I write for the first time here, I want to find advice for two things ...
- What type of server should I develop and with what tool (framework)? (I have to keep Delphi2009 and my FireBird 2.5 database).
- Will the problem of 32bit and 64bit persist when switching to this new architecture and new server?
Thanks

Board footer

Powered by FluxBB