Menu

#301 Access violation (ListSort)

open
nobody
5
2012-09-26
2004-05-02
No

Address: 004D5D52
Read of Address 04A2C3F4

I use the dev_cpp from
http://www.castlesofpoland.com/devcpp.exe
Date 2004-05-01

(I have ::: typed...)

Stack trace:

0057CB18 (0017BB18): ShowExceptionInfo
(ExceptionsAnalyzer - 540)
0057CBDF (0017BBDF):
TExceptionsAnalyzer.GlobalExceptionHandler
(ExceptionsAnalyzer - 548)
004D5D52 (000D4D52): ListSort (CodeCompletion - 469)
004C0C3D (000BFC3D):
TCppTokenizer.PostProcessToken (CppTokenizer - 630)
004D5D52 (000D4D52): ListSort (CodeCompletion - 469)
004D5D52 (000D4D52): ListSort (CodeCompletion - 469)
004D5D50 (000D4D50): ListSort (CodeCompletion - 468)
004D6011 (000D5011): TCodeCompletion.Search
(CodeCompletion - 530)
00576357 (00175357): TEditor.CompletionTimer (editor -
967)
0057E34E (0017D34E): (devcpp - 194)
0057E36C (0017D36C): (devcpp - 194)

Discussion

  • Colin Laplace

    Colin Laplace - 2004-05-19

    Logged In: YES
    user_id=25510

    Could you please provide a test source file ?

    Colin

     
  • Marek Januszewski

    Logged In: YES
    user_id=609236

    it's here:

    function ListSort(Item1, Item2: Pointer): Integer;
    begin
    // first take into account that parsed statements need to
    be higher
    // in the list than loaded ones
    Result := 0;

    if PStatement(Item1)^._Loaded and not
    PStatement(Item2)^._Loaded then
    Result := 1
    else if not PStatement(Item1)^._Loaded and
    PStatement(Item2)^._Loaded then
    Result := -1;

    // after that, consider string comparison
    if Result = 0 then
    Result :=
    AnsiCompareText(PStatement(Item1)^._ScopelessCmd,
    PStatement(Item2)^._ScopelessCmd);
    end;


    this pointer is probably undefined

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.