473,385 Members | 1,356 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

hosting c# exe in memory for javascript calls

Hi.

i wanted to write a c# exe (no winforms) that can be loaded once and
stay resident in memory. this exe accepts paramters like port and ip
address on initialization, then transmits string data over a tcp/ip
socket after it is resident in memory.

I want to send the string data to the memmory resident exe from
javascript code running in IE 6/7

i know how to do all the socket stuff in the exe, what i dont know how
to do is make the exe initialise once and stay resident in memmory,
then be able to send data to it from javascript.
andy advice appreciated

thanks

Peted
Aug 1 '07 #1
2 1534
IE (6/7) is a browser and only knows how to make HTTP requests for a resource
defined by a URL - that could be a web page, an image, a CSS stylesheet file,
and so on.
In the browser you can also use the XMLHTTPRequest object to make GET AND
POST requests. This can be done via client script from the browser.
So, it sounds like your idea may be a bit confused vis-a-vis "how things
work".

You can certainly have an ASP.NET ASPX page or ASHX WebHandler that can
recieve your IE requests, do some work, and return results to the caller, but
the idea of using a memory - resident EXE and Sockets doesn't really make
much sense in this particular context. Hope that helps,
Peter
--
Recursion: see Recursion
site: http://www.eggheadcafe.com
unBlog: http://petesbloggerama.blogspot.com
bogMetaFinder: http://www.blogmetafinder.com

"Peted" wrote:
Hi.

i wanted to write a c# exe (no winforms) that can be loaded once and
stay resident in memory. this exe accepts paramters like port and ip
address on initialization, then transmits string data over a tcp/ip
socket after it is resident in memory.

I want to send the string data to the memmory resident exe from
javascript code running in IE 6/7

i know how to do all the socket stuff in the exe, what i dont know how
to do is make the exe initialise once and stay resident in memmory,
then be able to send data to it from javascript.
andy advice appreciated

thanks

Peted
Aug 1 '07 #2
I agree with this. I would also go so far as to say that the "resident
exe" should really be a service, with a web service interface which you can
make calls to with JavaScript (through JSON notation maybe, or the standard
XML notation).
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Peter Bromberg [C# MVP]" <pb*******@yahoo.yohohhoandabottleofrum.comwrote
in message news:F1**********************************@microsof t.com...
IE (6/7) is a browser and only knows how to make HTTP requests for a
resource
defined by a URL - that could be a web page, an image, a CSS stylesheet
file,
and so on.
In the browser you can also use the XMLHTTPRequest object to make GET AND
POST requests. This can be done via client script from the browser.
So, it sounds like your idea may be a bit confused vis-a-vis "how things
work".

You can certainly have an ASP.NET ASPX page or ASHX WebHandler that can
recieve your IE requests, do some work, and return results to the caller,
but
the idea of using a memory - resident EXE and Sockets doesn't really make
much sense in this particular context. Hope that helps,
Peter
--
Recursion: see Recursion
site: http://www.eggheadcafe.com
unBlog: http://petesbloggerama.blogspot.com
bogMetaFinder: http://www.blogmetafinder.com

"Peted" wrote:
>Hi.

i wanted to write a c# exe (no winforms) that can be loaded once and
stay resident in memory. this exe accepts paramters like port and ip
address on initialization, then transmits string data over a tcp/ip
socket after it is resident in memory.

I want to send the string data to the memmory resident exe from
javascript code running in IE 6/7

i know how to do all the socket stuff in the exe, what i dont know how
to do is make the exe initialise once and stay resident in memmory,
then be able to send data to it from javascript.
andy advice appreciated

thanks

Peted

Aug 1 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Lyle Fairfield | last post by:
Just in case you were considering this http://www.interland.com/ provides internet accessible MS-SQL dbs packaged with many of their web- hosting plans. I have two such dbs. Interland backs...
20
by: jeevankodali | last post by:
Hi I have an .Net application which processes thousands of Xml nodes each day and for each node I am using around 30-40 Regex matches to see if they satisfy some conditions are not. These Regex...
4
by: Chris Bardon | last post by:
I'm working on an application where I need to be able to call a .net web service from javascript. I found the webservice.htc file, and was able to create a page that worked just fine, except that...
4
by: Hermann Maier | last post by:
hi, i need to find out the memory usage of a specific function that i use in my program. this function does some recursive calculations and i want my program to display the amount of memory the...
2
by: dejavue82 | last post by:
Dear ASP.net programmers, I was wondering about the following: 1) Do hosts automatically support all of the .NET framework? (ex. System.Image) 2) If one rents a dedicated server, does one...
3
by: jdlwright | last post by:
Hi, a customer is using our fairly memory intensive web app. in a shared hosting environment and the other day their host 'banned' (I think they just killed the process) them for memory abuse. ...
6
by: petermichaux | last post by:
Hi, Reading the Yahoo! UI AJAX library, there is a unique workaround for an apparent IE 6 memory leak with binding a function to onreadystatechange. Instead of binding a function to...
9
by: Joshua | last post by:
I posted this originally in the csharp group, but I think that may be the wrong group. This seems more appropriate: I'm running into an issue with a memory leak in an Asp.Net web page. In the...
19
by: kangax | last post by:
There's a common pattern of "forking" a returning function as in the following example: function bind(fn, context) { var args = Array.prototype.slice.call(arguments, 2); if (args.length) {...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.