473,320 Members | 2,073 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,320 software developers and data experts.

Out of band calls in Netscape

Hi all -

I have a page using asynchronous out of band calls to a Web Service
located on a server that is on the network. The web service is located
on the machine where the pages are being served. It works the way I
want it to, but there are 2 problems I see.
1) There appears to be a memory leak, with every subsequent call it
seems, the memory that netscp.exe takes up keeps climbing.
2) Every time a call to the web service is made, the dropdown lists on
the page (and on the entire browser, including File, Edit, etc, get
killed, meaning if a user is looking at the contents of a dropdownlist,
upon the web service call, it effectively de-selects the dropdownlist.
I'm guessing that the browser's lists get killed when a SOAP response
is received... Thanks in advance for any help you can offer.

Jul 23 '05 #1
3 1412


M B HONG 20 wrote:

1) There appears to be a memory leak, with every subsequent call it
seems, the memory that netscp.exe takes up keeps climbing.
Are you still working with Netscape 7.0 or is that memory leak also
occuring with 7.2?
It is very difficult to suggest what do against a leak without seeing
your code as usually the leak is a bug that needs to be fixed in the
browser code so all script solutions to the problem are usually then
workarounds rewriting the existing code so that it still works but
hopefully does no longer leak.
2) Every time a call to the web service is made, the dropdown lists on
the page (and on the entire browser, including File, Edit, etc, get
killed, meaning if a user is looking at the contents of a dropdownlist,
upon the web service call, it effectively de-selects the dropdownlist.


That sounds a bit odd, do you have a URL where that can be visited?
Again the question which version(s) of Netscape is that happening with?

--

Martin Honnen
http://JavaScript.FAQTs.com/
Jul 23 '05 #2
Martin - thanks for replying

I am working with Netscape 7.0. I tested the page with Firefox 1.0.3,
and the memory leak appears to be at a much slower rate, and the leak
stops eventually. However, I need to get this working for Netscape
7.0. Here is my code, maybe there is an obvious problem i am not
seeing.

function refresh(callback)
{
var refreshCall = new SOAPCall();
refreshcall.transportURI = "...";
refreshcall.actionURI = "...";
refreshcall.encode (...);
refreshcall.asyncInvoke(
function (response, soapCall, error)
{
var r = hanldeSOAPResponse( response, soapCall,
error);
callback(r);
}
);
}

function handleSOAPResponse (response, soapCall, error)
{
if(error != 0)
{
alert("service failure");
return false;
}
else
{
var fault = response.fault;
if (fault != null)
{
alert (response.fault);
return false;
}
else
{
return response;
}
}
}

function ParseResult(result)
{
var responseValues = result.getParameters(false, {});
var firstValue = responseValues[0].value;
document.Form1.elements["TextBox2"].value = firstValue;
}

window.setInterval('refresh(ParseResult);', 250);

In testing with FireFox 1.0.3 and Netscape 7.0, the memory is much
better handled in FireFox, but the dropdown problem occurs in both
browsers. I don't have a domain or anything you can visit, but
basically if I have a Netscape window with the above script in it open,
and if i open another browser window and open lets say, eBay, the
dropdownlists in that new eBay page will disappear every 250 ms or
whatever interval I have defined for the SOAP call. It is a strange
problem and I'm surprised no one has ever seen it before... anyways
thanks in advance for your help.

p.s. The dropdownlist problem also occurs when the Web Service is on my
localmachine.

Jul 23 '05 #3


M B HONG 20 wrote:

function refresh(callback)
{
var refreshCall = new SOAPCall();
refreshcall.transportURI = "...";
refreshcall.actionURI = "...";
refreshcall.encode (...);


At least that snippet looks as if you create a new SOAPCall object for
each request although you do not need to as you do not seem to have
different transportURI/actionURI/encode arguments. So to try to avoid a
leak you could create only one SOAPCall object and reuse it. As said
that is a suggestion to reorder the code to try to avoid the leak, I
cannot guarantee that it improves anything.
--

Martin Honnen
http://JavaScript.FAQTs.com/
Jul 23 '05 #4

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

Similar topics

1
by: Craig | last post by:
Has anyone done any development with Internet Explorer band objects in VB.NET? If so, how did you resolve the issue surrounding IEs failure to process the backspace keydown event for edit...
0
by: Kevin Menard | last post by:
Hi, I have a project that is both an explorer band and a BHO. I'm using WISE to take a snapshot of the system after I do a "regasm" followed by a "regasm /codebase". Running this on a system...
3
by: Rainer Krauss | last post by:
I would like to code (just for learning) some band objects for Internet Explorer. To start with, i simply like to add a button to the Browser called "Trace". Pressing it should open a band like...
4
by: Dave | last post by:
Hi. I am interested in developing an IE band (small toolbar with buttons, etc;) and I was thinking maybe write it in c#. will this band after building it work on all os ? like: 98, win2k, xp ? ...
2
by: Tom Gerstner | last post by:
Dear all, I'm trying to program a IE Toolbar similar to the Google Bar in C# using Band Objects. Everything works fine but my TextBox (which I use to search the Internet) is not responding the...
0
by: Craig | last post by:
Has anyone done any development with Internet Explorer band objects in VB.NET? If so, how did you resolve the issue surrounding IEs failure to process the backspace keydown event for edit...
0
by: Ben3eeE | last post by:
I got one too hard for me to fix problem. I know the cause and i know why but i cant fix it. I am using a "Rubber band" like function, drawing a rectangle on an image in a picturebox that i...
2
by: ruvolojf | last post by:
Hi all! I am new to this group but not so new to web programming. However I am having a problem that I have not encountered before. I have a function that when called from another function fires...
0
by: =?Utf-8?B?TXVuaXNoIFNpbmdsYQ==?= | last post by:
Hi, i am working on creating bandobject in dot net. i have created band object sucessfully. but to show that band object in taskbar i have to right click & then click on tollbar, then i have to...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

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.