problems with safari plugin when using 64 bit
problems with safari plugin when using 64 bit
- Subject: problems with safari plugin when using 64 bit
- From: Bill Appleton <email@hidden>
- Date: Wed, 16 Jun 2010 11:01:25 -0700
Hi All,
We have converted 100% to Cocoa and our 32 bit NPAPI plugin runs better than ever. But I am having two strange problems in the 64 bit version of our Safari NPAPI plugin. This might not be exactly the right place to ask, but this is one of the more knowledgeable forums, so I hope people don't mind. These problems do NOT happen on FireFox 32 or 64 bit release candidate. They also don't happen on Safari 32 bit.
First, when I receive a re-entrant draw rect event, the screen does not update properly, it just sits there, even though I draw on the screen as before with the CGContextRef. So here is the flow:
-->mousedown event
user drags the mouse
invalidate a rectangle
-->drawrect event (nothing happens)
user drags the mouse
invalidate a rectangle
-->drawrect event (nothing happens)
etc.
Second, when I use a system dialog to (say) save a file or open a file or print something, the dialogs malfunction. When stopModalDialogWithCode is given a code, runModalForWindow always returns zero. I can fix this on my private dialogs, but not on the system dialogs.
Both of these issues surround the use of NSApp. I have to use it sometimes to flush events, etc etc and other basic things. Other things being equal I realize this might be undesirable, but we have 10 K companies who are asking for these basic things to work!
Does anyone have a clue or can you point me to some docs on what to expect with an out of process plugin?
thanks,
Bill Appleton
On Mon, Jun 14, 2010 at 6:49 PM, Mike Swingler
<email@hidden> wrote:
I believe the crux of the problem is that Safari is running your plugin in another process in 64-bit. Look for the WebKitPluginAgent and the WebKitPluginHost. You will probably want to attach to the WebKitPluginHost.
Regards,
~Mike
On Jun 14, 2010, at 4:20 PM, Bill Appleton wrote:
hi all,
actually, that is not working
its doing the same thing -- can't hit breakpoints
here is a key question: why does the 64 bit safari behave differently than 32 bit?
if i run my 32 bit npapi plugin it debugs great in safari, but not the 64 bit version
i have downloaded webkit etc to run with safari, maybe that will help
does this ring any bells out there?
thx
bill
On Mon, Jun 14, 2010 at 1:08 PM, Paul Sanders
<email@hidden> wrote:
Attach the debugger to the process running your
plugin, I would think. You can do this from within Xcode (Run -> Attach
toProcess). You would not need to debug Safari itself if the plugin is
running in its own process. Just launch it in the usual way.
Regards,
Paul Sanders.
----- Original Message -----
Sent: Monday, June 14, 2010 9:00 PM
Subject: can't debug safari plugin when using 64 bit
hi all,
i can debug my NPAPI
plugin in safari under 32-bit no problem
but under 64-bit my breakpoints
won't catch, etc. the plugin is running fine, and it is in 64 bit, but no
breakpoints, etc.
one difference is that under 64-bit safari the plugin
is running as a separate process...
does anyone have a clue about how to
debug in safari 64?
thanks,
bill appleton
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden