Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
132 user(s) are online (95 user(s) are browsing Forums)

Members: 1
Guests: 131

Yodaphone, more...

Headlines

 
  Register To Post  

serial.device problems
Just can't stay away
Just can't stay away


See User information
What is wrong with this code:

http://dl.dropbox.com/u/5482530/Code%20examples/serialtest.c

???

When running it once, it exits fine, nothing happens, but running it a second time in a row makes it go DSI. How on earth can this be??

Go to top
Re: serial.device problems
Just can't stay away
Just can't stay away


See User information
Apparently it is not allowed to CloseDevice twice, when access is shared. Removing on CloseDevice fixed the crash.

Go to top
Re: serial.device problems
Just popping in
Just popping in


See User information
I think the crash is caused by not performing WaitIO() after AbortIO() so the program crashes on CloseDevice() due to the outstanding request.

Go to top
Re: serial.device problems
Just can't stay away
Just can't stay away


See User information
@alfkil
The note in the AbortIO() autodoc indicates that Steady is right. You need to wait for the reply to an AbortIO request too.

Go to top
Re: serial.device problems
Just can't stay away
Just can't stay away


See User information
@xenic + Steady

Nope, that's not it, I just tried. Also note, that it doesn't crash the first time through, only the second time I try to run the program.

It must be, that because I'm using the device in shared mode it needs to only be closed once. If that's the case, it is different from os3 and it should be noted in the autodocs, which it is not.

Go to top

  Register To Post

 




Currently Active Users Viewing This Thread: 1 ( 0 members and 1 Anonymous Users )




Powered by XOOPS 2.0 © 2001-2023 The XOOPS Project