Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
inet
active_desktop
active_scrptng
asp.components
asp.db
asp.general
comctl32
comp.packaging
components.dev
dbweb
dhtml_editing
docobjects
html_authoring
html_objmodel
iis
iis.ftp
iis.security
iis.smtp_nntp
indexserver
misc
mshtml_hosting
scripting.jscript
scripting.vbscript
sdk_setup
shell_objmodel
urlmonikers
webbrowser_ctl
wininet
  
 
date: Wed, 29 Jun 2005 13:25:03 -0700,    group: microsoft.public.inetsdk.programming.html_objmodel        back       


BUG in IE6? "Stack overflow at line:0" message appeares   
Hi there,

I cannot found newsgroup for HTCs (HTML Controls), so the question goes 
here. I developed some HTC and I’m trying to use them.

My question totally refers to the client side, and especially Internet 
Explorer. (My MS IE version is 6.0.2900.2180.xpsp_sp2_gdr.050301-1519)

The developed HTML controls fire events according to their internal state. I 
wrote the event handler functions for them in the HTML page. They runs and 
works faultlessly, but when the execution flows back to the script starter 
event attribute (to the point I signed an X: <div … 
onclick=”dosomething()X”>…</div>) a message box appears with the text “Stack 
overflow at line:0”. I tried to catch it by to following: <div … 
onclick=”try{ dosomething()}catch(e){alert(e);}X”>…</div> but the error 
doesn’t originate from my dosomesing() function or its called functions, but 
from the X point again. (Of course the “X” isn’t written to the 
executable/viewable HTML page.)

Well, I examined the problem deeper. The fineness is that the message box 
doesn’t appear every time, just when one HTML control fires an event, a 
function on the page handles and do something when an other HTML control 
fires an other event handled by other function. This time the greatest number 
of the contents of the call stack is 22 (and no real stack overflow 
exception). In addition my code is running, no error meanwhile and my data 
are valid and everything is OK, but at the end that ugly message box shown.

When there is no such situation, when a handler function of a HTC event 
causes other event in one other HTC, the message box doesn’t appear, even if 
there is bigger call stack.

Please, do not write me to use Windows Forms, because my customer would like 
officeless solutions.

Thanks,
	Áron Kolozs
date: Wed, 29 Jun 2005 13:25:03 -0700   author:   Áron Kolozs

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us