Posts: 13
Joined: Thu Jun 07, 2007 12:53 pm
Location: United Kingdom

ReadCallBack problem

Thu Jul 16, 2009 12:20 pm

I am using cf3.5 with bluetools for a pocketpc.
I recieve data when connected in readcallback and try to switch the incoming data to different places (textboxes) using a public integer ('recdat')set outside readcallback by a click function (which also calls bwrite)to store the incoming buffer ('str'-also public) by calling functions selected by recdat (if recdat = n then function()).
Is there a problem with setting the incoming data as 'public' and is there a problem calling outside functions from with readcallback or is readcallback similar to a 'background worker' function and does not allow external functions being called?
Previously I opened other forms from Form1 and only recieved data into 1 textbox in each form but this is not really satisfactory.


Posts: 2319
Joined: Mon Jan 09, 2006 2:20 pm
Location: Sweden

RE: ReadCallBack problem

Fri Jul 17, 2009 3:58 pm

Should be okay as long as you make sure that everything is synchronized. You can't modify a GUI-element in any callbacks without synchronization.


Return to “BlueTools”