App fails when creating/showing Modeless Dialog 
Author Message
 App fails when creating/showing Modeless Dialog

Hi

I have an SDI in VC++ 5.0 into which I have recently introduced a modeless
dialog. This dialog includes an SSTab control, an MSFlexgrid Control, a
Slider Control, and several other Edit and Combo controls. I think I have
included and registered all of the necessary libraries (.ocx files and .dll
files). I have one user who has attempted to install the app and execute it.
During the initialization it gives her the following 'Debug Assertion
Failed' message:

occsite.cpp
line 652

If she presses 'ignore' the app finishes initializing and seems to work ok,
until she attempts to show the modeless dialog, at which point she receives
another 'Debug Assertion failed' message with the following:

wincore.cpp
line 3130.

The odd thing is that this app works fine on 2 other stations where I have
installed it/developed it, so it points to a distributed component of the
app, most specifically MFC (I think).

Is there anyone out there who can provide some helpful hints??

Cheers & TIA

Charlie




Sat, 22 Sep 2001 03:00:00 GMT  
 App fails when creating/showing Modeless Dialog
it sounds as if one of the controls may not have registered itself correctly

Have you ever stopped to think and forget to start again?
(This is not a cut down on anyone ... I just thought it was a funny line)



Sat, 22 Sep 2001 03:00:00 GMT  
 App fails when creating/showing Modeless Dialog

It sounds like you are distributing a debug build.  Not all ASSERT()
failures mean that there is something critically wrong.  If your user says
ignore to the runtime ASSERT does the application crash?

If not, you can solve the problem by simply changing the Build...Set Active
Configuration to release from the DevStudio menu.  The release build should
also have a smaller footprint and run faster.

If her system hangs, well...  You could  install the MFC souce code (an
installation option) and look at line 3130 of wincore.cpp.   And see what it
is ASSERTing on.   Ditto for oocsite.cpp line 652.

Quote:

>Hi

>I have an SDI in VC++ 5.0 into which I have recently introduced a modeless
>dialog. This dialog includes an SSTab control, an MSFlexgrid Control, a
>Slider Control, and several other Edit and Combo controls. I think I have
>included and registered all of the necessary libraries (.ocx files and .dll
>files). I have one user who has attempted to install the app and execute
it.
>During the initialization it gives her the following 'Debug Assertion
>Failed' message:

>occsite.cpp
>line 652

>If she presses 'ignore' the app finishes initializing and seems to work ok,
>until she attempts to show the modeless dialog, at which point she receives
>another 'Debug Assertion failed' message with the following:

>wincore.cpp
>line 3130.

>The odd thing is that this app works fine on 2 other stations where I have
>installed it/developed it, so it points to a distributed component of the
>app, most specifically MFC (I think).

>Is there anyone out there who can provide some helpful hints??

>Cheers & TIA

>Charlie





Sat, 22 Sep 2001 03:00:00 GMT  
 App fails when creating/showing Modeless Dialog
Hi

Thanks for your comments thus far.

I am distributing the Release build. What is peculiar is that I cannot
reproduce this problem on another machine which is similarly configured (NT4
sp3, etc..). Clearly there must be some difference between these 2 machines.

The more likely scenario seems to be that there is some problem with the
controls that I have placed on the dialog itself. These are the following,
along with the file and version that I am distributing in order to supply
the functionality

SSTab Control            tabctl32.ocx        5.01.4319
MSFlexGrid                msflxgrd.ocx       5.01.4319
Slider                          comctl32.ocx        5.01.4319

Besides these, I have a standard combo box, several edit controls, and the
OK and Cancel buttons. Do I appear to be installing the correct controls. Am
I missing something?

TIA

Charlie


Quote:

> It sounds like you are distributing a debug build.  Not all ASSERT()
> failures mean that there is something critically wrong.  If your user says
> ignore to the runtime ASSERT does the application crash?

> If not, you can solve the problem by simply changing the Build...Set
Active
> Configuration to release from the DevStudio menu.  The release build
should
> also have a smaller footprint and run faster.

> If her system hangs, well...  You could  install the MFC souce code (an
> installation option) and look at line 3130 of wincore.cpp.   And see what
it
> is ASSERTing on.   Ditto for oocsite.cpp line 652.


> >Hi

> >I have an SDI in VC++ 5.0 into which I have recently introduced a
modeless
> >dialog. This dialog includes an SSTab control, an MSFlexgrid Control, a
> >Slider Control, and several other Edit and Combo controls. I think I have
> >included and registered all of the necessary libraries (.ocx files and
.dll
> >files). I have one user who has attempted to install the app and execute
> it.
> >During the initialization it gives her the following 'Debug Assertion
> >Failed' message:

> >occsite.cpp
> >line 652

> >If she presses 'ignore' the app finishes initializing and seems to work
ok,
> >until she attempts to show the modeless dialog, at which point she
receives
> >another 'Debug Assertion failed' message with the following:

> >wincore.cpp
> >line 3130.

> >The odd thing is that this app works fine on 2 other stations where I
have
> >installed it/developed it, so it points to a distributed component of the
> >app, most specifically MFC (I think).

> >Is there anyone out there who can provide some helpful hints??

> >Cheers & TIA

> >Charlie





Sat, 22 Sep 2001 03:00:00 GMT  
 App fails when creating/showing Modeless Dialog
Charles -

Quote:

> I am distributing the Release build.

Are you linking MFC statically or shared (DLL).  It may be that some
part of either the application or one of the 3rd party controls may be
using a debug MFC, which could cause problems.

   David
================================
The opinions expressed are personal and may not
reflect UPS opinions.  No animals were hurt in
testing these opinions.



Sun, 23 Sep 2001 03:00:00 GMT  
 
 [ 5 post ] 

 Relevant Pages 

1. App fails when creating/showing Modeless Dialog

2. Assertion failed on creating Modeless dialog

3. Create modeless dialog box in console app

4. Create modeless dialog box in console app

5. Modeless dialog in a dialog-based app

6. dialog based app making modeless dialogs

7. App created with VC6 won't run on NT4 SP3 (failed to create empty document)

8. Overlapping dialog app and modeless dialog

9. Showing taskbar visible dialog from dialog based app

10. Modal vs. Modeless dialog and controls not showing

11. Modeless dialogs in dlls showing help

12. modeless dialog not showing

 

 
Powered by phpBB® Forum Software