Forum Replies Created
Thanks for the reply, and sorry for the late reaction. Maybe I should give the jSuneido client option a try. Although I always try to stay away from Java. Not a fan… Is there any difference in the cSuneido and jSuneido performance? I remember that the jSuneido version can run with multple processors, and has better memory handling. Does it also have a larger database limit?
To all people on the Suneido forum: BEST WISHES FOR 2014 !!! 😀
Sorry for my very late reply, and thanks for the advice. There was very little logging I could use, but I found out that the HTTP server was crashing because of some characters in a URL request. These characters were not properly escaped. When the HTTP server exits, Suneido also exits. Proper escaping of characters in the URL request solved the problem. Probably I should find out how to make HTTPServer prevent from crashing, but I guess the HTTPServer in Suneido was never meant to be used as a production machine anyway.
Sorry for the bit late reaction. I have checked out RAP in the meantime, but I think it is too heavy. I worked with wxPython before, that seemed ok to me. So for a platform independent client solution, wxWidget bindings are still a good option. You can send me the information if you want. Or do you have any other suggestions for a client?
Next thing to explore? I think I will give wxWidgets a shot. I used it with Python before (wxPython), and it seems a good platform independent GUI environment.
I checked HttpMap and noticed the GetCodeRes function. It searches the RES for files. I used that one, and it works nicely. Now I can fetch the HTML, CSS and JS files without having to use local copies of the files. I tested it using FireFox and it works fine. IE is easy, getting it to work under FireFox is something else 😀
I have one more question about using a browser for an application: actually I was using the BrowserControl, because I wanted to use some functions from within Suneido. But it seems to me that the browser uses IE6 (as ActiveX component), and I had some difficult times with CSS and IE6. So I tried FireFox and that works fine. The question now is: can I also use FireFox from within BrowserControl? I understand it should be possible to use ATLAX with other ActiveX components, but I’m not sure this works well for FireFox.
I am using the suneido://eval? protocol, but I can’t get it to assign the result to a variable. The only reference in the documentation I see is an example which shows:
This works for calling functions that do not return any result. But when it returns a result, I can’t assign it to a variable. I tried:
but it fails, and when I use:
I read somewhere that it is approx. 2-3 times faster. Of course for small files it is not an issue, in most cases you would not notice the difference. I just wondered if it would take the load of the application. I noticed for larger files that Suneido says “not responding”, until the sending has finished. Maybe if I could do it in a seperate thread, that it would solve the issue of Suneido not responding.
I have changed my file transfer in my application, from using my own implementation to using the FtpClient. It works fine, much easier to use. Bu I have a question about that: when I was searching on the internet about FTP and related issues, I noticed a concept called Zero Copy, where static content is directly moved from for example file handle to socket, and is not routed via the application. Is this also possibel in Suneido?
Ok, that is clear. Besides RDP, is VPN an option?
Thanks for your information. It makes a lot of things clear. One final thing (I think I can understand it now): if the code is running on the Client and I make a socket connection to a second Suneido Server running elsewhere, the socket connects directly between the Client and that second Server? I suppose it does. The second Suneido server is used to store data, files, etc.
The part about using it over the Internet is interesting, because I was wondering how it would perform. What is the best set-up for use over the Internet?
I’m sorry, I made a mistake. I was working client-server, and when changing code, sometimes the server needs to be restarted to make the changes active (I assume that the code was server sided). After restarting it worked fine. The situation is now:
index(pid) in table1(id)
The index of table2 refers to the id of table1. This works fine, but only after adding key(id) on table1. I also do not understand why that works, but it does.
Instead of adding/removing from a Vert Control, you could try to use a Flip Control if you want to switch between two objects. Not sure if that is smart to do, memory wise. Of course this is only interesting if you want to switch between showing Browse #1 and Browse #2. If you also want to be able to hide both, or show both, a Vert Control is a good solution.
Thanks for the tip. I will take a look at it. For the time being I have used a HorzControl and Html_ahref_Control for a list of attachments and changed LBUTTONUP(). This way I can just get the attachment data from the email at the moment the user needs it. Works fine and no delays with large collections of attachments. Only downside is the use of the HorzControl with the links in it. If the list of attachments is large, it is difficult to display it, because of the space limits. That is actually why I wanted to use the BrowserControl, because then I can just put all attachment links in 1 or more lines on the screen. I am trying to do something like that with HorzControl, making it “wrap around”, but have not idea yet how to do that. Is there a control that can do something like that?