473,394 Members | 1,932 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,394 software developers and data experts.

stack overflow on 1 PC and not on another?

Hello,

When using Internet Explorer, on networked PCs in a college, to view a
page of mine with Javascript code in it the "stack overflow" error
message appears.

When I access the same file from my home PC no such message.

Is it possible for this to be caused by any IE setting?

Any other ideas?

Thanks for any help!

Geoff
Jul 25 '06 #1
8 2010
Geoff Cox wrote:
Hello,

When using Internet Explorer, on networked PCs in a college, to view a
page of mine with Javascript code in it the "stack overflow" error
message appears.

When I access the same file from my home PC no such message.

Is it possible for this to be caused by any IE setting?
Might depend on the machine memory. I don't know any JavaScript setting
in IE that controls how much is assigned to JavaScript. You should be
doing a lot of recusion in order to generate a stack overflow. Any idea
how many levels deep you're going?

Vincent
Jul 25 '06 #2
On Tue, 25 Jul 2006 12:07:14 +0200, Vincent van Beveren
<vv*********@xiam.nlwrote:
>Geoff Cox wrote:
>Hello,

When using Internet Explorer, on networked PCs in a college, to view a
page of mine with Javascript code in it the "stack overflow" error
message appears.

When I access the same file from my home PC no such message.

Is it possible for this to be caused by any IE setting?

Might depend on the machine memory. I don't know any JavaScript setting
in IE that controls how much is assigned to JavaScript. You should be
doing a lot of recusion in order to generate a stack overflow. Any idea
how many levels deep you're going?
Vincent,

The error message comes up when the user clicks on a button to move to
another htm page. I have copied the 1st page below - perhaps you can
see some code whiich might be causing this?!

Geoff

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">

<html>
<HEAD>

<title>test</title>

<SCRIPT SRC="slider.js" TYPE="text/javascript"></script>

<link rel=stylesheet href="slider-front.css" type="text/css">

<script type="text/javascript">
<!--

var mySlider1 = new Slider( "Slider1" );

mySlider1.leftValue = 0;
mySlider1.rightValue = 6;
mySlider1.defaultValue = 3;

mySlider1.offsetX = 1;
mySlider1.offsetY = 1;
mySlider1.buttonWidth = 10;
mySlider1.maxSlide = 288;

function checkForm(myForm)
{
var formOK = true;
if (myForm.FirstName.value == "") {
window.alert("please enter first name");
myForm.FirstName.focus();
formOK = false;
} else if (myForm.LastName.value == "") {
window.alert("please enter last name");
myForm.LastName.focus();
formOK = false;
}
return formOK;

}

-->
</script>

<noscript><p align="center"><strong>If you cannot see an image below
you may need to enable Javscript in your
browser.</strong></p></noscript>

</head>

<body onload="mySlider1.placeSlider()";
onResize="mySlider1.placeSlider()">

<h2 align="center">test</h2>

<pre>

</pre>

<table border="0" cellpadding="20">
<tr>
<td valign="middle" align="center" colspan="2">

<FORM NAME="myForm" METHOD="LINK" ACTION="spa-m4.htm" onSubmit="return
checkForm(this);">
First name: <INPUT TYPE="text" NAME="FirstName"<br>
Last name: <INPUT TYPE="text" NAME="LastName" <br>
</td>
</tr>

<tr>
<td valign="middle">

<p>description</p>

<h3 align="center">How to use the slider</h3>

<p>Imagine that you are asked for your impression of how cold it is
today. The
position of the slider thumb (coloured blue) can represent any
situation
between Very Hot and Very Cold. </p>

<p>If you wish to indicate that you think that
is quite cold you would click on the thumb with your mouse and drag it
to the right, nearer to the Very Cold end, as is shown in the diagram.
</p>

<p>Click on the button below to move to the questions.</p>

<td align="center">

<p align="center"><IMG SRC='sliderbg.gif' NAME='Slider1RailImg'
ID='Slider1RailImg' ALT='spa image'></p>

<p>Try moving the slider thumb above with your mouse.</p>

<img src="slider-before-after.gif" width="350" height="150" ALT="spa
image">
</td>
</tr>

<tr>
<td valign="middle" align="center" ID="button" colspan="2">

<INPUT TYPE="submit" VALUE="Move to the questions">

</FORM>

</td>
</tr>
</table>

<script type="text/javascript">
<!--
mySlider1.writeSlider();
-->
</script>

</body>
</html>



>
Vincent
Jul 25 '06 #3
>Might depend on the machine memory. I don't know any JavaScript setting
>in IE that controls how much is assigned to JavaScript. You should be
doing a lot of recusion in order to generate a stack overflow. Any idea
how many levels deep you're going?

Vincent,

The error message comes up when the user clicks on a button to move to
another htm page. I have copied the 1st page below - perhaps you can
see some code whiich might be causing this?!

Geoff
I see nothing on this page that might cause that. When you click on the
next question, does it submit to the same page or another page? It must
be something with the slider.js. An example of what might happen is that
the placeSlider function invokes something that resizes the page,
dispatching another onResize event, invoking another placeSlider. I
would look for such things.

Vincent
Jul 25 '06 #4
On Tue, 25 Jul 2006 15:08:56 +0200, Vincent van Beveren
<vv*********@xiam.nlwrote:

>I see nothing on this page that might cause that. When you click on the
next question, does it submit to the same page or another page? It must
be something with the slider.js. An example of what might happen is that
the placeSlider function invokes something that resizes the page,
dispatching another onResize event, invoking another placeSlider. I
would look for such things.
Vincent,

on the second page I have

<body onload="mySlider1.placeSlider();mySlider2.placeSli der();
mySlider3.placeSlider();mySlider4.placeSlider();my Slider5.placeSlider();
mySlider6.placeSlider();mySlider7.placeSlider();my Slider8.placeSlider();
sendbutton()"; onResize="mySlider1.placeSlider();
mySlider2.placeSlider();
mySlider3.placeSlider();mySlider4.placeSlider();
mySlider5.placeSlider();mySlider6.placeSlider();
mySlider7.placeSlider();mySlider8.placeSlider()">

does anything here look as if it might cause a problem?

If I can let you have any more code will be pleased to do so!

Thanks

Geoff

>
Vincent
Jul 25 '06 #5
>
does anything here look as if it might cause a problem?

If I can let you have any more code will be pleased to do so!
Well, I don't see anything. The source of slider.js might help. The only
thing is that you load a JavaScript library ( <script
src="..."></script) and then later on use it in the document ( slider1
= new Slider()). The browser doesn't guarantee that slider.js code is
already loaded at the point that it is created. but if it wouldn't work
I'd expect another error message though, not a stack overflow.

Vincent
Jul 26 '06 #6
On Wed, 26 Jul 2006 09:51:57 +0200, Vincent van Beveren
<vv*********@xiam.nlwrote:
>Well, I don't see anything. The source of slider.js might help. The only
thing is that you load a JavaScript library ( <script
src="..."></script) and then later on use it in the document ( slider1
= new Slider()). The browser doesn't guarantee that slider.js code is
already loaded at the point that it is created. but if it wouldn't work
I'd expect another error message though, not a stack overflow.
Vincent,

I have copied the slider.js contents below. One odd thing - I
suggested that the people seeing this stack overflow might try Firefox
- they did and the error message is no longer there!

I have also carried out some HTML validation on the 2 pages and have
asked that the users to try the new pages. Have not had any response
yet. I understand from other people that bad HTML should not cause
stack oversflows but we will see.

Anything in the slider.js file?

Cheers

Geoff
/************************************************** **************
* Slider
*
* Slider050723
* by Christiaan Hofman, July 2005
*
* You may use or modify this code provided that this copyright notice
* appears on all copies.
*
* Constructor:
* var slider = new Slider( [name] );
* (default: name = "slider0", "slider1", ...)
*
* Creating Methods
* slider.writeSlider();
* slider.placeSlider( [imgName] );
* (default: imgName = name+"RailImg")
*
* Control Methods:
* slider.getValue();
* slider.setValue( [value] );
*
* Event Handlers:
* slider.onmouseover( e );
* slider.onmouseout( e );
* slider.onmousedown( e );
* slider.onmouseup( e );
* slider.onslide( e );
* slider.onchange( e );
* slider.onclick( e );
*
* Default Initial Settings:
*
* slider.leftValue = 0;
* slider.rightValue = 1;
* slider.defaultValue = 0;
* slider.offsetX = 1;
* slider.offsetY = 1;
* slider.maxSlide = 258;
* slider.buttonWidth = 40;
* slider.buttonHeight = 28;
* slider.buttonImg = "sliderbutton.gif";
* slider.buttonHiliteImg = "sliderhibutton.gif";
* slider.imgPath = "";
* slider.orientation = "h";
*
************************************************** **************
* EXAMPLE:
*
* <html>
* <head>
* <script language="javascript" src="slider.js"></script>
* <script language="javascript">
* mySlider = new Slider( "MySlider" );
* </script>
* </head>
* <body onload="mySlider.placeSlider()">
* <img src="sliderbg.gif" name="MySliderRailImg">
* <script language="javascript">
* mySlider.writeSlider();
* </script>
* </body>
* </html>
************************************************** **************
*/

// Constructor

function Slider(name) {
this.leftValue = 0;
this.rightValue = 6;
this.defaultValue = 3;
this.offsetX = 1;
this.offsetY = 1;
this.maxSlide = 258;
this.buttonWidth = 40;
this.buttonHeight = 28;
this.buttonImg = "sliderbutton.gif";
this.buttonHiliteImg = "sliderhibutton.gif";
this.buttonHoverImg = null;
this.imgPath = "";
this.orientation = "h";

this.writeSlider = Slider.writeSlider;
this.placeSlider = Slider.placeSlider;
this.makeEventHandler = Slider.makeEventHandler;
this.isPrototype = Slider.isPrototype;
this.getValue = Slider.getValue;
this.setValue = Slider.setValue;

this.MouseOver = Slider.MouseOver;
this.MouseOut = Slider.MouseOut;
this.MouseDown = Slider.MouseDown;
this.MouseUp = Slider.MouseUp;
this.MouseSlide = Slider.MouseSlide;

this.onmouseover = null;
this.onmouseout = null;
this.onmousedown = null;
this.onmouseup = null;
this.onslide = null;
this.onchange = null;
this.onclick = null;

if (!window.sliders) window.sliders = new Array();
this.name = name || "slider"+window.sliders.length;
window.sliders[window.sliders.length] = this;
window.sliders[this.name] = this;
if (!window.sliderDrag) window.sliderDrag = new Object();
}

// method write the button DIV

Slider.writeSlider = function () {
if (!document.getElementById) return; // no W3C support

var proto = this.prototype || this;

// create images for the prototype, if not already set
if (!proto.loImg) {
proto.loImg = new Image(proto.buttonWidth,proto.buttonHeight);
proto.loImg.src = proto.imgPath + proto.buttonImg;
if (proto.buttonHiliteImg) {
proto.hiImg = new
Image(proto.buttonWidth,proto.buttonHeight);
proto.hiImg.src = proto.imgPath + (proto.buttonHiliteImg
|| proto.buttonImg);
}
if (proto.buttonHoverImg) {
proto.hoImg = new
Image(proto.buttonWidth,proto.buttonHeight);
proto.hoImg.src = proto.imgPath + proto.buttonHoverImg;
}
}
// set the properties according to the prototype
if (proto != this) {
this.loImg = proto.loImg;
if (proto.hiImg) this.hiImg = proto.hiImg;
if (proto.hoImg) this.hoImg = proto.hoImg;
this.orientation = proto.orientation;
this.maxSlide = proto.maxSlide;
}

// style for the slider button
var style = '<STYLE TYPE="text/css"><!--\n' +
'#'+this.name+'Button {visibility:hidden; position:absolute;
width:'+ proto.buttonWidth +'px; height:'+ proto.buttonHeight +'px;
z-index:1; }\n' +
'--></STYLE>';

// html for the button div
var content = '<DIV ID="'+this.name+'Button">'+
'<IMG ID="'+this.name+'ButtonImg" SRC="'+proto.loImg.src+'"
WIDTH='+proto.buttonWidth+' HEIGHT='+proto.buttonHeight+'>'+
'</DIV>';

// write the button style and content in the document
document.writeln(style);
document.writeln(content);

// set button properties and mouse event handlers
this.button = document.getElementById(this.name+"Button");
this.button.img =
document.getElementById(this.name+"ButtonImg");
this.button.style.width = proto.buttonWidth + 'px';
this.button.style.height = proto.buttonHeight + 'px';
if (this.button.addEventListener) {

this.button.addEventListener("mousedown",this.Mous eDown,false);

this.button.addEventListener("mouseout",this.Mouse Out,false);

this.button.addEventListener("mouseover",this.Mous eOver,false);
} else {
this.button.onmousedown = this.MouseDown;
this.button.onmouseout = this.MouseOut;
this.button.onmouseover = this.MouseOver;
}
// set event handlers as functions
this.onmouseover = this.makeEventHandler(this.onmouseover);
this.onmouseout = this.makeEventHandler(this.onmouseout);
this.onmousedown = this.makeEventHandler(this.onmousedown);
this.onmouseup = this.makeEventHandler(this.onmouseup);
this.onslide = this.makeEventHandler(this.onslide);
this.onchange = this.makeEventHandler(this.onchange);
this.onclick = this.makeEventHandler(this.onclick);
// tell button who we are
this.button.slider = this;
// from now on button refers to the style object
this.button = this.button.style;
}

// method to put the slider button in place

Slider.placeSlider = function (imgName) {
if (!document.getElementById) return; // no W3C support

var proto = this.prototype || this;

// set name or default name
imgName = imgName || this.name+'RailImg';
// find the rail image
this.rail = (typeof(imgName) == 'string')?
document.getElementById(imgName) : imgName;
// offset w.r.t rail
var x = proto.offsetX;
var y = proto.offsetY;
// add global position of rail and parents in global document to
the offset
if (this.rail.offsetParent) {
var parent = this.rail;
while (parent) {
x += parent.offsetLeft;
y += parent.offsetTop;
parent = parent.offsetParent;
}
// Fix for IE 5 for Mac
if (navigator.userAgent.indexOf("MSIE")+1 &&
navigator.userAgent.indexOf("Mac")+1) {
x += parseInt(document.body.currentStyle.marginLeft);
y += parseInt(document.body.currentStyle.marginTop);
}
} else {
x += (typeof(this.rail.pageX) == 'number')? this.rail.pageX :
this.rail.x;
y += (typeof(this.rail.pageY) == 'number')? this.rail.pageY :
this.rail.y;
}
// set position of button
this.button.left = x + 'px';
this.button.top = y + 'px';
// offset is remembered for later sliding
this.offset = (proto.orientation == "v")? y : x;
// put button in default position and make visible
this.setValue(this.defaultValue);
this.button.visibility = 'inherit';
}

// makes slider a prototype for all previously defined sliders

Slider.isPrototype = function () {
for (var i=0; i<window.sliders.length; i++)
window.sliders[i].prototype = window.sliders[i].prototype ||
this;
}

// mouseover handler of the button, only calls handler of slider

Slider.MouseOver = function (e) {
window.sliderDrag.isOver = true;
if (this.slider.hoImg && !window.sliderDrag.isDown) this.img.src
= this.slider.hoImg.src;
if (this.slider.onmouseover) this.slider.onmouseover(e);
}

// mouseout handler of the button, only calls handler of slider

Slider.MouseOut = function (e) {
window.sliderDrag.isOver = false;
if (this.slider.hoImg && !window.sliderDrag.isDown) this.img.src
= this.slider.loImg.src;
if (this.slider.onmouseout) this.slider.onmouseout(e);
}

// mousedown handler of the button

Slider.MouseDown = function (e) {
var slider = this.slider;
// remember me
window.sliderDrag.dragLayer = this;
window.sliderDrag.dragged = false;
window.sliderDrag.isDown = true;
// event position
var evtX = evtY = 0;
if (!e) e = window.event;
if (typeof(e.pageX) == 'number') {
evtX = e.pageX;
evtY = e.pageY;
} else if (typeof(e.clientX) == 'number') {
evtX = e.clientX + (document.body.scrollLeft || 0);
evtY = e.clientY + (document.body.scrollTop || 0);
}
// ignore right mouse button
if ((e.which && e.which == 3) || (e.button && e.button == 2))
return true;
// set starting offset of event
window.sliderDrag.offX = evtX - parseInt(this.style.left) +
slider.offset;
window.sliderDrag.offY = evtY - parseInt(this.style.top) +
slider.offset;
if (e.cancelable) e.preventDefault();
if (e.stopPropagation) e.stopPropagation();
e.cancelBubble = true;
// document handles move and up events
document.onmousemove = slider.MouseSlide;
document.onmouseup = slider.MouseUp;
if (document.captureEvents)
document.captureEvents(Event.MOUSEMOVE|Event.MOUSE UP);
// show hilite img
if (slider.hiImg) this.img.src = slider.hiImg.src;
// call event handler of slider
if (slider.onmousedown) slider.onmousedown(e);
return false;
}

// mouseup handler of the button

Slider.MouseUp = function (e) {
// button and slider that was draged
var l = window.sliderDrag.dragLayer;
var slider = l.slider;
window.sliderDrag.isDown = false;
// cancel move and up event handlers of document
document.onmousemove = null;
document.onmouseup = null;
if (document.releaseEvents)
document.releaseEvents(Event.MOUSEMOVE|Event.MOUSE UP);
window.sliderDrag.dragLayer = null;
// show normal image
if (slider.hiImg)
l.img.src = (window.sliderDrag.isOver && slider.hoImg)?
slider.hoImg.src : slider.loImg.src;
// cal event handlers of slider
if (slider.onmouseup) slider.onmouseup(e);
if (window.sliderDrag.dragged) {
if (slider.onchange) slider.onchange(e);
} else {
if (slider.onclick) slider.onclick(e);
}
return false;
}

// mousemove handler of the button for sliding

Slider.MouseSlide = function (e) {
// button and slider to be draged
var l = window.sliderDrag.dragLayer;
var slider = l.slider;
// we have dragged the slider; for click
window.sliderDrag.dragged = true;
// event position
var evtX = evtY = 0;
if (!e) e = window.event;
if (typeof(e.pageX) == 'number') {
evtX = e.pageX;
evtY = e.pageY;
} else if (typeof(e.clientX) == 'number') {
evtX = e.clientX + (document.body.scrollLeft || 0);
evtY = e.clientY + (document.body.scrollTop || 0);
}
var pos = (slider.orientation == "h")?
Math.max(Math.min(evtX -
window.sliderDrag.offX,slider.maxSlide),0) + slider.offset :
Math.max(Math.min(evtY -
window.sliderDrag.offY,slider.maxSlide),0) + slider.offset;
// move slider.
if (slider.orientation == "h") l.style.left = pos + 'px';
else l.style.top = pos + 'px';
if (e.cancelable) e.preventDefault();
if (e.stopPropagation) e.stopPropagation();
e.cancelBubble = true;
// call slider event handlers
if (slider.onchange) slider.onchange(e);
if (slider.onslide) slider.onslide(e);
return false;
}

// calculate the value of the slider from position

Slider.getValue = function (n) {
var pos = (this.orientation == "h")? parseInt(this.button.left) :
parseInt(this.button.top);
var val = this.leftValue + (this.rightValue-this.leftValue) *
(pos-this.offset) / this.maxSlide;
return (typeof(n) == 'number')? toDecimals(val,n) : val;
}

// set the position of the slider from a value

Slider.setValue = function (value,ignore) {
if (typeof(value) == 'string') value = parseFloat(value);
if (isNaN(value)) value = this.defaultValue;
// set within min/max bounds
var rangeValue = (this.rightValue >= this.leftValue)?
Math.min(Math.max(value,this.leftValue),this.right Value) -
this.leftValue :
Math.max(Math.min(value,this.leftValue),this.right Value) -
this.leftValue;
var pos = this.maxSlide * rangeValue /
(this.rightValue-this.leftValue) + this.offset + 'px';
// move button to calculated position
if (this.orientation == "h") this.button.left = pos;
else this.button.top = pos;
// call slider event handler, unless ignore is true
if (this.onchange && (!ignore)) this.onchange(null);
}

// make an event handler, ensuring that it is a function

Slider.makeEventHandler = function (f) {
return (typeof(f) == 'string')? new Function('e',f) : ((typeof(f)
== 'function')? f : null);
}

// return a value as a string with a fixed number of decimals

function toDecimals(val,n) {
if (isNaN(n)) return val;
for (var m=0; m<n; m++) val *= 10;
for (var m=0; m>n; m--) val *= 0.1;
val = Math.round(val);
if (val < 0) {
val = -val;
var sgn = "-";
} else {
var sgn = "";
}
var valstr = val.toString();
if (n>0) {
while (valstr.length<=n) valstr = "0"+valstr;
var len = valstr.length;
valstr = valstr.substring(0,len-n) +"."+
valstr.substring(len-n,len);
} else if (n<0) {
for (m=0; m>n; m--) valstr = valstr+"0";
}
return sgn+valstr;
}

Jul 26 '06 #7
JRS: In article <o8********************************@4ax.com>, dated
Wed, 26 Jul 2006 12:29:30 remote, seen in news:comp.lang.javascript,
Geoff Cox <ge*******@remove-this-bit.freeuk.composted :
>
// return a value as a string with a fixed number of decimals

function toDecimals(val,n) {
if (isNaN(n)) return val;
for (var m=0; m<n; m++) val *= 10;
for (var m=0; m>n; m--) val *= 0.1;
val = Math.round(val);
if (val < 0) {
val = -val;
var sgn = "-";
} else {
var sgn = "";
}
var valstr = val.toString();
if (n>0) {
while (valstr.length<=n) valstr = "0"+valstr;
var len = valstr.length;
valstr = valstr.substring(0,len-n) +"."+
valstr.substring(len-n,len);
} else if (n<0) {
for (m=0; m>n; m--) valstr = valstr+"0";
}
return sgn+valstr;
}
Fails on Infinity and undefined and 1e22, testing with n=2.

Read the newsgroup FAQ.
--
© John Stockton, Surrey, UK. ?@merlyn.demon.co.uk Turnpike v4.00 IE 4 ©
<URL:http://www.jibbering.com/faq/>? JL/RC: FAQ of news:comp.lang.javascript
<URL:http://www.merlyn.demon.co.uk/js-index.htmjscr maths, dates, sources.
<URL:http://www.merlyn.demon.co.uk/TP/BP/Delphi/jscr/&c, FAQ items, links.
Jul 26 '06 #8
On Wed, 26 Jul 2006 22:23:05 +0100, Dr John Stockton
<jr*@merlyn.demon.co.ukwrote:
>JRS: In article <o8********************************@4ax.com>, dated
Wed, 26 Jul 2006 12:29:30 remote, seen in news:comp.lang.javascript,
Geoff Cox <ge*******@remove-this-bit.freeuk.composted :
>>
// return a value as a string with a fixed number of decimals

function toDecimals(val,n) {
if (isNaN(n)) return val;
for (var m=0; m<n; m++) val *= 10;
for (var m=0; m>n; m--) val *= 0.1;
val = Math.round(val);
if (val < 0) {
val = -val;
var sgn = "-";
} else {
var sgn = "";
}
var valstr = val.toString();
if (n>0) {
while (valstr.length<=n) valstr = "0"+valstr;
var len = valstr.length;
valstr = valstr.substring(0,len-n) +"."+
valstr.substring(len-n,len);
} else if (n<0) {
for (m=0; m>n; m--) valstr = valstr+"0";
}
return sgn+valstr;
}

Fails on Infinity and undefined and 1e22, testing with n=2.

Read the newsgroup FAQ.
John,

This in the wrong place?!

Geoff
Jul 27 '06 #9

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

Similar topics

4
by: Allen | last post by:
Hi all, What are some different approaches to dealing with stack overflows in C++? I'm especially interested in approaches concerned with speed for infrequent overflows. -- Best wishes,...
13
by: Will Pittenger | last post by:
I have a Control derived class. When the parent of the control changes the control's Location property, the stack overflows. I have not found a way to find out what was on the stack when it does...
19
by: Jim | last post by:
I have spent the past few weeks designing a database for my company. The problem is I have started running into what I believe are stack overflow problems. There are two tab controls on the form...
4
by: Victor | last post by:
Hello, I've got a situation in which the number of (valid) recursive calls I make will cause stack overflow. I can use getrlimit (and setrlimit) to test (and set) my current stack size. ...
4
by: Peter | last post by:
My program causes StackOverflow because it makes many recursive calls due to the program's nature (not a bug!). I would like to know if there is any settings in the compiler or VS.NET IDE so that...
6
by: Daz | last post by:
Hi everyone! It is indeed, once again time for me to ask another stupid question. I have been searching around on the net for quite a while, and can't find anything that explains 'exactly'...
7
by: amit.atray | last post by:
Environement : Sun OS + gnu tools + sun studio (dbx etc) having some Old C-Code (ansi + KR Style) and code inspection shows some big size variable (auto) allocated (on stack) say for ex. char...
4
by: szimek | last post by:
Hi, I've already posted an email with this problem, but this time I think I got a bit more info. The app I'm currently working on works like this: when user clicks on a clickable element, it...
87
by: CJ | last post by:
Hello: We know that C programs are often vulnerable to buffer overflows which overwrite the stack. But my question is: Why does C insist on storing local variables on the stack in the first...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.