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
64 application-defined exception (code 0x%08x) at 0x%08x
XE8 or it only started for XE8U1 ?
ReplyDeleteXE8.0, not upgraded for now ;)
ReplyDeleteThis 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?
ReplyDeletefor debug purpose I like to print out information in a console
ReplyDelete{$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.
OutputDebugString would generally be the way to do this
ReplyDeleteDavid Heffernan not realy the purpose of my post anyway ;)
ReplyDeleteI'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