|
아래와 같이 하면 에러가 하나 발생하는데.... 디버깅 할때 "Stack overflow"가 발생 하는데... 처음엔
무시하고 넘어갓는데..... 지금 다시 해보니... 컴파일이 안돼고 에러 메세지가 뜨네여....
메세지 창에 메세지는 아래와 같습니다.
-> Project abc.exe raised exception class EStackOverflow with message "Stack overflow". Process
Stoed Use Step or Run to continue
어디가 잘못되서 이런 메세지가 발생 한건가여?? 답변 부탁드립니다.
:
<<abc.h >>
: void __fastcall WMEndSession(Messages::TMessage &Msg); //스택 오버 플러우라는 에러 발생
: BEGIN_MESSAGE_MAP
: MESSAGE_HANDLER(WM_ENDSESSION,TMessage,WMEndSession);
: END_MESSAGE_MAP(TUSeoulMainForm)
:
<<abc.cpp>>
: void __fastcall TUSeoulMainForm::WMEndSession(TMessage &Msg)
: {
: if(Msg.WParam==true)
: {
: SystemHaltNow=true;
: }
: Msg.Result=0;
: }
: //---------------------------------------------------------------------------
:
: void __fastcall TUSeoulMainForm::FormCloseQuery(TObject *Sender,
: bool &CanClose)
: {
: //Close();
:
: if(ComPort->Connected)
: ComPort->Close();
: if(TrayIcon->Visible)
: TrayIcon->Visible = false; //DestroyComponents();// = False;
: if(ComPortTimer->Enabled)
: ComPortTimer->Enabled = False;
:
: CanClose=SystemHaltNow;
: // Close();
: }
: //---------------------------------------------------------------------------
|