dispatch handler still returns -1

I had a discussion with the operating system team. This is the last
dialog:

I think there is no relationship between the dll and the resource
manager
problem. I’m allmost sure there is something wrong in my resmgr init.

Can you post your code/testcase so that we can all see what you’re
doing?

As I said, I have the same problem, but much more serious, in the
executable I
talked about. In this last application, dispatch_handler() is
continuously
returning -1.
It was declaring several names, I tried to remove all unecessary
source

code to

declare just one name and it’s the same. I’m going to investigate
again

today.

So, it could be helpfull if you could tell me in which circumstances
dispatch_handler() can return -1 without setting errno to an error
value.

If you receive a pulse message for which there is no default handler, or
a
handler was called but the handler did not report the error properly.

I sent my code but I have no answer.

Could you give me some news about my problem?

Thanks,
Alain.

It seems their is corruption/or an init problem in the ctp you’re passing to
dispatch_handler. Many of the fields in the sturcture have either 0 or
0xffff/max values before passing them to dispatch_handler(). It might be
worthwhile to widdle down your application down to a test case of a smaller
size that reproduces the problem. As you progress to shrink your program
you may find where the source of corruption might be.


Cheers,
Adam

QNX Software Systems Ltd.
[ amallory@qnx.com ]

With a PC, I always felt limited by the software available.
On Unix, I am limited only by my knowledge.
–Peter J. Schoenster <pschon@baste.magibox.net>

“Alain Bonnefoy” <alain.bonnefoy@icbt.com> wrote in message
news:3C395C61.E4BBC3A3@icbt.com

I had a discussion with the operating system team. This is the last
dialog:

I think there is no relationship between the dll and the resource
manager
problem. I’m allmost sure there is something wrong in my resmgr init.

Can you post your code/testcase so that we can all see what you’re
doing?

As I said, I have the same problem, but much more serious, in the
executable I
talked about. In this last application, dispatch_handler() is
continuously
returning -1.
It was declaring several names, I tried to remove all unecessary
source
code to
declare just one name and it’s the same. I’m going to investigate
again
today.
So, it could be helpfull if you could tell me in which circumstances
dispatch_handler() can return -1 without setting errno to an error
value.

If you receive a pulse message for which there is no default handler, or
a
handler was called but the handler did not report the error properly.

I sent my code but I have no answer.

Could you give me some news about my problem?

Thanks,
Alain.

Adam Mallory a écrit :

It seems their is corruption/or an init problem in the ctp you’re passing to
dispatch_handler. Many of the fields in the sturcture have either 0 or
0xffff/max values before passing them to dispatch_handler(). It might be
worthwhile to widdle down your application down to a test case of a smaller
size that reproduces the problem. As you progress to shrink your program
you may find where the source of corruption might be.


Cheers,
Adam

QNX Software Systems Ltd.
[ > amallory@qnx.com > ]

With a PC, I always felt limited by the software available.
On Unix, I am limited only by my knowledge.
–Peter J. Schoenster <> pschon@baste.magibox.net

“Alain Bonnefoy” <> alain.bonnefoy@icbt.com> > wrote in message
news:> 3C395C61.E4BBC3A3@icbt.com> …
I had a discussion with the operating system team. This is the last
dialog:

I think there is no relationship between the dll and the resource
manager
problem. I’m allmost sure there is something wrong in my resmgr init.

Can you post your code/testcase so that we can all see what you’re
doing?

As I said, I have the same problem, but much more serious, in the
executable I
talked about. In this last application, dispatch_handler() is
continuously
returning -1.
It was declaring several names, I tried to remove all unecessary
source
code to
declare just one name and it’s the same. I’m going to investigate
again
today.
So, it could be helpfull if you could tell me in which circumstances
dispatch_handler() can return -1 without setting errno to an error
value.

If you receive a pulse message for which there is no default handler, or
a
handler was called but the handler did not report the error properly.

I sent my code but I have no answer.

Could you give me some news about my problem?

Thanks,
Alain.

Ok, I will try!

Thanks,
Alain.