netErrSocketBusy

2005-08-25 Thread sanjaywakhare

Hi Everyone,
 
I am writing an application which makes use of sockets. My application 
opens and closes a socket several number of times. After several attempts or 
after downloading big amount of data I get 'netErrSocketBusy' while connecting 
teh socket next time. 

I have read in some post that we have to keep trying to connect the socket till 
'netErrSocketBusy' is not returned. But this DOES NOT work. No matter howmuch 
ever I wait. 

RESETTING the device (Treo 650) is the only option left in such a situation.

I am making it sure that am closing the socket before I open it the next time.

 Any one having a good solution for this please share it with me.
Its URGENT.

 Thanks in Advance

Bye
Sanjay
-- 
For information on using the PalmSource Developer Forums, or to unsubscribe, 
please see http://www.palmos.com/dev/support/forums/


Edit Auto Naming in Camera.

2005-08-25 Thread pritam hasabnis
Hi All,
   Is there anyway I can Edit auto name(Camera)
through Code?

   Scenario - I am calling "Camera" application on
button click..when I do this I want to pass a new name
to it through code,so that user can save it through
that name. I am using Zire72 & PODS as development
environment.

  Any sample code snippet will be welcome..:)

Regards,
-Pritam.
 




Start your day with Yahoo! - make it your home page 
http://www.yahoo.com/r/hs 
 

-- 
For information on using the PalmSource Developer Forums, or to unsubscribe, 
please see http://www.palmos.com/dev/support/forums/


Re: Fatal Error on install?

2005-08-25 Thread Bryce Burrows
actually i have it all sorted
turned out there was a problem with the project which stuffed things up
But the key was your very useful information about code being run for 
notifications

- worked around the project problem but redoing the project and sorted the code 
execution.

thank you very much for your help it made the world of difference

regards and many thanks
Bryce
-- 
For information on using the PalmSource Developer Forums, or to unsubscribe, 
please see http://www.palmos.com/dev/support/forums/


Re: MemMove doesn't work

2005-08-25 Thread David Fedor

At 09:36 PM 8/25/2005, you wrote:
imagen = (DBImagenesSC*)MemPtrNew(sizeof(imagenCopia));// + 
imagenCopia->tamanio);

MemMove(imagen, imagenCopia, sizeof(imagenCopia));// + imagenCopia->tamanio);

/* Messages just to know what's happening */
FrmCustomAlert (1013, "imagenCopia->nombre: ", imagenCopia->nombre, 
NULL); // I get something like "username_0x0001.jpg", wich is valid


imagenCopia is a pointer.  Thus, sizeof(imagenCopia) is 4 bytes.  So 
you're doing a MemMove of 4 bytes instead of the full size of the structure.


I think you mean to say sizeof(DBImagenesSC)

Anytime I start thinking that a basic system service like MemMove() 
is broken, it shows that I need to take a break :-)


-David Fedor
Director, European Technical Services
PalmSource, Inc.


--
For information on using the PalmSource Developer Forums, or to unsubscribe, 
please see http://www.palmos.com/dev/support/forums/


How Can I Retrieve the Record Category?

2005-08-25 Thread Régis Daniel de Oliveira
Hi!!!

I use the folowing code to set the record category:

DmRecordInfo(DbPtrF, Count, &attr, NULL, NULL);
attr &= ~dmRecAttrCategoryMask; 

//Check with category to Use
if (StrAToI(rp) >= TodayN)
attr |= 0;  //Open
else
attr |= 1;  //Closed

DmSetRecordInfo(DbPtrF, Count, &attr, NULL);

Now, i want to retrieve which category the record is.
How could i do this?
Thanks!!!

-- 
For information on using the PalmSource Developer Forums, or to unsubscribe, 
please see http://www.palmos.com/dev/support/forums/


Re: user name of the handled

2005-08-25 Thread Robert Moynihan

Danaé Castro Terán wrote:


Hello:
 
Please help me... I need the name of the handheld user in the user 
data store to synchronize with.


Try this:

{
   char*nameP=NULL;

   nameP = MemPtrNew(dlkUserNameBufSize);
   if (nameP){
   DlkGetSyncInfo(NULL, NULL, NULL, nameP, NULL, NULL);
   //nameP now contains the user name
   //so do something with it.

  //now clean up
   MemPtrFree(nameP);
   }
}

Bob

--
For information on using the PalmSource Developer Forums, or to unsubscribe, 
please see http://www.palmos.com/dev/support/forums/


user name of the handled

2005-08-25 Thread Danaé Castro Terán
Hello:
 
Please help me... I need the name of the handheld user in the user data store to synchronize with. 
 
In the COMSyncReference it this example:
 
Dim pSystem as PDSystemAdapter Dim UserInfo as PDUserInfo ' Get the user info object Set UserInfo = pSystem.PDUserInfo ' Get the user name Dim UserName as String UserName = UserInfo.UserName 
 
but I have the following error: Reference to object done not establish as instance of an object.
 
Any idea?
-- 

For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/





How to detect that the device has a hard drive

2005-08-25 Thread Regis St-Gelais
I know that the LifeDrive is using NVFS and that it can be detected by 
reading the feature sysFtrNumDmAutoBackup.
But how do I know if the non volatile medium is actualy a hard drive?
I'm looking for a way to other than checking for the LiveDrive device 
signature so the code will still work with a future device using a hard 
drive.

Thanks

-- 
Regis St-Gelais
www.laubrass.com 



-- 
For information on using the PalmSource Developer Forums, or to unsubscribe, 
please see http://www.palmos.com/dev/support/forums/


Re: MemMove doesn't work

2005-08-25 Thread Logan Shaw

Miguel Angel Sotomayor Hernandez wrote:

I'm facing this problem:

I get a record from a database, then unpack it and copy (using MemMove) 
into a pointer I receive in my function. It works fine on treo 600, but 
not on the treo 650.




imagen = (DBImagenesSC*)MemPtrNew(sizeof(imagenCopia));// + 
imagenCopia->tamanio);
MemMove(imagen, imagenCopia, sizeof(imagenCopia));// + 
imagenCopia->tamanio);


/* Messages just to know what's happening */
FrmCustomAlert (1013, "imagenCopia->nombre: ", imagenCopia->nombre, 
NULL); // I get something like "username_0x0001.jpg", wich is valid
FrmCustomAlert (1013, "imagen->nombre: ", imagen->nombre, NULL); // I 
should get the sames as above, but I get weird characters instead
/* The same happens with all the fields in imagen (different than 
imagenCopia's) */


I would write your own implementation of MemMove() using your own loop
and replace the call to MemMove() with a call to that.  If that changes
the behavior, you know that MemMove() really isn't behaving as expected.
If it doesn't change the behavior, then you know it is some other problem.

I know that's not a solution, but maybe it will make it easier to
investigate.

  - Logan

--
For information on using the PalmSource Developer Forums, or to unsubscribe, 
please see http://www.palmos.com/dev/support/forums/


Re: How to build Palm 5.4 ROM from QDA700 Smartphone image.bin file

2005-08-25 Thread Barry
According to the ftp directory Qoollabs gave me access to, the upgrade ROM 
version appears to be 77, not 78. Do you know how to tell which ROM version my 
smartphone is currently using?

As far as upgrading my own physical QDA700, I don't think I will make the 
attempt unless doing so will provide significant improvements. Their upgrade 
instructions are very sketchy, to say the least. And I don't want to kill my 
device.

Any pdf info you have is greatly appreciated. My email is [EMAIL PROTECTED]


-- 
For information on using the PalmSource Developer Forums, or to unsubscribe, 
please see http://www.palmos.com/dev/support/forums/


Re: use .rcp and .rsrc together

2005-08-25 Thread Ben Combee

At 12:31 PM 8/25/2005, you wrote:

Thanks, Ben!
i recall seeing RCP-to-Rez plugin somewhere, but couldn't find it now. Do 
you know where I can get it?


google for "pilrc plugin".



-- Ben Combee, Senior Software Engineer, palmOne, Inc.
   "Combee on Palm OS" weblog: http://palmos.combee.net/
   Developer Forum Archives:   http://news.palmos.com/read/all_forums/


--
For information on using the PalmSource Developer Forums, or to unsubscribe, 
please see http://www.palmos.com/dev/support/forums/


MemMove doesn't work

2005-08-25 Thread Miguel Angel Sotomayor Hernandez

I'm facing this problem:

I get a record from a database, then unpack it and copy (using MemMove) 
into a pointer I receive in my function. It works fine on treo 600, but 
not on the treo 650.

Here is the relevant part of the code:
/* Code starts here */
DBImagenesPkSC* registroActual;
DBImagenesSC* imagenCopia;

imagenCopia = (DBImagenesSC*)MemPtrNew(sizeof(DBImagenesSC));

/* Some code to get registroH, then... */

registroActual = MemHandleLock(registroH);

/* registroActual is a valid here */
/* I call a function to unpack my record into imagenCopia */

DesempacaRegistroImagen(imagenCopia, registroActual);

/* imagen comes from (the last parameter):
Int32 BuscaImagenP(UInt32 tienda, UInt32 fecha, UInt32 categoria, UInt32 
producto, UInt32 catalogo, UInt32 subgrupo, LibTipoReportes tipo, 
DBImagenesSC *imagen) 
and is where the data should be copied to

*/

imagen = (DBImagenesSC*)MemPtrNew(sizeof(imagenCopia));// + 
imagenCopia->tamanio);
MemMove(imagen, imagenCopia, sizeof(imagenCopia));// + 
imagenCopia->tamanio);


/* Messages just to know what's happening */
FrmCustomAlert (1013, "imagenCopia->nombre: ", imagenCopia->nombre, 
NULL); // I get something like "username_0x0001.jpg", wich is valid
FrmCustomAlert (1013, "imagen->nombre: ", imagen->nombre, NULL); // I 
should get the sames as above, but I get weird characters instead
/* The same happens with all the fields in imagen (different than 
imagenCopia's) */


/* Code ends here */

What's wrong here? It has worked with out a problem for several months 
on treo 600s but now they will use treo 650 and It doesn't work as 
expected. Any clue?


Thanks for your help

--
For information on using the PalmSource Developer Forums, or to unsubscribe, 
please see http://www.palmos.com/dev/support/forums/


Re: Background operation on PalmOS

2005-08-25 Thread Jeffry Loucks

Good suggestion. People have attempted to use real AMX tasks in pre-OS5,
which is neither supported nor recommended. I would like to point out right
up front that my work does not involve any additional OS 'tasks' of any
kind.

And yes, it is possible to do background-like stuff with notifications. 

However, my work is less about background operation and more about
application threads that happen to work in the background.

I have been called upon to do a lot of communication related stuff, often
porting from other operating systems. It is common to have at least a send,
receive and service thread, asynchronous I/O and some kind of background
presence.

Early on (I've been at this since 1996) I got really tired of having to
re-engineer everything to the, dare I say, 'frightfully primitive' Palm
model, so I created threads, added async I/O, and facilitated background
operation.

This work has served me well and I'm offering it to the community (in a form
yet to be determined).

Thanks,
jeff

Jeffry Loucks a écrit, le 25/08/2005 03:48 :

> I have received several requests for the background and thread stuff, so
> I am assembling some documentation and a preliminary install. Please
> allow me a few more days to make sense of it.

If I can make a suggestion, it would be a good idea to start your
documentation by explaining that there are usually better - and more
supported - ways to do things than creating a background task.

You can do a lot of stuff with notifications...

-- 
For information on using the PalmSource Developer Forums, or to unsubscribe, 
please see http://www.palmos.com/dev/support/forums/


How to build Palm 5.4 ROM from QDA700 Smartphone image.bin file

2005-08-25 Thread Barry
I recieved a 12 megabyte image.bin file from Qoollabs, manufacturer of the Qool 
QDA700 smartphone. Can anyone provide step-by-step instructions on how to build 
the appropriate ROM for use in the Garnet5.4 simulator? Or can this bin file be 
used as is?? If so, please let me know where to install it within the Palm OS 
Developer Suite. Thanks. [EMAIL PROTECTED]
-- 
For information on using the PalmSource Developer Forums, or to unsubscribe, 
please see http://www.palmos.com/dev/support/forums/


Multiple keypress issue with LifeDrive

2005-08-25 Thread Marek Wyszynski

There is a known issue with LifeDrive that it's not possible to detect two keys 
pressed at the same time using KeyCurrentState. It seems to return 0 when 2 
keys are pressed.

Does anyone have a solution for that?

There is a utility that fixes that problems (it's called LifeKeys) so it means 
it's possible.

best regards,
Marek Wyszynski,
Infinite Dreams,
http://www.idreams.pl

-- 
For information on using the PalmSource Developer Forums, or to unsubscribe, 
please see http://www.palmos.com/dev/support/forums/


Re: Creating Apps that runs on 320x480 screens

2005-08-25 Thread Erico Franco

Michal Seliga wrote:

Erico Franco wrote:


Michal Seliga wrote:



but as far as i know sony clie users have some hack which allows them
to use
applications written only for PalmOne API (application Landscape for
Sony Clie).



This is interesting, do you know the name/link for this hack?



http://www.mobile-stream.com/landscape_info.html



thanks for the link

:-(it is not free, i can not suggest it to my Clie customers as I do 
for MCA2 to have sound on their Clies. But is ok.


regards

Erico Franco

--
For information on using the PalmSource Developer Forums, or to unsubscribe, 
please see http://www.palmos.com/dev/support/forums/


Re: Creating Apps that runs on 320x480 screens

2005-08-25 Thread Michal Seliga
Erico Franco wrote:
> Michal Seliga wrote:
> 
>>
>> but as far as i know sony clie users have some hack which allows them
>> to use
>> applications written only for PalmOne API (application Landscape for
>> Sony Clie).
>>
> 
> This is interesting, do you know the name/link for this hack?

http://www.mobile-stream.com/landscape_info.html

-- 
For information on using the PalmSource Developer Forums, or to unsubscribe, 
please see http://www.palmos.com/dev/support/forums/


Re[2]: Wireless Application slow on Treo 600/650

2005-08-25 Thread pmotdev

Hi,

You mean in the tomcat servlet/apache server?  I don't send data on the 
PDA, I receive..

On Tue, 23 Aug 2005, A.Kazantsev wrote:

> Try to send data in small chunks (I used to send in chunks of 536
> bytes) and to hold on between the chunks for period of time necessary
> to push the previous chunk of data out.
> 
> Hope it helps.
> 
> ppc> Hi all,
> 
> ppc> I found out the slowness in this is in the socket receiving data.  Why is
> ppc> the Treo (and seems all sprint phones at least?) are so slow to receive
> ppc> data, yet the browser on the computer is fast!
> 
> ppc> I am using the POL library like so:
> 
> ppc>  CNetLibClientStream sock(&nlib, netSocketTypeStream, 
> ppc> netSocketProtoIPTCP, HostName, 80, bufferSize);
> ppc>  sock.SetMode(true);
> 
> ppc>  sock << strInput;
> ppc>  sock.SetMode(false);
> ppc>  CString strResponse;
> 
> ppc>  ErrTry
> ppc>  {
>   sock >>> strResponse;
> ppc>  }
> ppc>  ErrCatch(inErr)
> ppc>  {
> ppc>  }ErrEndCatch
> 
> 
> ppc> THAT code takes on a TREO/Sprint phone about 40-60 seconds to execute,
> ppc> regardless of actualy data length.
> 
> ppc> On Mon, 22 Aug 2005 [EMAIL PROTECTED] wrote:
> 
> >> Hi all,
> >> 
> >> My application (MD on Tap) is being reported very slow on Treo 600/650's
> >> and I am not sure where to begin.  I have tested on tungstens, clie's, etc
> >> and its all fine.
> >> 
> >> Is there some info/etc that would discuss slowness issues with treo
> >> 600/650's?
> >> 
> >> Thanks
> >> 
> 
> 
> 
> 
> 


-- 
For information on using the PalmSource Developer Forums, or to unsubscribe, 
please see http://www.palmos.com/dev/support/forums/


Re: Wireless Application slow on Treo 600/650

2005-08-25 Thread pmotdev

Hi Patrick,

No on simulator.  I didn't see it on the website...?

On Tue, 23 Aug 2005, Patrick Vuichard wrote:

> [EMAIL PROTECTED] a écrit, le 23/08/2005 14:29 :
> 
> > Hello Patrick,
> > 
> > Do you know anyway around this?
> 
> I fact, I can see that you're using the port 80, so my hypothesis is 
> probably wrong. Nonetheless, you could check with another operator... I 
> wouldn't be surprised to hear that an operator has installed "smart" 
> filters.
> 
> Have you tried with the Treo Simulator?
> 
> 


-- 
For information on using the PalmSource Developer Forums, or to unsubscribe, 
please see http://www.palmos.com/dev/support/forums/


Regarding PODS (ARM)

2005-08-25 Thread Ritu
Hi,

Please suggest me the right way to resolve the following issues.

1. How to create a dll project in PODS 6 (ARM)
2. Steps for porting the shared library source of 64k in to PODS 6.


Thanks & Regards
Ritu Chawla.



-- 
For information on using the PalmSource Developer Forums, or to unsubscribe, 
please see http://www.palmos.com/dev/support/forums/


Re: Creating Apps that runs on 320x480 screens

2005-08-25 Thread Erico Franco

Michal Seliga wrote:



but as far as i know sony clie users have some hack which allows them to use
applications written only for PalmOne API (application Landscape for Sony Clie).



This is interesting, do you know the name/link for this hack?

For Mr. Regis Daniel (who started this thread) if is interesting or not 
to focus Clie depends on of what he is doing: I think that he is 
Brazilian like me and as I know Sony has never been launched Clie in 
Brazil's market. :-(


So if he is doing a local app, maybe do not worth to loose his time 
worrying on Clie stuff.


regards

Erico Franco
MicroMagic

--
For information on using the PalmSource Developer Forums, or to unsubscribe, 
please see http://www.palmos.com/dev/support/forums/


Compiling my Whole Dang OS5 App Into ARM using prc-tools

2005-08-25 Thread David Ghandehari

Hi again, folks,

So, I noticed that prc-tools comes with an arm-palmos compiler as well 
as the expected m68k-palmos. I have a large multi-section C++ 68k 
application, and I'd really like to just compile the whole thing into 
ARM and just have a 68k stub that checks to see if the platform supports 
ARM and then launches the ARM version, otherwise continuing with the 68k 
portion. I haven't done anything with ARM yet other than try and read up 
what I can scrounge up, so I am a bit clueless and scared here.


so:
1. Is compiling an entire app to ARM feasible? Is there any reason I 
wouldn't want to do this?


2. If my ARM code ends up being greater than 64k (which it will), how 
does having multiple ARM code resources work? Do I need to do the same 
thing in terms of sectioning out code?


3. Are here any other considerations I should be considering regarding 
ARMifying my project?


Thanks,
-DG

--
For information on using the PalmSource Developer Forums, or to unsubscribe, 
please see http://www.palmos.com/dev/support/forums/


Multisegment Debug Problem w/PRC-Tools, Simulator, multilink

2005-08-25 Thread David Ghandehari

Hello, everyone!

So, my situation: I'm working with a large C++ app, right now entirely 
68k. I'm using Multilink (http://www.djw.org/product/palm/multilink/), 
which splits my app into 5 sections, because splitting code into 
sections seems like something humans shouldn't be doing. So, Multilink 
generates this cool script for gdb that makes all the symbol/section 
matchups work correctly. Mine, for example, looks something like this:


multilink.gdb:
# Generated by multilink -gdb-script option
define load-segments
  set $jmptable = *((long**)($a5-4))
  add-symbol-file a0001.out *(long*)(((long)$jmptable)+4)
  add-symbol-file a0002.out *(long*)(((long)$jmptable)+8)
  add-symbol-file a0003.out *(long*)(((long)$jmptable)+12)
  add-symbol-file a0004.out *(long*)(((long)$jmptable)+16)
end

I have another script that sets up other fun debug stuff:
directory ~/palmfw/src
directory ~/guild/src
source multilink.gdb
target palmos
load-segments

OK, so this works great in POSE. But I sort of need to be using the 
Simulator as I'm developing primarily for OS5. So, using the Simulator, 
it only supports symbols for the first code section. The rest just shows 
up as "??"...


So, anyone have any idea about what I can do to make GDB work in this 
situation?


Any insight would be massively appreciated!
-DG

--
For information on using the PalmSource Developer Forums, or to unsubscribe, 
please see http://www.palmos.com/dev/support/forums/


Re: Creating Apps that runs on 320x480 screens

2005-08-25 Thread Michal Seliga
Benoit Cerrina wrote:
> Thomas Omilian wrote:
> That would depend on your target population, you  may not necessarily be
> able to ignore
> the sony users who are numerous.

but as far as i know sony clie users have some hack which allows them to use
applications written only for PalmOne API (application Landscape for Sony Clie).

-- 
For information on using the PalmSource Developer Forums, or to unsubscribe, 
please see http://www.palmos.com/dev/support/forums/


Re: use .rcp and .rsrc together

2005-08-25 Thread Ben Combee

At 12:40 AM 8/25/2005, you wrote:
I am using codewarrior 8.3. Can I use .rcp and .rsrc resource files at the 
same time in one project? If so, should I stick with MacOS 68K Linker (not 
use PalmOS 68K linker)?


If you use the RCP-to-Rez plugin (the one from Neil's site), it will play 
nicely with RSRC files in the same project.



-- Ben Combee, Senior Software Engineer, palmOne, Inc.
   "Combee on Palm OS" weblog: http://palmos.combee.net/
   Developer Forum Archives:   http://news.palmos.com/read/all_forums/


--
For information on using the PalmSource Developer Forums, or to unsubscribe, 
please see http://www.palmos.com/dev/support/forums/