Watch, Follow, &
Connect with Us
Public Report
Report From: Delphi-BCB/Database/DataSnap/Client    [ Add a report in this area ]  
Report #:  104368   Status: Open
In DBXConnection.pas for Free Pascal iOS mobile conenctors, calling 'dbxconn.start;' is not needed. We must not call start.
Project:  Delphi Build #:  16.0.4429.46931
Version:    16.4 Submitted By:   Tomohiro Takahashi
Report Type:  Crash / Data loss / Total failure Date Reported:  3/22/2012 10:15:24 PM
Severity:    Critical / Show Stopper Last Updated: 4/9/2012 12:48:02 AM
Platform:    Apple mobile OS Internal Tracking #:   27131
Resolution: None (Resolution Comments) Resolved in Build: : None
Duplicate of:  None
Voting and Rating
Overall Rating: (1 Total Rating)
5.00 out of 5
Total Votes: None
Description
In DBXConnection.pas for Free Pascal iOS mobile conenctors, calling 'dbxconn.start;' is not needed. We must not call start. It is a bug.

Please see
...\freepascal_ios42\Proxy\DBXConnection.pas
and
...\freepascal_ios50\Proxy\DBXConnection.pas

Note:
NSURLConnection Class Reference
  Loading Data Asynchronously
    + connectionWithRequest:delegate:
http://developer.apple.com/library/ios/#documentation/cocoa/Reference/Foundation/Classes/NSURLConnection_Class/Reference/Reference.html
------
Creates and returns an initialized URL connection and begins to load the data for the URL request.
------
Steps to Reproduce:
[DBXConnection.pas]
---------------
...
procedure TDBXConnection.start;
begin
{$IFDEF FPC}
  //dbxconn.start;  // no need to call start, because NSURLConnection has already started network access.

  while (not complete and not cancelled) do
  begin
    NSRunLoop.currentRunLoop.runMode_beforeDate(NSDefaultRunLoopMode,
      NSDate.distantFuture);
  end;
{$ENDIF}
end;

function TDBXConnection.InitWithRequest_returningResponse_error_usingDelegate
...
begin
...
...
    dbxconn := NSURLConnection.connectionWithRequest_delegate(request, self);
...
...
end;
...
---------------
Workarounds
None
Attachment
None
Comments

Tomohiro Takahashi at 4/9/2012 6:24:35 AM -
This report was opened with valid Internal Tracking Number.
Thanks.

Server Response from: ETNACODE01