Dan Gregory wrote:

I can compile ok, but the test cores on b14(actually running in the debugger can get it to run correctly) when the view is accessed via GetAs(). �This tries to invoke ~c4_string and when it dereferences p, it cores. �If are having this problem then you can replace this > method:

const char* c4_HandlerSeq::Description()
{
� return _field != 0 ? UseTempBuffer(Definition().DescribeSubFields()) : 0;
}

with this one:

const char* c4_HandlerSeq::Description()
{
� const char* returnPtr = (_field != 0) ? UseTempBuffer(Definition().DescribeSubFields()) : 0;

� return returnPtr;
}

I think the problem lies somewhere with the destruction of temporary variables. �The temporary c4_String variable returned from DescribeSubFields get descructed before Definition() or DescribeSubFields() gets called. �It seems totally hosed... �I am in the process of discussing this with sun to see if it's a bug or not.
I've made changes in the source - better safe than sorry.  In CVS now.

Thanks.

-jcw

_______________________________________________
metakit mailing list  -  [EMAIL PROTECTED]
http://www.equi4.com/mailman/listinfo/metakit

Reply via email to