Thursday, June 02, 2005

Interesting / funny conversation about flash comm server's javascript engine

Here is a conversation I had with "daz lee" about an interesting mod he made to the javascript engine of the Macromedia Flash Comm Server. [added to this blog 6/22/07].

From: "daz lee" dazlee4@hotmail.com
To: flashcomm@chattyfig.figleaf.com
Date: Mon, 30 May 2005 16:45:26 +0100
Subject: [FlashComm] FC File System

Hey there guys, I spent most of yesterday as an experiment playing with flashcom files, and I've built a replacement js32.dll which adds a windows file system to flashcom.

two new objects are available with this FileSystem and Directory, you will find it and some information here.

fczone.com/SSAS_Extra

FileSystem.ReadAll, FileSystem.Write, FileSystem.Append, FileSystem.Remove, FileSystem.Rename

Directory.Exists, Directory.Create, Directory.Remove, Directory.Rename, Directory.List

Check it out, the download links are at the top in stage 3 of the install instructions.

Hope someone finds a use for it

From: "daz lee" dazlee4@hotmail.com
To: "FlashComm Mailing List" flashcomm@chattyfig.figleaf.com
Date: Mon, 30 May 2005 16:48:48 +0100
Subject: Re: [FlashComm] FC File System

oops just a note: use at own risk lol

should be ok, ive had no problems although I haven't been looking for them lol.

From: Trevor Harrison my-work-address
To: FlashComm Mailing List flashcomm@chattyfig.figleaf.com
Date: Tue, 31 May 2005 14:30:12 -0400
Subject: Re: [FlashComm] FC File System

daz lee wrote:

Hey there guys, I spent most of yesterday as an experiment playing with flashcom files, and I've built a replacement js32.dll which adds a windows file system to flashcom.

Need some help installing your .dll.

I renamed the orig .dll, and put your .dll in my "C:\Program Files\Macromedia\Flash Communication Server MX" dir (where the old one was), but when I start flashcom (from the cmd line instead of as a service), I get an error dlg saying:

"The procedure entry point JS_SetContextThread could not be located in the dynamic link library js32.dll"

Did I do something wrong?

I'm pretty sure on update2 of fcs. The flashcom.exe is dated 4/28/2004.

-Trevor

From: "daz lee" dazlee4@hotmail.com
To: "FlashComm Mailing List" flashcomm@chattyfig.figleaf.com
Date: Tue, 31 May 2005 19:31:14 +0100
Subject: Re: [FlashComm] FC File System

hym, has anyone else had a problem installing my dll?

im not sure really

From: "daz lee" dazlee4@hotmail.com
To: "FlashComm Mailing List" flashcomm@chattyfig.figleaf.com
Date: Tue, 31 May 2005 19:35:55 +0100
Subject: Re: [FlashComm] FC File System

the method, JS_SetContextThread is there for me, prehaps you got a bad download, maybe try again?

what os are you on? what flashcom are you using?....

daz
From: Trevor Harrison my-work-address
To: FlashComm Mailing List flashcomm@chattyfig.figleaf.com
Date: Tue, 31 May 2005 15:01:11 -0400
Subject: Re: [FlashComm] FC File System

daz lee wrote:

the method, JS_SetContextThread is there for me, prehaps you got a bad download, maybe try again?

Tried downloading the zip again. Got the same .dll again (js32.dll's md5 7235C05D85A3010ACE86B90AB0624D05) Looking at the strings in the .dll, there is no instance of that string (js_setcontextthread).

what os are you on? what flashcom are you using?....

XP Home. FCS 1.5 update 2.

-Trevor

From: "daz lee" dazlee4@hotmail.com
To: "FlashComm Mailing List" flashcomm@chattyfig.figleaf.com
Date: Tue, 31 May 2005 20:06:35 +0100
Subject: Re: [FlashComm] FC File System

that's really strange, I downloaded both the zip and the rar to my pc and looked at them, the method is there and all works fine, how the hell can this be???? lol

What's different about me, er, I have .net framework 2.0 but that should not effect this it was built in vc6. I have xp sp 2, fcs 1.5 with sp. Very strange indeed. Maybe you should try and downloading visual c 6, spidermonkey api and my jsapi.c and then compile it and see if that works. I am not at all sure how to over come this, its hard when you cant actually work with the error. Ill keep looking into it.

From: Trevor Harrison my-work-address
To: FlashComm Mailing List flashcomm@chattyfig.figleaf.com
Date: Tue, 31 May 2005 15:11:36 -0400
Subject: Re: [FlashComm] FC File System

daz lee wrote:

that's really strange, I downloaded both the zip and the rar to my pc and looked at them, the method is there and all works fine, how the hell can this be???? lol

When you say the method is there... you mean the name of the method? ie. the JS_SetContextThread? What is the offset in the file? I'll use a hex editor on my side and go to that offset. Also, is the md5 of your .dll the same as mine?

What's different about me, er, I have .net framework 2.0 but that should not effect this it was built in vc6. I have xp sp 2, fcs 1.5 with sp. Very strange indeed. Maybe you should try and downloading visual c 6, spidermonkey api and my jsapi.c and then compile it and see if that works. I am not at all sure how to over come this, its hard when you cant actually work with the error. Ill keep looking into it.

Well, from looking at your jsapi.c, the JS_SetContextThread function is surrounded by a #ifdef JS_THREADSAFE block. That means that function won't be there if you don't define JS_THREADSAFE while compiling/building.

-Trevor

From: "daz lee" dazlee4@hotmail.com
To: "FlashComm Mailing List" flashcomm@chattyfig.figleaf.com
Date: Tue, 31 May 2005 20:14:34 +0100
Subject: Re: [FlashComm] FC File System

look at my c file its at fczone.com/getFile?id=jsapi.c

daz and whatever file you have I have because I tried the download's.

From: Trevor Harrison my-work-address
To: FlashComm Mailing List flashcomm@chattyfig.figleaf.com
Date: Tue, 31 May 2005 15:41:46 -0400
Subject: Re: [FlashComm] FC File System

daz lee wrote:

look at my c file its at fczone.com/getFile?id=jsapi.c

Yes. Thats the file I was talking about with the #ifdef JS_THREADSAFE.

daz and whatever file you have I have because I tried the download's.

Sigh. You still haven't said if you can actually see the string "JS_SetContextThead" in the .dll. Nor have you confirmed the md5.

-Trevor

From: "daz lee" dazlee4@hotmail.com
To: "FlashComm Mailing List" flashcomm@chattyfig.figleaf.com
Date: Wed, 1 Jun 2005 19:46:42 +0100
Subject: Re: [FlashComm] FC File System

sorry I cannot be anymore help. all I know is that it works on my machines and my fcs friends, go figure. Maybe srinivas could shed some light lol.

daz


----- Original Message -----
From: Frédéric v. Bochmann
To: 'FlashComm Mailing List'
Sent: Wednesday, June 01, 2005 6:06 PM
Subject: RE: [FlashComm] FC File System

Interesting thread
From: Trevor Harrison my-work-address
To: FlashComm Mailing List flashcomm@chattyfig.figleaf.com
Date: Wed, 01 Jun 2005 16:55:20 -0400
Subject: Re: [FlashComm] FC File System

daz lee wrote:

sorry I cannot be anymore help. all I know is that it works on my machines and my fcs friends, go figure. Maybe srinivas could shed some light lol.

daz,
just an fyi: you creep me out. I'm kinda glad your .dll didn't work on my machine.... otherwise I might have used it on my production site, and I'm starting to think that trusting binaries from you isn't a good idea.

However, thanks for the pointer to the spider monkey stuff.

-Trevor

From: "daz lee" dazlee4@hotmail.com
To: "FlashComm Mailing List" flashcomm@chattyfig.figleaf.com
Date: Thu, 2 Jun 2005 17:01:18 +0100
Subject: Re: [FlashComm] FC File System

lol wtf, how do I creep you out lol. Gee lol it was just an experiment I didn't want to dwell on it for that long.

Last time I try and help you ! lol

...although maybe you wont have a choice... insider joke.

From: Trevor Harrison my-work-address
To: FlashComm Mailing List flashcomm@chattyfig.figleaf.com
Date: Thu, 02 Jun 2005 14:49:38 -0400
Subject: Re: [FlashComm] FC File System

daz lee wrote:

lol(1) wtf, how do I creep you out lol(2). Gee lol(3) it was just an experiment I didn't want to dwell on it for that long.

Last time I try and help you ! lol(4)

...although maybe you wont have a choice... insider joke.

4 'lol's in 3 sentences, thats how.

-Trevor

From: "daz lee" dazlee4@hotmail.com
To: "FlashComm Mailing List" flashcomm@chattyfig.figleaf.com
Date: Thu, 2 Jun 2005 19:52:01 +0100
Subject: Re: [FlashComm] FC File System

fuck you, (sorry if this offends anyone, except trevor)

No comments: