Welcome, Guest. Please login or register.
Did you miss your activation email?
Sep. 02, 2010, 07:47:32 PM
53844 Posts in 11998 Topics by 11375 Members
Latest Member: elizablackmore7
News:
 
The PRADO Community » Prado v3.x » Bug Reports » TActiveDataList Memory Problems « previous next »
Pages: [1] Print
Author Topic: TActiveDataList Memory Problems  (Read 329 times)
PinkBrainPlan
Senior Member
***

Karma: 4
Offline Offline

Posts: 84



View Profile WWW
« on: Jul. 21, 2010, 09:20:38 AM »

Hello World!

I currently have a lot of problems using DataControls and Memory Usage:( All functions work fine on my local machine, but switching to the webhoster (MEM-LIMIT 32MB) lets my application crash:( Is theire a special technique, how to fix this?

Thx in advance!

Best regards Phil
Logged
mp
Senior Member
***

Karma: 11
Offline Offline

Posts: 258



View Profile
« Reply #1 on: Jul. 21, 2010, 09:59:27 PM »

Do you have ViewState enabled on these data controls? If so - try to disable viewstate and databind on each request.
Logged
PinkBrainPlan
Senior Member
***

Karma: 4
Offline Offline

Posts: 84



View Profile WWW
« Reply #2 on: Jul. 21, 2010, 11:06:43 PM »

I changed no more memory error, but:
<!DOCTYPE html PUBLIC
   "-//W3C//DTD XHTML 1.0 Transitional//EN"
   "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>Internal Server Error</title>
<style type="text/css">
/*<![CDATA[*/
body {font-family:"Verdana";font-weight:normal;color:black;background-color:white;}
h1 { font-family:"Verdana";font-weight:normal;font-size:18pt;color:red }
h2 { font-family:"Verdana";font-weight:normal;font-size:14pt;color:maroon }
h3 {font-family:"Verdana";font-weight:bold;font-size:11pt}
p {font-family:"Verdana";font-weight:normal;color:black;font-size:9pt;margin-top: -5px}
.version {color: gray;font-size:8pt;border-top:1px solid #aaaaaa;}
/*]]>*/
</style>
</head>
<body>
<h1>Internal Server Error</h1>
<h2>Invalid callback target, no such control with ID ctl0$Main$ActivityProtokollListe$ctl0$ctl1.</h2>
<p>
An internal error occurred while the Web server was handling your request.
Please contact the <a href="mailto:webmaster@planlogiq.com">webmaster</a> to report this problem.
</p>
<p>
Thank you.
</p>
<div class="version">
2010-07-22 00:57
</div>
</body>
</html><table cellspacing="0" cellpadding="2" border="0" width="100%" style="table-layout:auto">
   <tr>
      <th style="background-color: black; color:white;" colspan="5">
         Application Log
      </th>
   </tr><tr style="background-color: #ccc; color:black">
       <th style="width: 15px">&nbsp;</th>
      <th style="width: auto">Category</th><th style="width: auto">Message</th><th style="width: 120px">Time Spent (s)</th><th style="width: 150px">Cumulated Time Spent (s)</th>
   </tr>   <tr style="background-color: #fff; color:#000">
      <td style="border:1px solid silver;background-color: #ff9933;">&nbsp;</td>
      <td>System.TApplication</td>
      <td>Invalid callback target, no such control with ID ctl0$Main$ActivityProtokollListe$ctl0$ctl1.</td>
      <td style="text-align:center">0.000000</td>
      <td style="text-align:center">0.000000</td>
   </tr><tr><td colspan="5" style="text-align:center; background-color:black; border-top: 1px solid #ccc; padding:0.2em;"><span style="color:white; border:1px solid white; background-color:green;margin: 0.5em; padding:0.01em;">DEBUG</span><span style="color:white; border:1px solid white; background-color:black;margin: 0.5em; padding:0.01em;">INFO</span><span style="color:white; border:1px solid white; background-color:#3333FF;margin: 0.5em; padding:0.01em;">NOTICE</span><span style="color:white; border:1px solid white; background-color:#33FFFF;margin: 0.5em; padding:0.01em;">WARNING</span><span style="color:white; border:1px solid white; background-color:#ff9933;margin: 0.5em; padding:0.01em;">ERROR</span><span style="color:white; border:1px solid white; background-color:#ff00ff;margin: 0.5em; padding:0.01em;">ALERT</span><span style="color:white; border:1px solid white; background-color:red;margin: 0.5em; padding:0.01em;">FATAL</span></td></tr></table>

Thx a lot for your support!
Logged
PinkBrainPlan
Senior Member
***

Karma: 4
Offline Offline

Posts: 84



View Profile WWW
« Reply #3 on: Jul. 22, 2010, 06:10:32 AM »

OK, the former message was due to the reason, that i didn't clean the cache... - sorry!

The issue is, that i still got the memory problem;(

i already use paging... so only 5 items are displayed per page...

regards Philipp
Logged
mp
Senior Member
***

Karma: 11
Offline Offline

Posts: 258



View Profile
« Reply #4 on: Jul. 23, 2010, 09:22:05 AM »

What is the error message exactly?
Logged
PinkBrainPlan
Senior Member
***

Karma: 4
Offline Offline

Posts: 84



View Profile WWW
« Reply #5 on: Jul. 24, 2010, 11:45:42 AM »

Hi, I think I know where the problem is, but I don“t know how to solve it:(

As you can see in the pic below, I put different components into each other...

e.g.:

TRepeater <- TDataList <- TRepeater

So it looks like, all the objects keep in memory after the construction... I even tried to destroy them after each DataListItem was created, but it didn't work...

Any Ideas?

In the picture i have a datalist for the communication flow, inside the users can append files and comments...

THX and regards Phil


* debug_memory.png (112.73 KB, 1365x620 - viewed 34 times.)
Logged
Pages: [1] Print 
« previous next »
Jump to: