From: Stefan on 3 May 2010 09:44 Hello, since I have installed the SP3, I habe a problem with ReportPro 3.9. The first time I instantiate the rp3Runtime-class is all ok, the second time I get the follwing error message that I have never seen before: Error Code: 1 [Argument Error] Function: COLLECT Description: Bad Ptr The error refers to line in which the instantiation is done. Can anyone help me? Stefan
From: Jamal on 3 May 2010 22:21 Stefan, Can you duplicate this in a small example? If so, show the code. Make sure you are destroying the object after you done with it. oReport:Destroy( ) oReport := NULL_OBJECT Jamal "Stefan" <info(a)sanosoft.com> wrote in message news:ffd85c51-5a6b-414d-932d-a18311118ede(a)e1g2000yqe.googlegroups.com... > Hello, > > since I have installed the SP3, I habe a problem with ReportPro 3.9. > The first time I instantiate the rp3Runtime-class is all ok, the > second time I get the follwing error message that I have never seen > before: > > Error Code: 1 [Argument Error] > Function: COLLECT > Description: Bad Ptr > > The error refers to line in which the instantiation is done. Can > anyone help me? > > Stefan
From: Stefan on 4 May 2010 02:09 Jamal, method ReportCreate(oOwner as Window, cReport as string) as rp3Runtime class BusinessObject local oReport as rp3Runtime oReport := rp3Runtime{oOwner} // in this line comes the error oReport:HyperLabel := HyperLabel{#rp3Runtime,"rp3Runtime",null_string,null_string} if oReport:CreateEmbedding("ReportPro.Runtime") oReport:InitAutoObject() oReport:ParentWindowHandle := long(_cast, oOwner:Handle()) oReport:LoadReport(cReport) ... method ReportClose(oReport as rp3Runtime) as void pascal class BusinessObject if oReport <> null_object oReport:Close() oReport:Destroy( ) oReport := NULL_OBJECT endif return Stefan
From: Stefan on 4 May 2010 04:04 Jamal, I have found that the error occurs only when the External Function Library (EFL) is loading. This dll is also linked with the application, which has always worked before I installed SP3. Stefan
From: Malcolm Gray on 4 May 2010 04:45
On 03/05/2010 14:44, Stefan wrote: > > > Hello, > > since I have installed the SP3, I habe a problem with ReportPro 3.9. > The first time I instantiate the rp3Runtime-class is all ok, the > second time I get the follwing error message that I have never seen > before: > > Error Code: 1 [Argument Error] > Function: COLLECT > Description: Bad Ptr > > The error refers to line in which the instantiation is done. Can > anyone help me? What the message means is that the garbage collector has found corruption. |