kosist Posted June 11, 2011 Report Share Posted June 11, 2011 Hi everyone! I've got one important question, on which I can't find the answer.The point is I've got server, made in LabVIEW, and a client, made in Adobe Flash CS5, and they have to send data to each other. But when Adobe Flash Player 10 connects to server, first of all, it sends such string - <policy-file-request/>, and when server gets this string, it must send such called "policy file" - <cross-domain-policy><allow-access-from domain="*" to-ports="*" secure="false"/><site-control permitted-cross-domain-policies="master-only" /></cross-domain-policy>+Chr(0). Then client (Flash Player) dissconnects from the server, and connects again, and sending data goes without any policy file. But unfortunatelly, my server doesn't want to get this string - I've got error "Not enough memory". What I have to do, to make my server get the policy file request, and send answer to client? Please, help me, if you know what to do. The link to Adobe Flash client is below - http://noggit.zs9.ru/net_swf.swf, LabVIEW server also is attached. I don't want to use WebService, because I have to use simple TCP/IP "talking", and LabVIEW VI, from which I have to send data to broser is very difficult, and includes much variables to send. I'm looking forward for your help! P.S. Sorry for my English. Server.vi Quote Link to comment
mzu Posted June 11, 2011 Report Share Posted June 11, 2011 You did not follow the advice given here: http://labviewportal.eu/viewtopic.php?f=21&t=3523 So let me repeat it. First of all - disconnect "Service name" (as shown). It does not specify the interface to listen on. Second: check that you get the length (the first 4 bytes you are reading in correct byte order). This could be the cause of the memory error. Quote Link to comment
kosist Posted June 11, 2011 Author Report Share Posted June 11, 2011 I followed your advise, and I appreciate it, but it didn't helped me. When I disconnected "Service name" and read bytes directly, without getting the length of the message, there is no error, but server doesn't see a string message - the length of string is 0. What I have to do? Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.