At 05:20 AM 7/28/2003, Mark Hirche wrote:
Hi there,
Ive got an application which uses shared libraries to obtain hex codes to
communicate with other devices via the com port.
My first DLL works just fine, i used the Codewarrior 9 wizard for shared
libraries.
Now I build a second library with the same tool, use the same technique to
alter the string variables but get a Bus Error.
I get the bus error in the instance, the function of the library is called,
though i was able to open and close it.
Even if I have the function to do nothing the Bus Error happens.
Can't I use the Wizard when using multiple shared libraries ?
Where is the mistake Ive made ????

Verify that both shared libraries have their 68K Compiler panel set to use PC-Relative String Constants. If not, you'll get a crash when the first library tries to find the second library by name.


Of course, if you've declared a global variable in the first library to hold the libref of the second, your code will fail, as global variables won't work in shared libraries.

--
Ben Combee <[EMAIL PROTECTED]>
CodeWarrior for Palm OS technical lead
Palm OS programming help @ www.palmoswerks.com



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

Reply via email to