Real Software Forums

The forum for Real Studio and other Real Software products.
[ REAL Software Website | Board Index ]
It is currently Tue Nov 12, 2019 4:08 pm
xojo

All times are UTC - 5 hours




Post new topic Reply to topic  [ 9 posts ] 
Author Message
 Post subject: Bouncing Icon
PostPosted: Thu Jan 17, 2013 9:34 am 
Offline
User avatar

Joined: Sun Aug 05, 2007 10:46 am
Posts: 4931
Location: San Diego, CA
I have an app I wrote back in RS2010 or so..... and have a few customers around the world using it with no problem.

One such customer is in Poland.... and he suggested some feature enhancements.... so I decided to implement them.

In doing so, I brought the code up to RS2012r2, and tested everything on my two computers under LION (10.7.5) and Mt.Lion (10.8.2) with absolutly no problems.

I shipped a copy to him. and he indicates that only two things happen when he launchs.

1) the appropriate menubar appears at the top of the screen
2) the dock icon.. bounces.. and bounces.

Since this is a situation I cannot duplcate... does anyone have ANY idea how I can figure out WHY it doesn't work for him (he too is running 10.8.2)

_________________
Dave Sisemore
iMac I7[2012], OSX Mountain Lion 10.8.3 RB2012r2.1
Note : I am not interested in any solutions that involve custom Plug-ins of any kind


Top
 Profile  
Reply with quote  
 Post subject: Re: Bouncing Icon
PostPosted: Thu Jan 17, 2013 10:19 am 
Offline
User avatar

Joined: Sun Aug 05, 2007 10:46 am
Posts: 4931
Location: San Diego, CA
Customer has indicated that the app finally starts after bouncing for two minutes... and runs fine after that... but takes 1-2 minutes to shut down as well (on my machine it starts in 3 seconds, and shuts down even quicker)

He send me a "HangReport.pdf"... I do not know what he used to extract it, and have NO idea what it means.... but if it might help anyone here with resolving this .. I'd appreciate it.

_________________
Dave Sisemore
iMac I7[2012], OSX Mountain Lion 10.8.3 RB2012r2.1
Note : I am not interested in any solutions that involve custom Plug-ins of any kind


Top
 Profile  
Reply with quote  
 Post subject: Re: Bouncing Icon
PostPosted: Thu Jan 17, 2013 11:56 am 
Offline

Joined: Mon May 30, 2011 12:56 am
Posts: 702
Its all to do with whats in the Open event.
Are you creating a file/database?
trying to access a web site for registration?
Its probably struggling to connect...


Top
 Profile  
Reply with quote  
 Post subject: Re: Bouncing Icon
PostPosted: Thu Jan 17, 2013 12:02 pm 
Offline
User avatar

Joined: Sun Aug 05, 2007 10:46 am
Posts: 4931
Location: San Diego, CA
The open sequence is quite simple

It checks to see if a particular file exists on their computer (for later use in a SHELL command)... sets a flag true or false
Looks for a local registration file
If found, reads it, if not creates it

Thats pretty much it...

The only thing that changed from the previous version to new version (at least as far as open event is concerned). it the registration file.... It was a convoluted mess of encrypted files across the HD, now it is one clear text file....

On my own machines... the program activates in 1.2 seconds. doing all the same things

here is a log on my machine (customer does not have this logging feature)

0.000 : Start logging ......
0.002 : ENTER : Application : OPEN EVENT
0.003 : ENTER : Search for SIPS
0.003 : EXIT: SIPS Search : png,jpg,bmp,gif,tiff
0.004 : ENTER: Load Options
0.127 : ENTER : WinMain OPEN
0.129 : EXIT : WinMain Open
0.131 : ENTER: GET REG INFO
0.628 : EXIT : GET REG INFO
0.629 : EXIT : Load Options
1.045 : EXIT : Application : OPEN EVENT
1.220 : Enter WINMAIN Activate
1.221 : EXIT WINMAIN Activate

_________________
Dave Sisemore
iMac I7[2012], OSX Mountain Lion 10.8.3 RB2012r2.1
Note : I am not interested in any solutions that involve custom Plug-ins of any kind


Last edited by DaveS on Thu Jan 17, 2013 3:55 pm, edited 1 time in total.

Top
 Profile  
Reply with quote  
 Post subject: Re: Bouncing Icon
PostPosted: Thu Jan 17, 2013 2:19 pm 
Offline
User avatar

Joined: Thu Sep 10, 2009 2:50 am
Posts: 418
Location: Santa Cruz, CA, USA
I once made a program to crawl all the files on my hd, it went through files fast but locked up occasionally. I tracked this down to a handful of files that just getting their folderitem would try to contact a server or something. Never figured out exactly what it was doing but even in the OS trying to GetInfo it it'd be a minute wait. So anyways, maybe this user has a file like that in their SIPS folder. Can't you send them a logging version of your app?


Top
 Profile  
Reply with quote  
 Post subject: Re: Bouncing Icon
PostPosted: Thu Jan 17, 2013 2:26 pm 
Offline
User avatar

Joined: Fri Jun 05, 2009 11:50 am
Posts: 348
Location: Hamburg, Germany
ship a version with logging feature to customer and ask customer to return log. So you can see where time consumption goes up.

Then you can further analyze.

_________________
Best regards

Stefan

Mac OSX Mountain Lion (latest Release) on a MacBook Pro 2.66 GHz Intel Core i7/ RB Professional 2011 Release 3


Top
 Profile  
Reply with quote  
 Post subject: Re: Bouncing Icon
PostPosted: Thu Jan 17, 2013 3:54 pm 
Offline
User avatar

Joined: Sun Aug 05, 2007 10:46 am
Posts: 4931
Location: San Diego, CA
elChupete wrote:
ship a version with logging feature to customer and ask customer to return log. So you can see where time consumption goes up.

Then you can further analyze.



That is exactly my plan... :)

Thanks

_________________
Dave Sisemore
iMac I7[2012], OSX Mountain Lion 10.8.3 RB2012r2.1
Note : I am not interested in any solutions that involve custom Plug-ins of any kind


Top
 Profile  
Reply with quote  
 Post subject: Re: Bouncing Icon
PostPosted: Wed Jan 30, 2013 4:44 pm 
Offline
User avatar

Joined: Sat Nov 11, 2006 2:43 pm
Posts: 1221
Location: This poster has left the forums
We all know RB cannot multitask. A two minute hang sounds like a DNS resolution hang.
Does your app use any network requests at all?

_________________
%Invalidforumsignatureexception% user signature not found


Top
 Profile  
Reply with quote  
 Post subject: Re: Bouncing Icon
PostPosted: Wed Jan 30, 2013 5:16 pm 
Offline
User avatar

Joined: Sun Aug 05, 2007 10:46 am
Posts: 4931
Location: San Diego, CA
problem was this

sh.execute "/usr/sbin/ioreg -l | /usr/bin/grep IOPlatformSerialNumber


replaced with
sh.execute "/usr/sbin/system_profiler SPHardwareDataType | /usr/bin/grep "


top took 90 seconds... bottom takes 2 seconds.

Yes.. there was a Internet connection aas well... that he disabled.. saved another 30 seconds.


So he now starts in 2 seconds not 2 minutes.

_________________
Dave Sisemore
iMac I7[2012], OSX Mountain Lion 10.8.3 RB2012r2.1
Note : I am not interested in any solutions that involve custom Plug-ins of any kind


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 9 posts ] 

All times are UTC - 5 hours


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group