<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=windows-1252"
http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Has anyone got CR11 installed who is willing to try an very tiny app to
prove that CR is stuffed ?<br>
<br>
Neven MacEwan wrote:
<blockquote cite="mid:460C6C1D.5020404@mwk.co.nz" type="cite">Rohit
Gupta wrote:
<br>
<br>
"Hey Robert Zimmerman got a song for you, bout a young man called Dylan
with a voice like sand and glue"
<br>
<br>
Glad you found it (if you had)
<br>
<br>
N
<br>
<blockquote type="cite">Are you talking about John B Murphy or Frank
Zimmerman ?
<br>
<br>
I think I have found the problem. It uses two callbacks from the
crpe.ddl back to TCrpe component (to local nested procedures in each
case).
<br>
What amazes me is that works at all. It also explains why the app dies
even when it is idle and finished doing the report many seconds ago.
It is fiddling with data on the heap thats long gone.. and what about
the stack frame ? Yeach !!
<br>
<br>
We have just tried V11. Luckiliy the VCL changes are minor and the
reports are working. Still have to look at its source and test the
crash cases.
<br>
<br>
Neven MacEwan wrote:
<br>
<blockquote type="cite">Rohit
<br>
<br>
I think the crpe.dll was only written to be used by one app crpe.exe
and is very sequence fragile,
<br>
I know the guy that wrote the VCL for it had all sorts of problems, I'd
make sure you don't try to get it to do to many
<br>
things at the same time on the same instance
<br>
<br>
HTH
<br>
<br>
Neven
<br>
<br>
<blockquote type="cite">Robert,
<br>
<br>
all this can not be correct. How can a DLL be written that will not
work with more than one app at a time ? Especially when there are no
common resources or files to use. The data space is mapped to the app
that is using the dll.
<br>
<br>
I have also discovered that the memory gets trashed asynchronously of
report access. You can leave the app there and 10-30 seconds later it
will suddenly complain with rubbish errors or just disappear. This is
when no one has even touched the keyboard in that time.
<br>
<br>
<br>
Robert martin wrote:
<br>
<blockquote type="cite">Hi
<br>
<br>
Yes. But what bugs will they have introduced in the process?
<br>
<br>
Don't know if two would work. I would guess yes.
<br>
<br>
Rob Martin
<br>
Software Engineer
<br>
<br>
phone +64 03 377 0495
<br>
fax +64 03 377 0496
<br>
web <a class="moz-txt-link-abbreviated" href="http://www.chreos.com">www.chreos.com</a>
<br>
<br>
Wild Software Ltd
<br>
<br>
<br>
<br>
Rohit Gupta wrote:
<br>
<blockquote type="cite">I see that BO are saying the the crpe
is now threadsafe in v11. Do I believe them ?
<br>
<br>
Question - do you know if it two crpe components are allowed in the
same app ? We use one to interrogate the report for formulas etc and
the other is bound to a form for running the report.
<br>
<br>
Robert martin wrote:
<br>
<blockquote type="cite">Hi Rohit
<br>
<br>
It has been some time since I used the Crpe method of accessing Crystal
but my understanding is it is not Thread safe and therefore if you use
it in threads or try running multiple copies of reports it can go
bang. This may be what you are experiencing.
<br>
<br>
In the end w gave up on Crpe and now use the Com object to run them.
This works better but comes with other issues. I think it is the
better access method though.
<br>
<br>
Not a log of help i'm afraid :)
<br>
<br>
Rob Martin
<br>
Software Engineer
<br>
<br>
phone +64 03 377 0495
<br>
fax +64 03 377 0496
<br>
web <a class="moz-txt-link-abbreviated" href="http://www.chreos.com">www.chreos.com</a>
<br>
<br>
Wild Software Ltd
<br>
<br>
<br>
<br>
Rohit Gupta wrote:
<br>
<blockquote type="cite">In our real app, the program
crashes randomly (regularly for some users) at the instance that Crpe
is used. The app basically disappears which implies that substantial
code and/or stack is corrupted.
<br>
<br>
In a smaller app that only opens the report to get some stats (it does
not connect to the database), I can get it to crash in the same fashion
predictably.
<br>
<br>
The sequence of events is open two copies of the app )or one copy of
the app and the CRW designer)
<br>
Open any report in the first app (which always assignes ReportName to
blank and does not destroy the crpe component
<br>
Open any report in the second app or CRW Designer
<br>
Open any report in the first app and its gone with no trace.
<br>
<br>
In real life the users can not run multiple copies, the app takes care
of that. However the symptoms are identical leading me to believe that
if I can find the cause of the second crash, I can fix the first one.
<br>
<br>
Any clues anyone ?
<br>
I cant find anything pertinent on google, except for one item where the
author insists that the problem is a secret com object that crpe
launches and if you wait for it to finish and terminate then there are
no crashes. However, delays dont have any effect on my test case.
<br>
<br>
In the debugger, if I keep doing F7, everything keeps working. But as
soon as I press F8 or F9, it gets an AV because it starts executing in
hyperspace.
<br>
<br>
_______________________________________________
<br>
Delphi mailing list
<br>
<a class="moz-txt-link-abbreviated" href="mailto:Delphi@ns3.123.net.nz">Delphi@ns3.123.net.nz</a>
<br>
<a class="moz-txt-link-freetext" href="http://ns3.123.co.nz/mailman/listinfo/delphi">http://ns3.123.co.nz/mailman/listinfo/delphi</a>
<br>
<br>
</blockquote>
_______________________________________________
<br>
Delphi mailing list
<br>
<a class="moz-txt-link-abbreviated" href="mailto:Delphi@ns3.123.net.nz">Delphi@ns3.123.net.nz</a>
<br>
<a class="moz-txt-link-freetext" href="http://ns3.123.co.nz/mailman/listinfo/delphi">http://ns3.123.co.nz/mailman/listinfo/delphi</a>
<br>
<br>
<br>
</blockquote>
<br>
_______________________________________________
<br>
Delphi mailing list
<br>
<a class="moz-txt-link-abbreviated" href="mailto:Delphi@ns3.123.net.nz">Delphi@ns3.123.net.nz</a>
<br>
<a class="moz-txt-link-freetext" href="http://ns3.123.co.nz/mailman/listinfo/delphi">http://ns3.123.co.nz/mailman/listinfo/delphi</a>
<br>
<br>
</blockquote>
_______________________________________________
<br>
Delphi mailing list
<br>
<a class="moz-txt-link-abbreviated" href="mailto:Delphi@ns3.123.net.nz">Delphi@ns3.123.net.nz</a>
<br>
<a class="moz-txt-link-freetext" href="http://ns3.123.co.nz/mailman/listinfo/delphi">http://ns3.123.co.nz/mailman/listinfo/delphi</a>
<br>
<br>
<br>
<br>
</blockquote>
<br>
-- <br>
*Rohit Gupta*
<br>
* B.E. Elec. M.E. Mem IEEE Associate IEE*
<br>
*Technical Manager*
<br>
*Computer Fanatics Limited*
<br>
** *Tel* +64 9 4892280
<br>
*Fax* +64 9 4892290
<br>
*Email *rohit@cfl.co.nz <a class="moz-txt-link-rfc2396E" href="mailto:rohit@cfl.co.nz"><mailto:rohit@cfl.co.nz></a>**
<br>
*Web *www.cfl.co.nz <a class="moz-txt-link-rfc2396E" href="http://www.cfl.co.nz/"><http://www.cfl.co.nz/></a>
<br>
<br>
------------------------------------------------------------------------
<br>
This email and any attachments contain information, which is
confidential and may be subject to legal privilege and copyright. If
you are not the intended recipient, you must not use, distribute or
copy this email or attachments. If you have received this in error,
please notify us immediately by return email and then delete this email
and any attachments.
<br>
------------------------------------------------------------------------
<br>
<br>
_______________________________________________
<br>
Delphi mailing list
<br>
<a class="moz-txt-link-abbreviated" href="mailto:Delphi@ns3.123.net.nz">Delphi@ns3.123.net.nz</a>
<br>
<a class="moz-txt-link-freetext" href="http://ns3.123.co.nz/mailman/listinfo/delphi">http://ns3.123.co.nz/mailman/listinfo/delphi</a>
<br>
</blockquote>
<br>
_______________________________________________
<br>
Delphi mailing list
<br>
<a class="moz-txt-link-abbreviated" href="mailto:Delphi@ns3.123.net.nz">Delphi@ns3.123.net.nz</a>
<br>
<a class="moz-txt-link-freetext" href="http://ns3.123.co.nz/mailman/listinfo/delphi">http://ns3.123.co.nz/mailman/listinfo/delphi</a>
<br>
<br>
<br>
<br>
</blockquote>
<br>
-- <br>
*Rohit Gupta*
<br>
* B.E. Elec. M.E. Mem IEEE Associate IEE*
<br>
*Technical Manager*
<br>
*Computer Fanatics Limited*
<br>
** *Tel* +64 9 4892280
<br>
*Fax* +64 9 4892290
<br>
*Email *rohit@cfl.co.nz <a class="moz-txt-link-rfc2396E" href="mailto:rohit@cfl.co.nz"><mailto:rohit@cfl.co.nz></a>**
<br>
*Web *www.cfl.co.nz <a class="moz-txt-link-rfc2396E" href="http://www.cfl.co.nz/"><http://www.cfl.co.nz/></a>
<br>
<br>
------------------------------------------------------------------------
<br>
This email and any attachments contain information, which is
confidential and may be subject to legal privilege and copyright. If
you are not the intended recipient, you must not use, distribute or
copy this email or attachments. If you have received this in error,
please notify us immediately by return email and then delete this email
and any attachments.
<br>
------------------------------------------------------------------------
<br>
<br>
_______________________________________________
<br>
Delphi mailing list
<br>
<a class="moz-txt-link-abbreviated" href="mailto:Delphi@ns3.123.net.nz">Delphi@ns3.123.net.nz</a>
<br>
<a class="moz-txt-link-freetext" href="http://ns3.123.co.nz/mailman/listinfo/delphi">http://ns3.123.co.nz/mailman/listinfo/delphi</a>
<br>
</blockquote>
<br>
_______________________________________________
<br>
Delphi mailing list
<br>
<a class="moz-txt-link-abbreviated" href="mailto:Delphi@ns3.123.net.nz">Delphi@ns3.123.net.nz</a>
<br>
<a class="moz-txt-link-freetext" href="http://ns3.123.co.nz/mailman/listinfo/delphi">http://ns3.123.co.nz/mailman/listinfo/delphi</a>
<br>
<br>
<br>
<br>
</blockquote>
<br>
<div class="moz-signature">-- <br>
<title>Signature</title>
<meta http-equiv="Content-Type" content="text/html; ">
<meta content="MSHTML 6.00.2900.2802" name="GENERATOR">
<div align="left">
<div align="left"><strong><font size="2"><font color="#666666"
face="Verdana">Rohit Gupta</font></font></strong></div>
<div align="left"><strong><font size="2"><font color="#666666"
face="Verdana">
B.E. Elec. M.E. Mem IEEE
Associate IEE</font></font></strong></div>
<div align="left"><strong><font size="2"><font color="#666666"
face="Verdana">Technical Manager</font></font></strong></div>
<div align="left"><strong><font color="#666666" face="Verdana" size="2">Computer
Fanatics Limited</font></strong></div>
<div align="left"><strong></strong> </div>
<div align="left"><font color="#666666" face="Verdana" size="2"><strong>Tel</strong>
+64 9 4892280</font></div>
<div align="left"><font color="#666666" face="Verdana" size="2"><strong>Fax</strong>
+64 9 4892290</font></div>
<div align="left"><font color="#666666"><font face="Verdana" size="2"><strong>Email
</strong></font><a href="mailto:rohit@cfl.co.nz"><font color="#0080ff"
face="Verdana" size="2">rohit@cfl.co.nz</font></a></font><font
color="#666666"><font face="Verdana" size="2"><strong></strong></font></font></div>
<div align="left"><font color="#666666"><font face="Verdana" size="2"><strong>Web
</strong></font><a href="http://www.cfl.co.nz/"><font color="#0080ff"
face="Verdana" size="2">www.cfl.co.nz</font></a></font></div>
<div> </div>
<div>
<hr></div>
<div align="left"><span
style="font-size: 7.5pt; color: rgb(153, 153, 153); font-family: Verdana;"><font
size="1"><span style="font-size: 10pt; font-family: 'Courier New';"
lang="EN-NZ"><font color="#000000"><font color="#808080" face="Verdana"
size="1">This email and any attachments contain information, which is
confidential and may be subject to legal privilege and copyright. If
you are not the intended recipient, you must not use, distribute or
copy this email or attachments. If you have received this in error,
please notify us immediately by return email and then delete this email
and any attachments.</font> <o:p></o:p></font></span></font></span></div>
</div>
</div>
</body>
</html>