Windows 7 and firefox lead to "Error: Error calling method on NPObject!"

201 views
Skip to first unread message

Sergey Prosin

unread,
Nov 7, 2012, 12:48:43 AM11/7/12
to ff-acti...@googlegroups.com
We've developed ActiveX control which must be wordking in IE and firefox. For ff we are planning to use ff-activex-host plugin. The operational systems which must support the control are Windows server 2003 and later and Windows 7 and later.
In IE all is working the best way poosible, but as for ff, we have some strange issue here.
We test plugin on both Windows server 2003 x64 and Windows 7 x32 and within firefox 16.0.2 and Chrome 22.0.1229.94 m.
In Chrome all is working but as for ff, it works on Windows server 2003 x64 but doesn't work on Windows 7 x32. The exception is "Error: Error calling method on NPObject!" and the problem with the control is that it just doesn't react on any OS events (mouse clicks, for example).
To sum up, it doesn't work only with the mix of Windows 7 x32 and firefox 16.0.2, all other combinations are fine.
We can't understand what the problem could be and how to solve it. Any help would be really appreciated.
Thx in advance.

Leeor Aharon

unread,
Nov 12, 2012, 9:43:00 AM11/12/12
to ff-activex-host
Hello,

I'm sorry for the late reply.

Can you turn on logging (described on the wiki and in some other threads in this group) and post the output?

Thanks,
Leeor.



--
You received this message because you are subscribed to the Google Groups "ff-activex-host" group.
To view this discussion on the web visit https://groups.google.com/d/msg/ff-activex-host/-/1uDxdRUJhgEJ.
To post to this group, send email to ff-acti...@googlegroups.com.
To unsubscribe from this group, send email to ff-activex-ho...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/ff-activex-host?hl=en.

Message has been deleted
Message has been deleted

Sergey Prosin

unread,
Nov 15, 2012, 1:51:23 AM11/15/12
to ff-acti...@googlegroups.com
Hi, Leeor.

I've recorded a video desribing the error in detail. Hope it helps. Link.

Here is the output you requested (it's the same in Chrome and FF):
AxHost.TestAuthorization: returning True
AxHost.NPP_New: debug level set to 5
AxHost.verifyClsID: verified successfully
AxHost.setClsID: CLSID {D5C9D4E5-DE53-42D5-964B-D5B083A328D4} set
AxHost.CreateControl: control created successfully
AxHost.UpdateRect: failed to attach control

Looking forward to hearing from you.

Leeor Aharon

unread,
Nov 15, 2012, 7:14:44 AM11/15/12
to ff-activex-host
Thanks.

Looking at the attach() code there are only a couple of possibilities for it to fail. My best suggestion to you is to attach a debugger and place a breakpoint on that function. Sadly, I have not provided those classes a way to send logs yet.

This plugin does not emulate IE perfectly, it is missing some of the functionality provided by IE for ActiveX controls.

Leeor.


To view this discussion on the web visit https://groups.google.com/d/msg/ff-activex-host/-/3YLRIUN60G4J.

Sergey Prosin

unread,
Nov 15, 2012, 7:29:39 AM11/15/12
to ff-acti...@googlegroups.com
Hi, Leeor.

Thx for the response.

Have you watched the video?
Do you think the problem within attach method?
Logs are the same for FF and Chrome, but the problem is only within FF.  How can you comment that?

Anyway, I'll try to attach but as I understand it will require me to compile it by myself which is a problem because of some compilation errors, so it might take some time to be done.

Thx anyway.

Sergey Prosin

unread,
Nov 16, 2012, 8:49:57 AM11/16/12
to ff-acti...@googlegroups.com
Hi, Leeor.
We've solved this issue. Actually, there were 2 different errors in our code, minor and major. Minor: IOleObject - interface was't implemented but that doesn't affect anything except warning. The major problem was we used another event processing thread using Application.Run() method in .NET. I can't realize why that didn't affect Chrome behavior but after deleting this line problem was solved. Thank you for the help. Now it works perfectly.

Leeor Aharon

unread,
Nov 16, 2012, 8:51:30 AM11/16/12
to ff-activex-host

Great, I'm glad to hear your problem is solved :-)

Leeor.

To view this discussion on the web visit https://groups.google.com/d/msg/ff-activex-host/-/ogZOHAcpR9gJ.
Reply all
Reply to author
Forward
0 new messages