I'm trying to develop plugin, which allows visitors of certain portal to scan a document page and upload resulting image on button being clicked.
I've almost achieved the goal, but my plugin fails to open scanner-specific image acquisition dialog when I launch it from Firefox 4, Windows (To be exact - latest version, 4.0.1).
When I call TWAIN-provided scanner selection dialog, everything works, dialog pops up as required, callbacks do their stuff.
When I call TWAIN image acquisition dialog (provided by scanner manufacturer's driver), plugin reports that it
Failed to load Data Source.
DataSource operation failed
RC: TWRC_FAILURE
CC: TWCC_LOWMEMORY
That behavior is documented to occur when calling program
But mysterious thing is that the exact same plugin, started in all other major browsers (Chrome, IE8, Opera and even ) behaves as expected - shows up device-specific scanning dialog.
To add some mystical smoke, I must add that this memory shortage occures only with some of tested scanners, there are scanners whose drivers work fine.
What am I doing wrong?
Are there some memory limitations for plugins in Firefox 4? All the corresponding process takes no more than 16MB of memory in Chrome during all the manipulations, both for image acquisition, its conversion with statically-linked ImageMagick and upload of the converted image to the server via SOAP call.
How can I solve this?
Tweak something in my code? Mess with firebreath-generated stuff?
Report FF4 bug and pray?
I'll be glad to provide all the required information, code snippets etc.
Firebreath is checked out from repository, version file says
Last Commit Date: Wed, 6 Apr 2011 17:57:12 -0600
I'm trying to develop plugin, which allows visitors to scan a document page and upload resulting image on button being clicked.
I am not able get the plugin window handle
FB::PluginWindowWin* w = (FB::PluginWindowWin*)(fb_win);
HWND hWndBrowser = GetAncestor( w->getHWND(), GA_ROOTOWNER );
this crashes my plugin ...
What am i doing wrong--
---
You received this message because you are subscribed to the Google Groups "firebreath-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firebreath-de...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.