Re: Pointer to function gives illegal operation (MSC6)

From: Mike Wahler (mkwahler_at_mkwahler.net)
Date: 03/16/04


Date: Tue, 16 Mar 2004 19:43:48 GMT


"Rob Mitchell" <dwntrdr@bigfoot.com> wrote in message
news:e7319688.0403161015.6bf9706d@posting.google.com...
> Mike;
>
> That would be a good idea except that: there's apparently pointer
> conversion going on, if I reduce the code size, most likely it will
> never duplicate.

Reduce it incrmentally, by a small amount, testing it each time.
Re: your "most likely" remark: IMO it's not a good idea to try
such 'second guessing' when debugging. *Test*, and *prove* things.

> It appears that in the second code segment, it
> thinks the pointer to function is "far" when it is actually "near".

We can't help with that here, since C has no concept of
'near' or 'far'. If that does turn out to be an issue,
you'll need to consult support resources for your implementation
and/or platform.

> I
> was hoping mostly that someone had come across the same problem and
> thus recognized it right away and give pointers on how to resolve it.

We only do ISO standard C here, sorry. If you post a complete,
compilable program, using only standard constructs, we can
tell you whether it *should* work, according to the language
rules.

BTW please don't top post.

-Mike