Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Demos Not Running Correctly #33

Open
GoogleCodeExporter opened this issue May 28, 2015 · 3 comments
Open

Demos Not Running Correctly #33

GoogleCodeExporter opened this issue May 28, 2015 · 3 comments

Comments

@GoogleCodeExporter
Copy link

Any chance you have had a chance to look at the demos? They compile but none of 
them run "out of the box". They all have some problem that prevents them from 
running correctly. 

Also is it not possible to have a really basic demo? Just inserts, deletes and 
selects?

Thanks

Original issue reported on code.google.com by donovanb...@gmail.com on 24 Sep 2012 at 4:52

@GoogleCodeExporter
Copy link
Author

Hi,
same remark
-> I have made the required modifications on my own SVN working copy of:
1. ...\trunk\samples\DelphiXE3\TdormSession_Sample01\dormSample1.dproj
2. ...\trunk\samples\DelphiXE3\ObjectsLists\ObjectsLists.dproj
3. .. the remaining is coming soon :)

Where to commit a SVN 'tag' repository ?
NB: I use XE3

Original comment by didier.c...@gmail.com on 2 Feb 2013 at 8:13

@GoogleCodeExporter
Copy link
Author

Hi didier.cabale,
You're not a contributor now, so the best way could be the following:
- Send me the patches
- I'll do a diff & commit (and check also with XE2)

You can attach the patches here

Thank you

Original comment by daniele....@gmail.com on 3 Feb 2013 at 12:23

@GoogleCodeExporter
Copy link
Author

Hi Daniele,

1. I set SQLite3 as default database for all demos, because no need extra 
tweaks with SQLite3
2. missing dorm.ObjectStatus, dorm.adapters in some 'uses' clauses -> updated
3. a link to your local .vrc removed
4. I added readme.txt file in dormSample1, first-time demo
5. comment in TodoManager.MainForm
6. in .conf files, I set relative paths to SQLite3 database
7. I added missing LINK_xxx_ADAPTER compiler defines in relevant compiler's 
options
8. dsserver demo: compiler defines in MainServerForm.pas: I set condition 
LINK_xxx_ADAPTER to xxx_STRATEGY compiler defines

9. dsclient demo:
seems that XE3 cannot UnMarshal 
'System.Generics.Collections.TMoveArrayManager<T>' -> dsclient fails to run
Why ? please follow these steps:
1. open dsclient
2. put a breakpoint in Data.DBXJSONReflect.pas, line#2791, ie "Result := 
Ctx.FindType(TypeName);" (of class function TJSONUnMarshal.ObjectType(Ctx: 
TRttiContext; TypeName: string) : TRttiType;)
3. run dsclient
4. on break, observe Result. You'll see that class 
'System.Generics.Collections.TMoveArrayManager<BusinessObjects.TLaptop>' is not 
registered by Ctx context.
I still wonder why TMoveArrayManager<aType> is not recognized whereas 
TObjectList<aType> is recognized in DORM .. Maybe your StackOverflow input here 
-> http://stackoverflow.com/a/3462457 ?

Anyway take of course what you want from my review, but be aware that my 
intention is to help making things easier for new comers, and that I'm one of 
these.

Congratulations for your job !
Kind regards .. and bravo alla squadra XV
Didier Cabalé
http://didier.cabale.free.fr/delphi.htm

Original comment by didier.c...@gmail.com on 4 Feb 2013 at 8:02

Attachments:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant