{"id":1073,"date":"2022-08-30T15:11:56","date_gmt":"2022-08-30T15:11:56","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2013\/11\/09\/problem-about-air-native-extension-collection-of-common-programming-errors\/"},"modified":"2022-08-30T15:11:56","modified_gmt":"2022-08-30T15:11:56","slug":"problem-about-air-native-extension-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2022\/08\/30\/problem-about-air-native-extension-collection-of-common-programming-errors\/","title":{"rendered":"problem about air-native-extension-Collection of common programming errors"},"content":{"rendered":"<ul>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/653eae99b75e00ca20600d5b771f6588?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\npaleozogt<br \/>\nc++ air-native-extension<br \/>\nBefore I ask my question, I want to say I realize there are some &#8220;similar&#8221; questions but nothing (that I can find) that specifically answers my question, so here goes.I&#8217;m wondering if the following is possible. Lets say I create a new instance of a class, like so:MyClass* classInstance = new MyClass();I&#8217;m wondering if it&#8217;s possible to store the raw memory address in say, a primitive type like an int. Then, somewhere in C++ no-mans-land where I do not have a pointer to classInstance, I can do something like t<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/2969fbcf2941ca4891df0c557e2ac1be?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nThomas Pujolle<br \/>\nflash command-line mxmlc air-native-extension<br \/>\nI need to setup a continuous environment allowing to build air apps, and so I have to setup some ANT script to compile my flash then package it.I came across the flex task mxmlc which is the base tool to build .swf.I have setup a base build file using this tool, but my project uses .ANE, and I cannot get them to be included as my swf compiles. I end up with errors as many classes are unknown.Here is my b<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/a46354b97fc00ae6f54a11333be71185?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nHans<br \/>\nandroid flex google-maps air-native-extension<br \/>\nI&#8217;m creating a native extension that shows a native Google Map from a Flex-based AIR application. You can watch lee brimelow&#8217;s demo to get the idea: https:\/\/plus.google.com\/110495278155587072613\/posts\/degSYVx8423I got a working demo of a native extension, just to show an Activity with some buttons, but I got stuck when I tried to show the map. Here is the exception I&#8217;m getting on setContentView(layoutID):05-08 11:48:40.624: I\/System.out(27917): WebViewActivity.onCreate failed with error:05-08 11:48:40.634: I\/System.out(27917): &#8220;android.view.InflateException: Binary XML file line #9: Error inflating class fragment&#8221;05-08 11:48:40.644: W\/dalvikvm(27917): threadid=1: thread exiting with uncaught exception (group=0x40fd8468)05-08 11:48:40.654: E\/AndroidRuntime(27917): FATAL EXCEPTION: main05-08 11:48:40.654: E\/AndroidRuntime(27917): java.lang.RuntimeException: Unable to start activity ComponentInfo{air.GoogleMapsApp.debug\/com.trasys.googlemaps.WebViewActivity}: java.lang.RuntimeException: Attempting to create multiple DataRequestDispatchers05-08 11:48:40.654: E\/AndroidRuntime(27917): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2351)05-08 11:48:40.654: E\/AndroidRuntime(27917): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2387)05-08 11:48:40.654: E\/AndroidRuntime(27917): at android.app.ActivityThread.access$600(ActivityThread.java:151)05-08 11:48:40.654: E\/AndroidRuntime(27917): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1331)05-08 11:48:40.654: E\/AndroidRuntime(27917): at android.os.Handler.dispatchMessage(Handler.java:99)05-08 11:48:40.654: E\/AndroidRuntime(27917): at android.os.Looper.loop(Looper.java:155)05-08 11:48:40.654: E\/AndroidRuntime(27917): at android.app.ActivityThread.main(ActivityThread.java:5454)05-08 11:48:40.654: E\/AndroidRuntime(27917): at java.lang.reflect.Method.invokeNative(Native Method)05-08 11:48:40.654: E\/AndroidRuntime(27917): at java.lang.reflect.Method.invoke(Method.java:511)05-08 11:48:40.654: E\/AndroidRuntime(27917): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1029)05-08 11:48:40.654: E\/AndroidRuntime(27917): at com.android.internal.os.ZygoteInit.main(ZygoteInit.j<\/li>\n<\/ul>\n<p id=\"rop\"><small>Originally posted 2013-11-09 23:21:28. <\/small><\/p>","protected":false},"excerpt":{"rendered":"<p>paleozogt c++ air-native-extension Before I ask my question, I want to say I realize there are some &#8220;similar&#8221; questions but nothing (that I can find) that specifically answers my question, so here goes.I&#8217;m wondering if the following is possible. Lets say I create a new instance of a class, like so:MyClass* classInstance = new MyClass();I&#8217;m [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-1073","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/1073","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=1073"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/1073\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=1073"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=1073"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=1073"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}