I updated My Delphi 10.1 Berlin to update 2 and am now finding that on exiting the IDE I see an invalid pointer operation with no ability to identify what is causing it. Does the IDE maintain a log anywhere? I imagine it is a bpl causing it, but would prefer to track it down without having to progressively enable and disable the various components I am using.

Comments

  1. Attila Kovacs Haha, that is one solution :)

    ReplyDelete
  2. But will have to close it at some point but if you don't open it... :)

    ReplyDelete
  3. Try to install madexcept, it will perhaps gets you a call stack on IDE crash.

    ReplyDelete
  4. I'm on 10.1.2 Enterprise and I don't have the invalid pointer on exit.
    As Stéphane Wierzbicki says, using MadExcept (or Eurekalog) may give you the callstack.

    If you close all projects / files - Martyn Spencer - and open the IDE empty - do you still get the error?

    ReplyDelete
  5. Thanks Stéphane Wierzbicki and Lars Fosdal. I already have Madexcept installed and strangely enough it does not capture the exception. My IDE always opens empty and if I close it immediately it also fails. The problem only started after Update 2, so I imagine it is that I need to rebuild one or more of my components. I rebuilt the obvious ones, but still no joy.

    ReplyDelete
  6. Nicholas Ring That is probably the best solution, assuming I don't need to do any work that is :)

    ReplyDelete
  7. Ok. I reinstalled Madexcept and I am now seeing exactly where the Invalid pointer operation is occuring - TDBXConnectionFactory.DerivedOpen calls TObject.FreeInstance and this causes the issue. I presume that DBXConnectionFactory is a standard Delphi component related to DBX (database express??).

    The problem is, if I disable the relevant controls, the invalid pointer operation appears to occur before the package enabled states have been stored, so when the IDE reopens, the packages are loaded again.

    It used to be possible to disable packages, but this seems to be problematic in Berlin?

    ReplyDelete
  8. OK. When I disable the offending package a whole load of hurt begins. I am going to assume that the update broke something and reinstall. Will no doubt save some time. Thanks to those of you that suggested various ways to handle this. Also, thanks to those who gave me something to smile about :)

    ReplyDelete
  9. Try start the IDE with a fresh register key using "BDS.EXE -rMyNewRegKey". This will disable all non-standard IDE plug-ins. If you get the same problem then its something in the install. If the problem goes away if one of the non-standard plug-ins.

    ReplyDelete
  10. Thanks for the suggestion. It was one of the standard bpls that was causing the issue. A re-install fixed it, as you would expect. I will certainly try your suggestion next time.

    ReplyDelete

Post a Comment