Andre Poenitz <[EMAIL PROTECTED]> writes:

| On Wed, Aug 14, 2002 at 11:13:06AM +0200, Lars Gullik Bjønnes wrote:
>> Ok, I found the problem.
>> And I realize now that I have been bitten by this one before.
>> It because of the _terrible_ calling convetions of
>> parseSingleLyXformat2Token... it requires that a "reference to
>> pointer" to be passed.
>
| Fine.
>
| Now I have a puzzle for you. Big bang if something is called using the
| minibuffer.  Maybe my fault of course as I changed the dispatch() stuff.
>
| Anyway:
>
>
| void ControlCommandBuffer::dispatch(string const & str)
| {
|       if (str.empty())
|               return;
|  
|       history_.push_back(str);
|       history_pos_ = history_.end();
|       lyxfunc_.dispatch(str, true);
| }
>
| lyxfunc_ is a zero _reference_!
>
| I wonder how this can happen?

Somehow you lost the real object...

anyhow imho since lyxfunc is stored as a shared_ptr in LyXView it
should never be stored anywere as a reference. it should rather be
stored as a shared_ptr or a weak_ptr.

-- 
        Lgb

Reply via email to