Discussion:
Lab 1 Error
(too old to reply)
Mark Noble
2005-06-30 14:53:56 UTC
Permalink
Any idea what might be causing this error?

Obviously it's a violated assertion, but I'm having trouble finding the
operation that's causing it in my code.

Later,
Mark
------------



% Mail_Classifier_v1 Outsourcing < mbox-Sep-1984 >! outsourcing.html



===================================================

0: main

1: Get_Classifier_Keywords(Character_IStream&, Set_Of_Text&)

2: operator>>(Character_IStream&, Text&)

3: Text::Get_From(Character_IStream&)

===================================================

Violated assertion at:

File: /class/sce/rcpp-3.4.1/RESOLVE_Foundation/Text/Text.cpp

Line #: 345

Operation: Get_From

Violated assertion is:

Character_IStream content is not empty

===================================================
Paolo Bucci
2005-06-30 15:50:41 UTC
Permalink
The operation causing the violated assertion is the Get_From operation
for text, which you probably invoke in your code by using something like:

ins >> t;

where ins is a Character_IStream and t is a Text object.

And the error is that you are trying to read from an empty stream (i.e.,
you have reached the end of the stream).

Take a look at the error message printed by the violated assertion and you
should now be able to see that all the information above was contained in
the message. (If you have trouble with that, post another message and I
can provide more informnation.)

Cheers,
Paolo
Post by Mark Noble
Any idea what might be causing this error?
Obviously it's a violated assertion, but I'm having trouble finding the
operation that's causing it in my code.
Later,
Mark
------------
% Mail_Classifier_v1 Outsourcing < mbox-Sep-1984 >! outsourcing.html
===================================================
0: main
1: Get_Classifier_Keywords(Character_IStream&, Set_Of_Text&)
2: operator>>(Character_IStream&, Text&)
3: Text::Get_From(Character_IStream&)
===================================================
File: /class/sce/rcpp-3.4.1/RESOLVE_Foundation/Text/Text.cpp
Line #: 345
Operation: Get_From
Character_IStream content is not empty
===================================================
Loading...