"Alberto." wrote:
>
> This code performs a IR connection. The IrOpen, IrBind, and IrDiscoverReq works
>fine, but it fails calling the IrConnectReq. What is wrong?
>
> [...]
> IrUnbind(refNum, &con);
> [...]
You are accessing a global variable from a callback. Are you using
gcc? If this is the case I have forgotten the CALLBACK_PROLOGUE
defines. Note: As you have multiple returns in your callback you
might also need CALLBACK_EPILOGUEs for each of it.
Hope this helps,
Holger Klawitter
--
Holger Klawitter +49 (0)251 484 0637
[EMAIL PROTECTED] http://www.klawitter.de/