suddenly getting some strange errors compiling our app, which uses a plugin we wrote.
a dialog box pops up (twice) with the following messages, and these messages show up
on the console as well.
note that we don’t get these errors when building a desktop app, only a web app.
any help would be appreciated.
messages:
Oct 7 11:46:37 mymac Xojo[1016] : Runtime Error
Please report what caused this error along with the information below.
XojoPlugins/PluginBridge/Source/PluginDefinition.cpp: 566
Failure Condition: IsNativeTarget( whichTarget )
[quote=290519:@Robert Meyer]suddenly getting some strange errors compiling our app, which uses a plugin we wrote.
a dialog box pops up (twice) with the following messages, and these messages show up
on the console as well.
note that we don’t get these errors when building a desktop app, only a web app.
any help would be appreciated.
messages:
Oct 7 11:46:37 mymac Xojo[1016] : Runtime Error
Please report what caused this error along with the information below.
XojoPlugins/PluginBridge/Source/PluginDefinition.cpp: 566
Failure Condition: IsNativeTarget( whichTarget )[/quote]
Please file a bug report with all of the files in the plugin folder attached.
Usually when getting error like that then there is something wrong with the plugin.
Incorrect number of registered items from what the counter in the plugin says. (like if it says class has 7 methods but it only has 5)
Incorrect syntax in declaration that goes to Xojo
Segment placed in incorrect platform
You can look into your temp folder (specialfolder.temporary.launch) for the xojo scratch folder, into Caches folder for Xojo plugin and project caches.
I had a minor error with my custom plugin (just a text string error) and Xojo didn’t even load my plugin at all. I’d start there, especially if it’s been recompiled recently.
here’s a question for the group: is there a difference between a plugin
written for a desktop app vs. a web app?
our plugin has been working for a couple of years now in a desktop app,
but fails with a web app.
also, I put a really small plugin together today, with only 3 methods and a structure,
and it produces the same errors at compile time (as in my original post).
Yes. A Web app is a kind of console app. It has no GUI. It produces html, which is interpreted by the browser, which supplies the UI. The web app itself has no UI.
[quote=291430:@Robert Meyer]is writing a plugin for a web app somehow different than
writing a plugin for a console or desktop app?[/quote]
Not different than a console app. Different than a desktop app. Follow Christian’s advice.