on 7/19/02 12:03 AM, Joseph J. Strout at joe at realsoftware dot com wrote:
> At 10:40 PM -0400 7/18/02, Chris Little wrote:
>
>> The plugin works fine on all versions of Windows except for 95 where the
>> plugin crashes on the first call to a method in the plugin. It doesn't
>> matter which function, the app crashes with an access violation.
>
> This may be a bit of a long shot, but: make sure all your data
> structures are the same for both Mac and Windows. If they're not,
> insert padding to make all the field offsets come out the same.
>
> But if that were wrong, I'd expect it to fail on all flavors of
> Windows. Since it's only failing on 95, that's probably not it.
> Could it be you're calling some Windows function that doesn't exist
> in 95?
>
The plugin's interface is actually very simple, integer and strings and is
the same on Mac and Windows.
The access violation happens somewhere between the point the function is
called from my RB code and before the code for the method in the plugin.
The reason I think it is global data is that if I simplify the plugin down
to empty methods and functions but link all of the same code then the crash
still happens.
I had this problem with another plugin but instead of linking to
MSL_All_x86.lib I linked to a subset of the component libraries. For that
plugin it turned out that if I had a called stat in the plugin then my app
would crash on the first call into the plugin.
Chris
|