SPONSORS:






User Tag List

Results 1 to 5 of 5
  1. #1
    Junior Member
    Join Date
    Jan 2002
    Location
    Santa Clara, Ca. USA
    Posts
    22
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Recovery System - Pointer is invalid error

    I have been generating a separate results file for many builds of QA Partner/Silk and on installing SilkTest 5.01 this error occurs. I am overriding DefaultTestcaseExit in order to open a textfile and format the results differently. The error occurs in opening the file, first it displays ***Error: Type mismatch - Expecting a string. Then below it shows ***Error: Internal error - Pointer is invalid or heap is corrupt. As I said this code runs fine on prior builds. A copy of the related files is below. I sent a message to Segue, meanwhile, any suggestions? Thanks, -Len

    [ ] //Here is a sample testcase, which is only to exercise the recovery system
    [-] testcase DoNothing ()
    [ ] //Relax
    [ ]
    [ ] //Here is how I override the DefaultTestcaseExit. This file is in my main frame file.
    [-] TestCaseExit (BOOLEAN bException)
    [-] STRING sReportTo = "c:\smokr8d.txt"
    [-] if (bException)
    [ ] ExceptLog ()
    [-] else
    [-] do
    [ ] @"Browser".WaitForReady ()
    [-] except
    [ ]
    [ ] SetBaseState ()
    [ ] // print ([TestCaseRes]bException)
    [ ] HFILE hFile
    [ ] hFile = FileOpen (sReportTo, FM_APPEND)
    [ ] // //FileWriteLine (hFile, "Date {DateStr()}, TestName {GetTestCaseName()}, Result {[TestCaseRes]bException}")
    [ ] FileClose (hFile)
    [ ]
    [ ] //This is the error that is displayed by the system
    [ ] Script r8dtest.t - 2 errors
    [ ] Machine: (local)
    [ ] Started: 10:58:22AM on 20-Oct-1999
    [ ] Elapsed: 0:00:00
    [ ] Passed: 1 test (100%)
    [ ] Failed: 0 tests (0%)
    [ ] Totals: 1 test, 2 errors, 0 warnings
    [ ]
    [ ] Testcase DoNothing - Passed
    [ ] *** Error: Type mismatch -- Expecting a STRING
    [ ] Occurred in TestCaseExit at ccm85fr.inc(553) //This is at the FileOpen and sReportTo is defined in the function as String
    [ ] Called from DoNothing at r8dtest.t(1741)
    [ ] *** Error: Internal error - Pointer is invalid or heap is corrupt
    [ ]
    [ ] //Here is the Partner.ini
    [ ] [Agent]
    [ ] OPT_TRAP_FAULTS=FALSE
    [ ] OPT_VERIFY_APPREADY=TRUE
    [ ] OPT_SHOW_OUT_OF_VIEW=TRUE
    [ ] OPT_SCROLL_INTO_VIEW=TRUE
    [ ] [Runtime]
    [ ] UseFiles=
    [ ] DefaultBrowser=
    [ ] [Extension: pr3240.dll]
    [ ] netscap4.vxx=TRUE
    [ ] [General]
    [ ] HelpFiles=4test.txt, extend\browser.ht
    [ ]
    [ ] [Wizard]
    [ ] AutoInitWizard=FALSE
    [ ]
    [ ] [State]
    [ ] NewFile=4
    [ ] CurrentDirectory=C:\Program Files\Segue\SilkTest
    [ ]

  2. #2
    Junior Member
    Join Date
    Dec 1999
    Location
    Pleasanton, CA
    Posts
    16
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Recovery System - Pointer is invalid error

    This is an old topic but nobody ever answered this question. We recent encountered this same error message (*** Error: Internal error - Pointer is invalid or heap is corrupt) and cannot figure out what's wrong at all. did ljagelsk found the solusion for this problem or anybody else know what is this error message about? Thanks a lot.


    ------------------
    jim.young@documentum.com

  3. #3
    Senior Member
    Join Date
    Jan 2001
    Posts
    750
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Recovery System - Pointer is invalid error

    "Date {DateStr()}, TestName {GetTestCaseName()}, Result {[TestCaseRes]bException}"

    I am not too sure but, is the above line that silk is complaining?

    this [TestCaseRes]bException looks suspicious.

    I think if you replace this part with normal string your code should run fine.

    Maybe this was not meant to be done like that. Same as assigning HFILE to a # yourself. It can be done but the result is unpredictable.

    ------------------


    [This message has been edited by GodKnows (edited 05-16-2001).]

  4. #4
    Member
    Join Date
    Nov 2000
    Location
    Tampa, FL USA
    Posts
    90
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Recovery System - Pointer is invalid error

    Godknows - if you looked more closely at the code, you would see that the line you refer to is 'commented' out.

    ------------------

  5. #5
    Senior Member
    Join Date
    Jan 2001
    Posts
    750
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Recovery System - Pointer is invalid error

    Try #2

    Upgrade to 5.0.3.2!

    I can't see how you can put a function in your testcase(). I tried the same code with the indentation and everything works(put this function as global)

    ------------------

 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

vBulletin Optimisation provided by vB Optimise v2.6.0 Beta 4 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.0.9 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Questions / Answers Form provided by vBAnswers (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
vBNominatevBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Feedback Buttons provided by Advanced Post Thanks / Like (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Username Changing provided by Username Change (Free) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
BetaSoft Inc.
Digital Point modules: Sphinx-based search
All times are GMT -8. The time now is 12:26 PM.

Copyright BetaSoft Inc.