I reported a similar bug a while ago.  We are using the A4 globals trick and
I thought that was the cause of the problem.  I have an application that was
putting up a dialog to do some processing that used the shared library.  I
would open and close the library for every instantiation of the dialog.  15
times, then boom.  Looking at the Palm source didn't yield any obvious
problems.  Here is what Ken Krugler (the originator of the A4 trick)
responded with.
I still haven't tried his suggestions as I got around the problem by moving
the library load and unload to the application so it is only done once
(doesn't seem like you have that luxury, however).

Here's what Ken suggested:

I don't know if you're still using any of the sample code from my "Globals
in Shared Libraries" article, but your post made me think of two potential
issues:

1. This obviously isn't the problem, but if any of the top-level library
routines are  missing an ExitLibrary call, then the global handle won't get
unlocked, and eventually you'll get a chunk overlocked error.

2. In my code the globals ptr got allocated when the library was installed,
and thus it's never freed. I believe I had a note in the article about
needing to do the allocate/deallocate at Open/Close time if this was an
issue. Again, it doesn't seem likely that this is your problem, but I
thought I'd mention it.

Hope this gives you some ideas.

Kevin

__________________________
 Kevin O'Keefe
 The Windward Group
 TEL:   (408) 399-8577
 FAX:  (408) 395-9642
 mailto:[EMAIL PROTECTED]
__________________________



> -----Original Message-----
> From: Richard Hartman [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, April 28, 1999 9:13 AM
> To: '[EMAIL PROTECTED]'
> Subject: RE: Very ood problem with Shared Libraries on Palm IIIx
> 
> 
> 
> > -----Original Message-----
> > From: Ade Barkah [mailto:[EMAIL PROTECTED]]
> >
> > 
> > At 03:54 PM 4/27/99 -0700, krollin wrote:
> > >Foxes will be available on the Solution Provider Pavillion 
> > Web site. Just
> > >sign on, enter your password, fill out the application in 
> > triplicate, mail
> > >them in, wait 3 weeks, post a follow-up to palm-dev-forum, 
> > wait for David
> > >Fedor to respond with an apology, wait 1 more week, and then 
> > you'll be able
> > >to download as many foxes as you like.
> > 
> > You can already get it on the latest PalmWarez CD. ;-)
> > 
> 
> Don't believe it.  That's imitation fox.  The throughput
> is about half what you get with a real fox.
> 
> 
> -- 
> -Richard M. Hartman
> [EMAIL PROTECTED]
> 
> 186,000 mi./sec ... not just a good idea, it's the LAW!
> 

Reply via email to