I’m tearing my hair out about this one, and would appreciate any suggestions. I’ve build a very simple web app – one page, one button on that page. When I click that button, it builds a string consisting of 5 lines of XojoScript (4 of which are DIM statements), then tries to run the script.
The app (and its much more complex older sibling) runs fine on port 8080 as a standalone web app on Mac OS X 10.8.5. But on a 32-bit Amazon Ubuntu Linux instance (Ubuntu Server 12.04.3 LTS, AWS instance ID i-4fc2ea37), it dumps core when it hits the XojoScript run method.
At first I thought this was a 64- vs 32-bit problem (even though I’d installed the 32-bit libraries), so I spun up a 32-bit instance and tried it there. No such luck.
Am I missing something obvious here? Should I be building this on Linux because I’m trying to run on Linux, instead of building on Mac? I’ve stripped this project down to bare essentials, so I can post it if necessary.
[quote=46256:@Charles Weger]@Norman: Transmit is pretty smart about modes. Also, I’m using SFTP, which according to the Transmit docs is always binary:
“FTP is the only protocol that distinguishes between ASCII and binary files. Other protocols, such as SFTP, always create a byte-for-byte (binary mode) copy of the file.”[/quote]
Fair enough - its just one of those things that has tripped people up before
@Norman: yes, I’ve made all those kind of mistakes before, for sure. @Joe: good call. If I take out my 5 lines of script, and put in just a print statement, there’s no crash. The script is being built dynamically, so it’s kind of hard to show, but in essence the lines it winds up creating are these:
Dim foo As Double = 3.14159
Dim x As Integer = 10
Dim y As Integer = 21
Dim z As String = “this is a string test”
result = str(x + y)
Where ‘result’ is a property on the XojoScript class.
I can zip up the source and send it somewhere if that would be helpful; there’s nothing proprietary in it at this point.
I want to say thanks to all the Xojo guys who have helped me on this. Even though it’s not resolved yet, I’m SUPER impressed with the ability to post a problem at 10 pm, and have not one but FOUR company experts chime in to help. I don’t get this kind of service anywhere else, with any other software or hardware product.
So thank you!
Heading to bed now, will check more tomorrow.