Title: Microsoft Visual C++ Debug Library
Body:DEbug Assertion Failed!
Program C:\MY_PROJ\CASH97\DEBUG\CASH97.EXE
File: dlgdata.cpp
Line: 290
For infomation on how your program can cause an assertion failure, see
the Visual C++ documentation on asserts.
(Press Retry to debug the application)
[Abort] [Retry] [Ignore]
When I press retry Windows95 crushed " this program has performed an
illegal operation and will shutdown" and my application closed and
ended.
When use "Win32 Release" rather than "Win32 Debug" in BUILD/SET ACTIVE
CONFIGATION.
No this problem
my computer is P133 with 16m RAM and 1.2G hard disk(enough free hard
disk) VC is the only task running
Is that some DLL files damaged? or no enough RAM? This program is only
a test of using FTP to GET and PUT files. Very easy one.
Please E-mail me as well
Herbert
her...@ascom.com.sg
Herbert,
It may help if you tell us what is actually being asserted at line 290 in
dlgdata.cpp.
cU
--
Dirk Djuga mailto:di...@solaris.stuttgart.netsurf.de
http://www.geocities.com/TimesSquare/1658/
I set member variables just after InitDialog(). That is:
BOOL ftp:OnInitDialog()
{
CDialog::OnInitDialog()
//TO DO
m_FTP_Get = 0;
m_FTP_Put = -1;
UpdateData( FALSE );
return TRUE;
}
Please E-Mail me as well.
Herbert yuh...@letterbox.com
|^^^^^^^^^^^^^^^^^|^^^^^^^^^^^^^^^^^^^^^^^|^^^^^^^^^^^^^^^^^^^^^^^|
| /_/ \/ | Herbert Yu | :-) Smile, Try it and |
| / / erbert / u | yuh...@letterbox.com | You will get it |
|_________________|_______________________|_______________________|
How can I make these two radio buttons as one group?
By the way, I initialize my variable just after a call to
CDialog::OnInitDialog();
and then UpdateData( FALSE );
Please E-mail me as well
--
It looks like you have a problem with a dialog !?
Anyway, hope this helped.
--
Daniel Zuppinger
(Anti spam : remove the X'es and underline from my email address)
http://www.softtoys.com
Herbert <yuh...@letterbox.com> wrote in article
<34b203ac....@news.pacific.net.sg>...
> I am using VC Version 5.0 Enterprise version for almost half a month
> in this PC. When I run my application generated by VC5.0 It says :
>
> Title: Microsoft Visual C++ Debug Library
> Body:DEbug Assertion Failed!
> Program C:\MY_PROJ\CASH97\DEBUG\CASH97.EXE
> File: dlgdata.cpp
> Line: 290
>
> For infomation on how your program can cause an assertion failure, see
> the Visual C++ documentation on asserts.
> (Press Retry to debug the application)
> [Abort] [Retry] [Ignore]
>
> When I press retry Windows95 crushed " this program has performed an
> illegal operation and will shutdown" and my application closed and
> ended.
>
> When use "Win32 Release" rather than "Win32 Debug" in BUILD/SET ACTIVE
> CONFIGATION.
> No this problem
>
> my computer is P133 with 16m RAM and 1.2G hard disk(enough free hard
> disk) VC is the only task running
>
> Is that some DLL files damaged? or no enough RAM? This program is only
> a test of using FTP to GET and PUT files. Very easy one.
>
> Please E-mail me as well
>
> Herbert
> her...@ascom.com.sg
>
>
>It do with radio buttons.
>There are two radio buttons in this dialog: PUT ans GET.
>Once upon a time, I checked both radio buttons with group.
>I corrected it after i found this error. And then this error happen.
>I check both radio buttons again. It's OK.
>
>How can I make these two radio buttons as one group?
>
>By the way, I initialize my variable just after a call to
>CDialog::OnInitDialog();
>and then UpdateData( FALSE );
There are 4 things you should check:
1. Press Ctrl-D while in resource editor to see check the order of
controls. All radio buttons should be sequentially ordered.
2. The first radio button should have WS_GROUP attribute set.
3. None of other radion buttons should have WS_GROUP set.
4. The control which follows the last radio button (you can find which
one by clicking Ctrl-D) should have WS_GROUP style set.
Hope this helps.
Vagif Abilov
va...@online.no
It is a problem of ClassWizard, or not a problem, only not smart enough.
>On Wed, 07 Jan 1998 02:49:34 GMT, yuh...@letterbox.com (Herbert) wrote:
>Once upon a time I checked/marked both radio buttons with group.
And I use two variables with these radio buttons, then runed ClassWizard
to generate the class for this Dialog. The ClassWizard generated two lines
in DoDataExchange. After I uncheck PUT radio button's group style,
the ClassWizard is not smart enough to take out that line in DoDataExchange.
When I take it now, OK.
>Line 290 of dlgdata.cpp is
> ASSERT(::GetWindowLong(hWndCtrl, GWL_STYLE) & WS_GROUP);
Without group style, this line always produce zero!
and this line call from (indirectly) DoDataExchange
>So it's good practice to use ASSERTS, specially for pointers.
I will take this advice
>It looks like you have a problem with a dialog !?
Yes, I will work on it. Any suggestion on this topic? What I want is to
create a Dialog without one line in resource file. How do it?
Certainly I want MFC one, not SDK CreateWindowEx to create the controls
in dialog.
Thank all of you.
Herbert yuh...@letterbox.com