Delphi Clinic C++Builder Gate Training & Consultancy Delphi Notes Weblog Dr.Bob's Webshop
Bob Swart (aka Drs.Bob) Dr.Bob's Delphi Clinics Dr.Bob's Delphi Courseware Manuals
View Bob Swart's profile on LinkedIn Drs.Bob's Delphi Notes
These are the voyages using Delphi Enterprise (and Architect). Its mission: to explore strange, new worlds. To design and build new applications. To boldly go...

DataSnap iOS Mobile Connectors and case sensitive file names

Author: Bob Swart
Posted: 4/12/2012 5:12:23 PM (GMT+1)

Delphi XE2 Update #4 was released a few weeks ago, and actually introduced a new features: adding Mobile Connectors support for FreePascal for iOS 4.2 and 5.0, although not without a little issue that may confuse some people (and demos)...

DataSnap REST Applications that export mobile connectors, can be used to download an archive with proxy source code and support units. Delphi XE2 Update #4 added this support for FreePascal and iOS 4.2 and 5.0 However, the filenames in the packages are not entirely correct, since two units have a different unitname compared to their filename. Specifically, unit DSRestParameter is found in file DSRESTParameter.pas and unit DSRestTypes is found in file DSRESTTypes.pas. While Windows filenames are not case sensitive, the Mac uses case sensitive filenames. And a unit called "DSRestTypes" is assumed to be in file DSRestTypes.pas and not DSRESTTypes.pas. In order to avoid problems, you need to rename the unit with filename DSRESTParameter.pas to file name DSRestParameter.pas, and the unit with filename DSRESTTypes.pas to DSRestTypes.pas. That will ensure that the compiler will try to locate the correct source files and actually find them.

Tip: if you want to ensure that the correct filenames are always used for new DataSnap REST Server applications as well, you may want to go to the Object Repository location which is C:\Program Files (x86)\Embarcadero\RAD Studio\9.0\ObjRepos and in there find the \en\dsrest\connectors\freepascal_ios50 and \en\dsrest\connectors\freepascal_ios42 subdirectories for the iOS 5.0 and 4.2 proxy files that will be used. Rename the DSRESTParameter.pas and DSRESTTypes.pas files (change REST to Rest in the filename) and all Delphi XE2 DataSnap REST Servers with the Mobile Connectors enabled will use the correct filenames from now on.

These details are included in the second edition of my Delphi XE2 DataSnap Development courseware manual (released earlier this week) and will also be covered in the next edition of my Delphi XE2 iOS Development courseware manual of course.


1 Comment

Indu 12/05/19 05:16:16Well thank you for confirming this, I spent over half the day mesnsig around with triple quotes and strings with no result. I even tried praying and talking to the screen with kind words, this also did not work because the Object does the damage. I eventually caught on but your article was nice to help confirm this. Novell should include this detail in their documentation. Let me know if you have came up with a resolution to being able to use long directory names. I only need to worry about attaching to outgoing mail, im going to look into putting the file into a tempory directory and storing else where with normal VBA save functions, essentially creating 2 instances of the file to get round the issue.e.g. Long file stored, short file stored tempory and attached

New Comment (max. 2048 characters, no HTML):


This webpage © 2005-2014 by Bob Swart (aka Dr.Bob - All Rights Reserved.