Basic4ppc - Windows Mobile Development  

Go Back   Basic4ppc - Windows Mobile Development > Main Category > Questions & Help Needed
Home Register FAQ Members List Search Today's Posts Mark Forums Read

Questions & Help Needed Post any question regarding Basic4ppc.


formEXdesktop.dll and threading.dll


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 08-12-2008, 02:08 PM
Byak@'s Avatar
Senior Member
 
Join Date: Jul 2008
Posts: 122
Send a message via ICQ to Byak@
Unhappy formEXdesktop.dll and threading.dll

if i'm use

formex.new1("main")
formex.run

, threading.firethreadevent doesnot work.
but if im use

main.show

all work right.why?

im use formexdesktop 1.1
Reply With Quote
  #2 (permalink)  
Old 08-12-2008, 05:59 PM
Cableguy's Avatar
Basic4ppc Expert
 
Join Date: Apr 2007
Location: N 41º11'30.30" W 8º39'46.60"
Posts: 1,313
Default

I may be off on this, but if I understand correctly, the RUN method is for forms, created using the new2 method...
for using an already existing form, created in the basic4ppc designer, you need to use the show method from the controlsex lib....
But then again, I may be a bit of...

NeverTheLess, do remember that Agraham states in is overview of the threading dll, that you should not use threading while interacting with screen objects like controls...
__________________
Paulo Gomes
Porto, Portugal

PC: Dual-Core 1,8Ghz, 2GB RAM, 80GB HD
PPC: Qtek9000, 1GB SD

DLL Version Listing
Reply With Quote
  #3 (permalink)  
Old 08-12-2008, 06:36 PM
Byak@'s Avatar
Senior Member
 
Join Date: Jul 2008
Posts: 122
Send a message via ICQ to Byak@
Default

thread doesn't use controls, i'm know it.

no,run metod used in new1 and new2 metods.
i'm use new1 metod.

with and without formex thread work but with formex doesnot work threading.firethreadevent metod.

help!
Reply With Quote
  #4 (permalink)  
Old 08-12-2008, 07:08 PM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 1,687
Awards Showcase
Beta Tester Forum Contributer 
Total Awards: 2
Default

Quote:
Originally Posted by Byak@ View Post
threading.firethreadevent does not work.
You are correct, neither does the firedebugevent work.

The thread is in fact running fine but B4ppc is not processing the events. B4ppc events run on the thread of the the main GUI form so that they can safely manipulate GUI controls. To safely process events the B4ppc code needs to know the Form that owns the GUI. Unfortunately I cannot at the moment tell the B4ppc code that a FormEx is that form as the .NET typing system won't allow it. This is because the B4ppc code expects a form that is higher in the inheritance chain than the normal Form that a FormEx uses. You are allowed to assign down the chain but not up so I cannot assign a FormEx as the main form and so get cross-thread events to work.

There is at least one way to arrange for this necessary cross thread marshalling but I need to think about it to get the most elegant and consistent solution.
Reply With Quote
  #5 (permalink)  
Old 08-13-2008, 02:29 PM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 1,687
Awards Showcase
Beta Tester Forum Contributer 
Total Awards: 2
Default

Version 1.5 of FormExDesktop now handles thread events. Updated FormExDestop and ControlsExDesktop libraries
Reply With Quote
  #6 (permalink)  
Old 08-13-2008, 04:05 PM
Byak@'s Avatar
Senior Member
 
Join Date: Jul 2008
Posts: 122
Send a message via ICQ to Byak@
Default

good work!!!
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Again FormExDesktop Cableguy Questions & Help Needed 8 10-25-2008 05:00 PM
Threading library for optimising compiler agraham Additional Libraries 29 10-15-2008 03:39 PM
Threading Mr_Gee Basic4ppc Wishlist 0 09-23-2008 08:57 PM
FormExDesktop RandomCoder Questions & Help Needed 2 09-10-2008 02:33 PM
Parallel Processing / Multi-Threading questions TWELVE Questions & Help Needed 7 04-29-2008 12:40 PM


All times are GMT. The time now is 12:28 PM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.1.0