That's strange, I've accidently let an AllocConsole() in the unit of a registered component...now XE8 print out this sentence sometime in the console :

That's strange, I've accidently let an AllocConsole() in the unit of a registered component...now XE8 print out this sentence sometime in the console  :
64 application-defined exception (code 0x%08x) at 0x%08x

Comments

  1. XE8 or it only started for XE8U1 ?

    ReplyDelete
  2. This seems a little unclear. You have a designtime package that calls AllocConsole. And that results in the IDE throwing that error? Is that correct? Why are you calling AllocConsole?

    ReplyDelete
  3. for debug purpose I like to print out information in a console

    {$IFDEF LOG}
      AllocConsole;
      WriteLn('debug message');
    {$ENDIF}

    I've let this in a registered component, so when I open a project that use my component, a console is displayed at design time. and Delphi himself seems to print out this information.

    ReplyDelete
  4. OutputDebugString would generally be the way to do this

    ReplyDelete
  5. David Heffernan not realy the purpose of my post anyway ;)

    ReplyDelete
  6. I'm still not really clear on what the purpose is though. I tried to get clarification, but you seemed to have missed that. Never mind.

    ReplyDelete

Post a Comment