|
-
Dec 15th, 2003, 06:50 AM
#1
Thread Starter
Addicted Member
serial objects
i have for serial objects on my application, but all the time that i need to use someone, i have to reinitialize it, because with some time running the app, all the serials get the same properties, anybody knows why is that happening??????
Thank you,
Guilherme Costa
-
Dec 15th, 2003, 07:43 AM
#2
I don't live here any more.
-
Dec 15th, 2003, 07:56 AM
#3
Thread Starter
Addicted Member
VB Code:
private sub test()
init_serial1()
serial1.output = "123 de oliveira 4"
init_serial1()
serial2.output = "567 de oliveira 8"
end sub
private sub init_serial1()
serial1 = new MSCommLib.MSComm
serial1.port = 1
serial1.Baud = 9600
end sub
private sub init_serial2()
serial2 = new MSCommLib.MSComm
serial2.port = 2
serial2.Baud = 19200
end sub
if i dont do the init_serialx, it writes on the wrong serial port, sometime after i start mu app, serial1 and serial2 will be the same object, unless i restart each one, but sometime later the two objects refer to only one.
I don't know if i was to clear, anything just scream!!
Thank you very much,
Guilherme Costa
-
Dec 15th, 2003, 11:13 AM
#4
Thread Starter
Addicted Member
anybody have some tip for me???
this is pissing me off!! I've tried a lot of resources, nothing seems to give me some good result.
I don't know what is wrong with the piece of the system, it just doesn't work like i need it to work!!
Thanks for any help,
Guilherme Costa
-
Dec 15th, 2003, 12:01 PM
#5
VB Code:
private sub test()
init_serial1()
serial1.output = "123 de oliveira 4"
init_serial[b][color=red]2[/color][/b]()
serial2.output = "567 de oliveira 8"
end sub
Hows that?
I don't live here any more.
-
Dec 15th, 2003, 12:04 PM
#6
Relax dude.
It wasn't a serial object as you put it, it was an MSCommControl.
Please try to be more accurate when you post the original question, it helps get a result faster Then you wouldn't get so excited about it. Also try to post code, too.
I don't live here any more.
-
Dec 15th, 2003, 12:51 PM
#7
Thread Starter
Addicted Member
i writed it wrong, it is init_serial2 on that code!!
the problem is MSCommLib????
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|