Indagroove Posted February 22, 2004 Report Posted February 22, 2004 I have just one question for you VB gurus out there. I have a form with a timer on it. The timer sub reads info from FSUIPC when enabled. Simple enough right. Well it works great when I run it from inside visual studio. But when I compile and install, once that timer is enabled the whole program dissapears. No errors, no nothing. Everything else works fine, but once the timer is enabled to read info from FSUIPC it just quits. It doesnt do it in Visual Studio though, weird. Im confused. Any Ideas? Need More Info? Thanks Michael Smith Zion Virtual Airlines Chief Operations Officer
rickalty Posted February 22, 2004 Report Posted February 22, 2004 I had the same problem with an app not long ago. It would run from the IDE but wouldn't run compiled. Since it doesn't happen from the IDE you can't use the debug either. What I ended u having to do was but a message box in after everything it did so as to see where it was crashing. Richard
Highvolt Posted February 22, 2004 Report Posted February 22, 2004 did you try the timer alone, without the fsuipc connection ? if it only happens with fsuipc in it, try to see the fsuipc 'log' files.. Kind Regards, Wim
Craig Phillips Posted March 13, 2004 Report Posted March 13, 2004 How would you write to FSUIPC in VB? Ive been trying to set the pause function for ages. Could you send me an example? Craig
Pete Dowson Posted March 13, 2004 Report Posted March 13, 2004 Ive been trying to set the pause function for ages. Could you send me an example? I don't know VB, but if you can read the Pause indicator at offset 0264 then just preset the variable you are reading into to 1 (pause) or 0 (not pause), change the "Read" to a "Write" and the offset from 0264 to 0262 to address the pause control. [sorry, in previous edition of this message I had 0262 and 0264 reversed] There's no magic here, reading and writing numerical values is really identical excepting of course wuth writing you set the value beforehand, with writing you access the value after. The actual read or write takes place on the "Process" call. Play with FSInterrogate to understand how the offsets work. Pete
jd Posted March 14, 2004 Report Posted March 14, 2004 here are two functions, one to read the pause state, the other to set it Public Function pause() As Boolean ' 0 if not, 1 if retractable Dim x As Integer Dim dwResult As Long Call FSUIPC_Read(&H264, 2, VarPtr(x), dwResult) 'updated 12/12/2002 per peter dowson Call FSUIPC_Process(dwResult) If x = 1 Then pause = True Else pause = False End If End Function Public Function set_pause(pause As Boolean) As Boolean Dim x As Integer Dim dwResult As Long If pause Then x = 1 Else x = 0 End If Call FSUIPC_Write(&H262, 2, VarPtr(x), dwResult) Call FSUIPC_Process(dwResult) End Function
Raymond van Laake Posted March 15, 2004 Report Posted March 15, 2004 I've been writing VB-FSUIPC applications for quite some years now without any unsolvable problems. I must add that I don't use timers though. Maybe if you would send me an example program of yours that "disappears" in compiled mode I can try & figure out what happens. Raymond r.vanlaake@chello.nl
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now