Thread: Dialog opens properly in winxp, but Freezes in win98se

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User
    Join Date
    Mar 2004
    Posts
    114

    Dialog opens properly in winxp, but Freezes in win98se

    "MyDlg" is a dialog class derived from CDialog
    "pg_price" is a derived CPropertyPage

    on pressing a button pg_price(derived from CPropertyPage), domodal is called
    Code:
    void pg_price::OnBUTTON() 
    {
    	MyDlg MyDlg_obj;
    	MyDlg_obj.DoModal();
    }

    OnInitDialog of MyDlg (derived from CDialog):
    Code:
    BOOL MyDlg::OnInitDialog() 
    {
    	CDialog::OnInitDialog();
    	return TRUE;  // return TRUE unless you set the focus to a control
    	              // EXCEPTION: OCX Property Pages should return FALSE
    }
    now, the problem is that on winxp there isnt any problem. MyDlg_obj.DoModal(); displays the resource of MyDlg

    but on win98se, the whole application hangs and become non-responsive upon clicking the button
    MyDlg never appeared

    so i ran a debugger and found out that the application has no problem running up to "BOOL MyDlg::OnInitDialog()" and returns it without any problem. I hit "f5" again and the application hangs. no assert/buffer overflow problems error messages were given, the whole application simply hangs there. i believe that's because the user interface thread got into something it cant get out of

    doing a "step over" on the debugger in win98se i got the following
    http://img182.imageshack.us/img182/7687/step4em.gif

    doing a "step over on debugger in winxp
    http://img34.imageshack.us/img34/9697/winxp0ok.jpg


    i really got no idea how this happened
    how is it possible that this app works well on winxp but not win98se?
    i need that application on win98se platform

    using vc++6.0 SP6
    win98se/winxp

    please assist
    Last edited by hanhao; 07-09-2005 at 11:16 PM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 9
    Last Post: 02-13-2008, 02:59 PM
  2. make Child Dialog not Popup?
    By Zeusbwr in forum Windows Programming
    Replies: 5
    Last Post: 04-08-2005, 02:42 PM
  3. Getting the position of a dialog without parent on the screen
    By stormbringer in forum Windows Programming
    Replies: 1
    Last Post: 08-27-2003, 02:59 AM
  4. Dialog box height/width differs in winXP
    By LuckY in forum Windows Programming
    Replies: 7
    Last Post: 05-04-2003, 03:13 PM
  5. Tab Controls - API
    By -KEN- in forum Windows Programming
    Replies: 7
    Last Post: 06-02-2002, 09:44 AM