New topic: 

MY bug or busted 2012?

<http://forums.realsoftware.com/viewtopic.php?t=47793>

         Page 1 of 1
   [ 3 posts ]                 Previous topic | Next topic          Author  
Message        J.Sh3ppard          Post subject: MY bug or busted 2012?Posted: 
Sat May 04, 2013 8:42 pm                         
Joined: Tue Mar 23, 2010 8:44 pm
Posts: 649                Hi guys.

I'm taking a break from php and CSS website development to get back into RS 
coding because I'm developing both a server backend and client apps using RS 
and I'm about to reserve my VPS so I'd like to know what I'm getting into 
concerning RS bugs.

It has been quite a while since I've written a lot in RS and even longer since 
I've been serious into sockets so I'm hoping this is my bug and not another 
socket bug in RS; for some unknown reason socket bugs seem to take forever to 
get fixed if they ever get fixed. 

I have a project which needs to use the server socket, SSLsocket, 
httpsecuresocket/httpsocket and TCP sockets. With the serversocket and 
SSLsocket/TCPsocket I'm making a backend server. 

With the httpssecuresocket/httpsocket and TCP socket I'm making the desktop 
clients. I may also make mobile clients but I'll probably use Corona for this.

While testing the serversocket's ability to handle incoming connections using 
SSLsecuresockets I created a client app which uses a timer to spawn and connect 
httpsecuresockets to a different serversocket app which is using the SSLsockets 
and here is where the problem is. In 2010 and 2011 my client app seems to work 
no problem. But when I run the same app in 2012 (all versions) the client app 
crashes after what seems to be the first successful connect. Sometimes at the 
bottom of the IDE I see a Nil object exception error, other times I just see a 
'-' symbol.


Here's the details about my test client app which uses a timer to spawn and 
connect to the serversocket.

Under the project tab I created a new class named myhttpsecuresocket with a 
super of httpsecuresocket.

In app I created a property connectsocket as  myhttpsecuresocket  with a public 
scope.


On Window1 I have my timer and below is the timer's code :

  app.connectsocket = new myhttpsecuresocket
  app.connectsocket.port = 8080
  app.connectsocket.address="127.0.0.1"
  app.connectsocket.Secure = True
  app.connectsocket.connectionType = sslSocket.SSLv23
  app.connectsocket.connect


I verified port, address and connection type are correct.
It doesn't make a difference if the timer fires every 10 seconds or every 200 
ms. Same results.




When developing this with 2012 I couldn't figure out why it wasn't working. I 
figured I must have forgotten something and I'm doing it wrong. Then it 
occurred to me this might be another RS bug so I'd better try older versions 
and they worked.


Did I forget so much RS I've errored ?

It works in 2010 and 2011 so why not 2012?

Does anyone know of any httpsecuresocket or httpsocket bugs in 2012?

2012 UPDATE :
When the client app is running and there is no listening serversocket to 
connect to, the client app continuously spawns the new sockets without getting 
the Nil object error or any crash. This makes me think something internally is 
going wrong after the 2012 socket connects.

For the actual server backend I plan on using a console application which I 
have not tested yet. Previously there were SSL listening issues that prevented 
it from working and I don't know if they've been fixed yet. In typical fashion 
RS staff ignored my question about it.

So I also need to know if the serversocket with (listening) SSLsockets is 
working correctly in console apps for Linux, Mac and Windows if anyone happens 
to know?


I'm currently testing this on Mac OS X 10.6 but I also need this working for 
Linux (Unbuntu) and Windows.

Thanks.   
                             Top                timhare          Post subject: 
Re: MY bug or busted 2012?Posted: Sun May 05, 2013 12:19 am                     
    
Joined: Fri Jan 06, 2006 3:21 pm
Posts: 12295
Location: Portland, OR  USA                Sounds like a bug, to me.

But you gotta ask yourself one question: do you feel lucky?

No, I mean, you gotta ask yourself one question: do you really want to 
implement the server side in RB?

I do all my server code in php and write the client in RB using 
httpsercuresocket/httpsocket.  Let the web server handle ssl for you.  Plus, 
it's a MUCH smaller footprint on the server.   
                             Top                J.Sh3ppard          Post 
subject: Re: MY bug or busted 2012?Posted: Sun May 05, 2013 9:15 am             
            
Joined: Tue Mar 23, 2010 8:44 pm
Posts: 649                Hi Tim thanks for the reply.

timhare wrote:Sounds like a bug, to me.

Yup, that's what I thought.

Not surprising as soon as I take a break from php and web development and 
return developing in REAL Studio I immediately find another critical bug. 2012 
was supposed to be their best effort in quality and in less than 2 hours I hit 
another critical bug with a major feature.

timhare wrote:But you gotta ask yourself one question : do you feel lucky?


I don't think I should answer that one.

timhare wrote:No, I mean, you gotta ask yourself one question: do you really 
want to implement the server side in RB?


If it works, yes.
I already do use php for the backend on other projects but for this project and 
other projects I want my server backend compiled. This and other projects I may 
sell to the public which is why I need it compiled. I know I don't have to tell 
you php is naked and unprotected and that it's also harder for many people to 
configure (if not already on their VPS/server) than a compiled RS app.

They market and sell REAL Studio as a professional level development tool but 
so often when I try to develop projects that I need to create it has many 
critical bugs and bugs the customer can't fix.

All the while the RB cheerleaders pretend there aren't bad bug problems.


For this project I might still be able to make the backend using 2012 since 
this part seems to be working correctly. However, I have not tested for memory 
leaks which REAL Studio is so found of. I also haven't tested how the socket's 
react after some data exchange takes place.

Thanks for the reply, I appreciate your advice.   
                             Top             Display posts from previous: All 
posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost 
timeSubject AscendingDescending          Page 1 of 1
   [ 3 posts ]      
-- 
Over 1500 classes with 29000 functions in one REALbasic plug-in collection. 
The Monkeybread Software Realbasic Plugin v9.3. 
http://www.monkeybreadsoftware.de/realbasic/plugins.shtml

[email protected]

Reply via email to