BlackBerry Forums Support Community
              

Closed Thread
 
Thread Tools
Old 09-30-2009, 08:23 AM   #1
abhiyenta
Knows Where the Search Button Is
 
Join Date: Mar 2009
Model: 8120
PIN: N/A
Carrier: gmail
Posts: 18
Default backgraund thread interrupts the GUI

Please Login to Remove!

Hi,

In my application I am sending some images to server in a separate thread.But I am facing serious problem with my GUI once thread starts uploading my data to server.My screen almost stuck and i cant use trackball to navigation among my fields in screen.Once thread finishes its job everything is fine.But until thread is running in background I am not able to use my GUI ,it is stuck for that particular time.
Offline  
Old 09-30-2009, 11:42 AM   #2
Dougsg38p
BlackBerry Extraordinaire
 
Join Date: Mar 2008
Location: Austin, TX
Model: 9700
PIN: N/A
Carrier: T-Mobile
Posts: 1,644
Default

Doesn't sound right to me. Are you trying to synchonize with the UI thread for a progress dialog, or something?

Post some code.
Offline  
Old 09-30-2009, 12:56 PM   #3
hrbuckley
BlackBerry Extraordinaire
 
Join Date: Jan 2006
Model: LEZ10
OS: 10.0.10
Carrier: Rogers CA
Posts: 1,704
Default

Or the other way. I have written network communications threads that update gauges on the GUI. If written correctly the GUI responsiveness doesn't suffer, but data speed may a little depending on how much CPU the GUI is taking. Anything that happens on the UI event thread, or while the lock is held has to be very quick and not call any methods that may wait for external events.

Doug is right, we need to see some code.
__________________
My other Blackberry is a PlayBook.
Offline  
Closed Thread



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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


Shop Vacuum Kit, 2.5

Shop Vacuum Kit, 2.5",

$42.65



Vacuum Desiccator Jar Polycarbonate Plastic Vacuum Dryer Laboratory Dessicator  picture

Vacuum Desiccator Jar Polycarbonate Plastic Vacuum Dryer Laboratory Dessicator

$59.08



12 CFM Vacuum Pump 2 Stage with Cooling Fan for HVAC Repair DIY Packing picture

12 CFM Vacuum Pump 2 Stage with Cooling Fan for HVAC Repair DIY Packing

$210.00



Appion MGAVCT 1/4

Appion MGAVCT 1/4" MegaFlow Vacuum-Rated Valve Core Removal Tool

$40.00



FEBCO 765DBV 3/4in Bronze FNPT Pressure Vacuum Breaker NEW picture

FEBCO 765DBV 3/4in Bronze FNPT Pressure Vacuum Breaker NEW

$99.99



Oilless Diaphragm Vacuum Pump Industrial Oil Free Piston Vacuum Pump 550W picture

Oilless Diaphragm Vacuum Pump Industrial Oil Free Piston Vacuum Pump 550W

$111.72







Copyright © 2004-2016 BlackBerryForums.com.
The names RIM © and BlackBerry © are registered Trademarks of BlackBerry Inc.