Software FX Posted September 18, 2000 Report Share Posted September 18, 2000 We will research on this problem, in the meantime you may want to create a new object (and destroy it when done) inside the loop. For intKPI = 0 To 4 Set Chart = Server.CreateObject(...) ... Set Chart = Nothing Next The time spent reading a database and generating an image is a couple of order of maginitudes bigger than creating/destroying an object so this will not dramatically affect your performance. Regards, Juan Cegarra Software FX, Inc. support.softwarefx.com -----Original Message----- From: Peter Kundu [mailto:Peter.Kundu@Utero.se] Posted At: Monday, September 18, 2000 4:44 AM Posted To: Server Conversation: IIS4 crashes when displaying multiple charts! Subject: IIS4 crashes when displaying multiple charts! Hi! My webserver (specifikation below) keeps craching whenever I try show more than one chart (JPEG in CfxTemp) at a time. I have NO problem at all with one chart, but as soon I used a loop to generate 5 charts IIS craches. The WWW-services does NOT stop, IIS Manager does not start and I can not used Controlpanel/Services to stop It eather. So the only solution is restart and in most cases cold restart by pressing the ON/OFF button. I have isolated the problem area (code below), and tried different methods to avoide taking down the webserver. I've made the directory a Application that runs in own memory space, without result. I still have to restart! Server specifikation IBM P233 MMX 288Mb RAM (200Mb) Free 1Gb Virtual Memory (850 Free) 2,5 Gb free space OS NT4 + SP6a (Standalone) SQL7 + SP3 IIS4 + Frontpage Server Extensions Components SAFileUP (Soft Artisan) VSForum (Videosoft) ChartFX2000 Application 1. Retrives data from SQL server 2. Data is formated by ASP into an array 5x4x6 (5 charts, 4 series, 6 points) 3. ASP loopes thru the array generating the chart "Sub DrawChart()" Code <% Sub DrawChart() EBM_DARK_GREY = RGB(51,51,51) %> <HTML> <HEAD> <META NAME="GENERATOR" Content="Microsoft Visual Studio 6.0"> </HEAD> <BODY text="#FFFFFF" bgcolor="#<%=Hex(EBM_DARK_GREY)%>"> <% For intKPI = 0 To 4 ' Title Settings ChartFX1.Title(2) = arBudget(intKPI, 1) ChartFX1.RGBFont(2) = &HFFFFFF ChartFX1.Fonts(2) = 256 'Bold ChartFX1.OpenDataEx COD_VALUES, 4, 6 For intSeries = 0 To 3 For intPoint = 0 To 5 ChartFX1.Series(intSeries).YValue(intPoint) = arDiagram(intKPI, intSeries, intPoint) Next Next ChartFX1.CloseData COD_VALUES strHTML = ChartFX1.GetHtmlTag(300,200,"JPEG","ChartFX1") Response.Write(strHTML) 'Response.Write(Server.HTMLEncode(strHTML) & "<BR>" & vbCrLf ) Next Set ChartFX1 = Nothing End Sub %> -- Peter Kundu Solution Architect Utero Digital Media -------------------------------------------- Phone: +46(0) 8 22 05 02 Cell Phone: +46(0) 70 445 05 76 Kungsgatan 56 SE-111 22 STOCKHOLM SWEDEN Web: http://www.utero.se Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.