Substitute for shared libraries

2000-08-30 Thread Petrus Wrangö
I want to patch some traps and make other programs, not knowingly, use my code. The problem is my code has grown rather large and does not fit into my shared library because of the 64K limit. Can I get around this problem in any way? Also, would it be possible to make a shared library which in tur

Combining shared libraries and static libraries

2000-08-29 Thread Petrus Wrangö
Would it be possible to make a shared library which in turn uses one or two static libraries to overcome the 64K limit on shared libraries? Regards Petrus -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/

RE: Multi segment shared libraries

2000-08-29 Thread Petrus Wrangö
ECTED] -Original Message- From: Petrus Wrangö [mailto:[EMAIL PROTECTED]] Sent: Tuesday, August 29, 2000 9:53 AM To: Palm Developer Forum Subject: RE: Multi segment shared libraries I REALLY don't think I can break it apart, since all these lovely methods share global variables. An

RE: Multi segment shared libraries

2000-08-29 Thread Petrus Wrangö
0k programs that use a shared library. The shared library being one project file outputting two libs. It IS one large shared library, but if you're going to share 140K of code, you need to break it up somehow. -Original Message- From: Petrus Wrangö [mailto:[EMAIL PROTECTED]] Sent: T

RE: Multi segment shared libraries

2000-08-29 Thread Petrus Wrangö
. -Original Message- From: Petrus Wrangö [mailto:[EMAIL PROTECTED]] Sent: Tuesday, August 29, 2000 9:23 AM To: Palm Developer Forum Subject: Multi segment shared libraries I've searched the archive, and there are some questions related to this, but I can't figure it out. My shared l

Multi segment shared libraries

2000-08-29 Thread Petrus Wrangö
I've searched the archive, and there are some questions related to this, but I can't figure it out. My shared library has grown very large, and I can no longer compile it. I'm getting all kinds of strange link errors. I've tried to make it multi segment, And the closest I've got is by using these

Link error when multiplying 32bit variables.

2000-08-28 Thread Petrus Wrangö
When I try to multiply two variables of type ULong I get a Link error: Link Error : Main.c: '__lmul__' referenced from 'HandleTimerElapse' is undefined. I get similar errors when I try division or modulus. I think I've done this before with no error. Maybe I've messed with some settings in co

Debugging in shared libraries at interrupt level

2000-08-11 Thread Petrus Wrangö
Hi, I'm using CW R5 with SDK 3.0. I know this topic has come up several times before, but searching the archive didn't provide me with a solution. I've written a shared library with some code that will be run at interrupt level, and now I want to debug my code. How can I get the debugging of a s

RE: Rookie assembler question

2000-08-10 Thread Petrus Wrangö
d effective address" All in all though, I find the 68000 is much more orthogonal than the X86 - you have many more registers and can use them much more generally, with many more addressing options, so you may find you can do things you never could do on the X86. :) Petrus Wrangö wrote: > &

Rookie assembler question

2000-08-09 Thread Petrus Wrangö
Phu, this Motorola assembler isn't anything like the x86. I've been looking through Targeting PalmOS and Motorolas 68k Reference/Manuals but I dont get it to work. I have this function, like; void bogus(){ //some code } And then, in an asm function, I would like to use bogus as a variab

RE: Two kick ass interrupt questions!

2000-08-03 Thread Petrus Wrangö
o kick ass interrupt questions! Hi Petrus, Good luck using non-documented and non-supported API's! It sounds like you might be better off using a virtual serial driver. Take a look at knowledgebase article #1812 for some sample code. Regards, Peter Easton Palm Developer Support Petrus Wra

Two kick ass interrupt questions!

2000-08-02 Thread Petrus Wrangö
trying to do. There are no words to describe how much I would appreciate any help. Regards Petrus Wrangö -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/

Re: Getting work done at interrupt level

2000-07-31 Thread Petrus Wrangö
this please let me know. Thanks Petrus Petrus Wrangö <[EMAIL PROTECTED]> wrote in message news:19214@palm-dev-forum... > > Here's one for you all to chew on! > > I want to do some work when a serial interrupt occurs. Normally one just > posts an event and picks up in th

Getting work done at interrupt level

2000-07-31 Thread Petrus Wrangö
Here's one for you all to chew on! I want to do some work when a serial interrupt occurs. Normally one just posts an event and picks up in the event loop, but my program is not of 'appl' type, more of a hack nature, so I don't have any event loop. There must be away around this problem, and I won

Timer workaround

2000-07-25 Thread Petrus Wrangö
Is there a function I can patch on to that I can be sure gets called at regular intervals. I must be REALLY sure! I'd prefer a function that gets called every 10ms or so. Something like a tick increase function. Is there such a function? Any other way to create callback without occupying the OS/ex

Avantgo in an intranet

2000-07-24 Thread Petrus Wrangö
iles in an intranet. Is there a way to make these newer versions of AvantGo operate this way? Preferably a cheap and easy way! Petrus Wrangö -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/

Launch codes and AvantGo

2000-07-14 Thread Petrus Wrangö
I would like to start AvantGo and make it open a specific page, preferably in a way compatible with PalmOS 3.0 and up. How can I do this? Petrus -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/

RE: millisecond delay

2000-07-13 Thread Petrus Wrangö
>> Still, creating a millisecond delay must be possible. Right? (Even if I have >> to go to assembly level coding.) >Stop and think carefully about what you really want. I suspect you >don't really want a delay of exactly one millisecond. Instead, I >suspect you want one thing to happen exact

Re: millisecond delay

2000-07-13 Thread Petrus Wrangö
>This may seem difficult to accept, but the operative phrase is "[in your] short experience" -- >your application is, almost without question, corrupting kernel data structures by using those >functions, leading to instability, possible data corruption, and an eventual crash. Ok, I can accept tha

millisecond delay

2000-07-13 Thread Petrus Wrangö
Previously I was talking about timers. And now I'm starting to realize I can't get better accuracy than 10ms this way (using sysTimerX functions). So now I want to know a way to make a delay for EXACTLY one millisecond. I also want to hear from anyone that has tested the sysTimerX functions more

ticksPerSecond

2000-07-11 Thread Petrus Wrangö
It seems the PalmOS defaults the ticksPerSecond to 100. I would like to change this to 1000 to get better accuracy on timers and such. How can I change this, and would it be safe to change it? If not, is there another way to create something like a timer with better accuracy than 10ms? The way I

More timers

2000-07-11 Thread Petrus Wrangö
I didn't get much response on my question about sysTimerX functions so I went hunting on my own. Here's what I found: (I'm still looking for more info.) To create a timer you use the sysTimerCreate, the sysTimerCreate id declared as: Err SysTimerCreate(DWordPtr timerIDP, DWordPtr tagP, Sy

Timers

2000-07-10 Thread Petrus Wrangö
Is there any documentation for these undocumented functions? :) SysTimerCreate, SysTimerDelete, SysTimerWrite, SysTimerRead Any info and help on how to use these would be greatly appreciated. Petrus -- For information on using the Palm Developer Forums, or to unsubscribe, please see http

Re: Globals in shared libraries and virtual drivers.

2000-06-30 Thread Petrus Wrangö
> you dont need to use globals at ALL really. Sorry, I forgot to mention that I'm porting a rather large piece of code. And I really need the 'real' globals. Petrus -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support

Globals in shared libraries and virtual drivers.

2000-06-30 Thread Petrus Wrangö
Official information states that 'real' globals canot be used in a shared library. What I want to know is: Can I use globals in serial and virtual drivers? How? I'm also interested in using globals in shared libs, despite official info. Anyone knows the whereabouts of this article?: "PalmOS Shar