Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Assertion Failure

53 views
Skip to first unread message

OCF

unread,
Aug 11, 2009, 4:53:08 PM8/11/09
to
I delete some controls from an object and now when ever i
save or regen the object I get this message:


"Assertion Failure"
"Invalid type in cm_intrinsic_len, file cmintrin.cpp, line
1679 Abort, Debug Break, Ignore?"

I'm able to hit ignore three times and continue working as
normal but I cant figure out how to make this stop. I've
exported the object and optimized and re-imported and still
get the same error. I'm using PB11.5.

Does anyone know how to stop this problem?

OCF

unread,
Aug 11, 2009, 5:42:45 PM8/11/09
to
I was able to solve this problem. I had a line:

If len( dw_1.object.data[1] ) > 0 Then ...

When changed to

If len( String( dw_1.object.data[1] ) ) > 0 Then ...

everything worked again

Jerry Siegel [TeamSybase]

unread,
Aug 11, 2009, 6:20:36 PM8/11/09
to
Dot notation always returns an Any. As you have seen, functions sometimes
choke on casting the Any to the appropriate type. Dot notation also creates
a DWObject, which must later be destroyed by garbage collection. That's why
it's more efficient to use the GetItemXXX functions for single data items
even though dot notation looks "cleaner".

--
Report Bugs: http://case-express.sybase.com/cx/welcome.do
Product Enhancement Requests:
http://my.isug.com/cgi-bin/1/c/submit_enhancement


<OCF> wrote in message news:4a81e5d5.797...@sybase.com...

Jeremy Lakeman

unread,
Aug 11, 2009, 8:40:38 PM8/11/09
to

There are 2 len functions; len(string) and len(blob). The compiler
can't pick which one to call since you're passing in an any variable.

But you should get a compiler error, not an assertion failure.

0 new messages