Access Java app message loop from ActiveX control running in JNI

Anyone know how to access a Java application's message loop from inside JNI code?
Through the (JNIEnv *env) or (jobject obj) parameters maybe?
I've got an ActiveX dll that I'm running via JNI. The ActiveX dll creates an IP server on a separate thread. When another process connects to the IP server I need to PostMessage (MS Windows term) from this IP server thread to the thread that the Java application is running on.
It appears the Java application's message loop is not present / available in the JNI code and consequently the message is never posted from the IP thread to the JNI / Java App thread.
Of course I can manually add a message loop to the JNI code and the PostMessage works just fine. But then the message loop is executing and the Java application is effectively blocked and becomes unresponsive because the JNI method call never returns as its busy running this while loop doing a GetMessage --- DispatchMessage inside the ActiveX dll.
Maybe JNI is not really intended or this purpose and it's just not possible?
Thanks.

Hi Charbs, thanks for the reply.
I've done a bit more investigation, my application doesn't display any content if I set wmode to direct, even when I try and play a very simple .swf that in no way will be using stage3D.
I'm now assuming that setting direct wmode forces the .ocx to attempt rendering using Direct3D regardless of whether I use any Stage3D or not.  It would be interesting to find out if it is possible to set wmode to direct, and disable any use of Direct3D, although I suspect that setting wmode to direct would at least use Direct3D as its viewport regardless of any type of display generated by the swf.
I will investigate the Event.ERROR suggestion, but I'm not a Flash/AS programmer at all, I wouldn't know wher to start so this might take a while - unless any of you helpful souls might knock something up to output/log any error messages from a simple stage3d swf?
Also, I suspect that how I currently capture the display output and then transfer that to my own Direct3d texture/surface might not be compatible with how direct mode works.  Is there any in depth  technical documentation for how the ocx or projector handle direct wmode?

Similar Messages

  • Printing from ActiveX Control in crystal report 10 in IE7 not working

    Hi,
    I am using ActiveX Control for printing in Crystal Report version 10 using Java. When I click on print button, ActiveX control dialog box opens and then click print button, the dialog box shows it's printing and does not stop and there is no print on printer. If any body have idea to resolve this issue, kindly tell me as soon as possible.
    Thanks in Advance,
    Nasir Nawab

    Hello,
    CR 10 is not supported in IE7. It may work if you use the Legacy mode in IE7. Also check your pop-up blocker and allow ActiveX controls to be installed.
    Thank you
    Don

  • Problems with CR used by a Java app when converting from WebSphere v5 to v6

    Background:  I have been assigned support of an old Java app, currently running just fine in a WebSphere v5 environment.  It uses CR to produce 4 reports.  Running the app in the WebSphere 6 environment, 2 work and 2 don't.  (!?!?)
    I don't know what version of CR the reports were originally designed in - nor do the people who produced them 6 years ago.  I have tried installing (and uninstalling) various versions of CR on my PC (v7, v8, v8.5, v9, v10, v11) to see if I can find one that would work with the .RPT files.  None do.  Either I get a warning that the report file is in an old format and saving it will prevent its use by the older version - whatever that may be...; or it opens the report, but when I click on the Database tab on the menu bar, CR locks up my machine.
    It has been decided by my management that it would be best to just upgrade to CR vXI and continue from there.  The XI 'developers edition' is what I am currently running.  However, when I open the .RPT file (one of the ones that work), it takes about 5 minutes; then when I click on the Database menu item, it locks-up my pc.
    I have other experience using (back-versions of) CR, but have never run into anything like this.  Has anyone had any experience with upgrading reports designed for Java to the vXI?  Can you provide me with any information, hints, suggestions about how I might proceed?
    Thank you, in advance, for any assistance you might be able to render.  Regards,
    Jeff Emslie.

    Hi, Jadie.
    Thanks for the quick response.  It may be the original report definition was designed pointing to SQL/Server v7, then was being overriden by the Java code to SQL v2k - which we are about to convert away from...  I have no experience integrating CR into a Java app.  I don't know how the data source specification works with Java.  That is why the first thing I'm trying to do is to look at the Database connection: to see how its done.
    As for the version it was originally written in; I don't know what it is.  No one here knows.  I have tried every (old) version of CR we have in the shop (list above).  None seem to work correctly with these .RPT files.  Do you know of a way to determine the CR version of an unknown .RPT file?
    Thanks,
    Jeff.

  • How to access Oracle Apps 11i forms from Virtual Machine(Vmware Player)?

    Hi,
    I have installed Oracle Apps 11i on native OS OEL5 Server and Windows XPP on Virtual Machine using Vmware Player on standalone same desktop.Now how to access Oracle Apps 11i from Virtual Machine(Windows XPP)?
    Thank's
    Regard's
    Rerry

    Hi,
    Sorry my instance is PROD instead of TEST.
    1)Renamed the sqlnet.ora and make the following change in the tnsnames.ora (SERVICE_NAME = PROD) to (SID = PROD) and tryed but same error.
    2)Only one oracle homes on the cleint machine
    3)The output of tnsping PROD
    Microsoft Windows XP [Version 5.1.2600]
    (C) Copyright 1985-2001 Microsoft Corp.
    C:\Documents and Settings\Administrator>tnsping PROD 5
    TNS Ping Utility for 32-bit Windows: Version 8.1.7.0.0 - Production on 23-FEB-20
    10 00:38:40
    (c) Copyright 1997 Oracle Corporation. All rights reserved.
    Attempting to contact (ADDRESS=(PROTOCOL=tcp)(HOST=SHUBH.hnp.com)(PORT=1521))
    TNS-12570: TNS:packet reader failure
    Normal ping is ok from both host to guest and guest to host.
    Thank's
    Regard's
    Rerry

  • After downloadeding the latest Java plugin, I start to receive "Please configure your browser to allow Java applets to access the filesystem" message when I try to run a download wizard. What do I need to do? BTW, IE does not have this problem.

    I had no problem using a download wizard Java applet to download file to my computer from an SFTP site using Firefox. When I tried to do the same thing with Chrome, I was told to download the latest plugin. Once I did that, I receive the following message when I run the downlaod wizard:
    The Java Wizard cannot run.
    Please configure your browser to allow Java applets to access the filesystem.
    I got the same message using Firefox and Chrome. However, I have no problem using IE to run the same download wizzard. Please help.

    If the problem is with a site that is hosted using MOVEit DMZ by Ipswitch, please notify the site owner of the issue and ask them to apply the patch that is available on the support site to resolve the issue.
    This is a better resolution than downgrading your version of Java that was updated due to security issues.

  • Continuously play an audio file in a java app?(loop)

    NOTE: I AM NOT TALKING ABOUT PLAYING A FILE IN AN APPLET!
    What I need is a way to play the file continuously (or get the file to loop) in a java APPLICATION
    I have found a way to play a file in a java Application : (but i cannot get it to loop)
    Here is what I have so far:
    import sun.audio.*;
    import java.io.*;
    FileInputStream in = new FileInputStream(Filename);
    AudioStream as = new AudioStream(in);
    // Use the static class member "player" from class AudioPlayer to play
    // clip.
    AudioPlayer.player.start(as);
    but How do I make it loop??
    Is there anyway I could possibly use the URL class instead to open the file and the use the AudioClilp class to play that file
    This is something I found on another website that uses this idea, but I dont know how to use it.
    According to the author:
    newAudioClip(URL) is a static method in Applet Class, so it can easily be used in Applications as well.
    e.g.
    AudioClip ac = Applet.newAudioClip(url);
    ac.play(); //play once
    ac.stop(); //stop playing
    ac.loop(); //play continuously
    Here url can refer to some file within the jar file. So, this method is very useful.

    someone16 wrote:
    NOTE: I AM NOT TALKING ABOUT PLAYING A FILE IN AN APPLET!Please don't shout. It's considered rude.
    >
    >
    What I need is a way to play the file continuously (or get the file to loop) in a java APPLICATION
    I have found a way to play a file in a java Application : (but i cannot get it to loop)
    Here is what I have so far:
    import sun.audio.*;
    import java.io.*;
    FileInputStream in = new FileInputStream(Filename);
    AudioStream as = new AudioStream(in);
    // Use the static class member "player" from class AudioPlayer to play
    // clip.
    AudioPlayer.player.start(as);
    but How do I make it loop??Err ... maybe place the code in a loop.
    Is there anyway I could possibly use the URL class instead to open the file and the use the AudioClilp class to play that file
    This is something I found on another website that uses this idea, but I dont know how to use it.
    According to the author:
    newAudioClip(URL) is a static method in Applet Class, so it can easily be used in Applications as well.
    e.g.
    AudioClip ac = Applet.newAudioClip(url);
    ac.play(); //play once
    ac.stop(); //stop playing
    ac.loop(); //play continuously
    Here url can refer to some file within the jar file. So, this method is very useful.So you can use a URL.

  • When trying to display census pages I get error ActiveX controls missing

    What are ActiveX controls and how can I install them? When trying to display certain images such as a census page I get the message that certain ActiveX controls are missing. I am using Windows XP and the current version of Firefox.

    ActiveX is an Internet Explorer plugin system and will not work in Firefox or many other browsers. If the site requires ActiveX you will need to use Internet Explorer to access the site.

  • How do I access my Apps in iTunes on my computer

    I'm trying to access my apps on iTunes from my computer but it will only stay on my music won't let me go no were else but to the iTunes store

    Ive done that.. a laptop at home and one at work.. one I can get it on- the other it shows the libary now that ive matched it- but its all grayed out and i cant access it

  • ACtiveX Control

    Error message when starting Quicktime after installation.
    "Could not load or find Quicktime ActiveX control"
    Running Vista 64 bit

    you can't mate, simple as that.

  • How to access Oracle Apps 11i forms using Vmware Player?

    Hi,
    I have installed Oracle Apps 11i on native OS OEL5 Server and guest OS Windows XPP using Vmware Player.Now how to access Oracle Apps 11i forms from Windows XPP using Vmware on my OEL5 Server Desktop?
    Thank's
    Regard's
    Rerry

    Hi,
    If you mean how to access eBusiness Suite from within the Virtual Machine, then you just navigate to the same URL you normally would. You may need to put the machine alias in your hosts file if you are referencing it via machine name rather than IP address.
    If you mean that you want to load the form in forms builder (for example) then you need to FTP the form from server to client (as you normally would) and then open it in your client (XP virtual machine).
    If you want to use Workflow Builder (as per your original requirement) then you need to ensure that the TNSNAMES.ora file in the Workflow Builder home has an entry for your instance on Linux, and then you should be able to connect to the database directly.
    HTH,
    Matt
    WorkflowFAQ.com - the ONLY independent resource for Oracle Workflow development
    Alpha review chapters from my book "Developing With Oracle Workflow" are available via my website http://www.workflowfaq.com
    Have you read the blog at http://www.workflowfaq.com/blog ?
    WorkflowFAQ support forum: http://forum.workflowfaq.com

  • Break out of a while loop from outside the loop

    Hello,
    I have an application where I have some nested while loops. Is it possible to break the innermost loop from a control that is outside of the inner loop? My inner loop is running a scan and read operation on the serial port and is reading data as it somes in. I need this loop to break when the user presses a button located in one of the outer loops so that another section of the vi can execute. Thanks in advance.
    Greg
    Gregory Osenbach, CLA
    Fluke

    Greg,
    You should place the terminal of the button in the innermost loop and wire out from there to the other locations the value is needed. If these are nested loops, the controls will not get read until the outer loop iterates again and this can only happen if the inner loop has ended anyway. Thus your scheme will not work.
    Alternatively, you can place the control in a loop that executes in parallel,then use local variables of it in the other locations, but the above solution is better.
    LabVIEW Champion . Do more with less code and in less time .

  • Linking a document library to a Sharepoint/Access 2013 App

    I am not a developer but I am playing with building an app within SharePoint 2013.  I am an office 365 subscriber.  I am attempting to build an app that would act as a simplified CRM for SharePoint.  I would like to add attachments like emails
    and pdfs to the records I create and it appears the attachment feature is not available within the app environment.  I also can't figure out how to link a document library and it's records to an app as I thought this might be a work around.  So here
    are my two questions:
    Is there a way to add attachments directly into a sharepoint/access web app within sharepoint?
    If not is there a way to connect a document library to the sharepoint access web app as a work around?
    If you have any other ideas they would be greatly appreciated.  Thanks in advance.
    Ben

    I know this is a year late, but for anyone still searching for this, I found a solution that works well for me:
    1. Create the table in the Access Web App that you wish to attach files to.
    2. Use Sharepoint Business Connectivity Services to read the data in the background database for your Access Web App.
    3. Create a document library in Sharepoint, adding an external data column type, using the content type you created in Business Connectivity Services.
    You can now specify an access web app table row from within your document library in sharepoint.
    4. In Access, link a table to the sharepoint document library.  
    5. Edit the default created datasheet from your linked table, to include the fields you wish to display.  Include the field that is used for your field name in the document library - it has a hyperlink included in it.
    6. In the view form for your original table (step 1), add a subview, specifying the datasheet from step 5 and linking by the field id that should now be shared between your original table and the linked sharepoint document library.
    You can now see the files attached to the table item, including a hyperlink in the file field.
    7. Add a hyperlink to your view form to the upload.aspx in the document library.
    8. For added ease, you can pass the row id of your original table to the external content id of the document library within the url.  This takes added javascript work on editform, but it makes it so that the user does not need to select the external
    data.  You can even hide the field if you wish, but I kept it visible so that I can edit within the library.
    A true step by step would take a lot more time.  If you're familiar with these subparts, this should make sense to you.  I hope.

  • My copy of Address Book App was erased from Maverick. How can I replace it?

    Address Book App was deleted from the iMac running Maverick. My other iMac runs Snow Leopard and that version of Address Book 5.0.3. won't run on Maverick. Where can I d/l the software?
    And how can I copy in the addresses from 5.0.3?
    Appreciate the help.

    I bought this iMac and another from a non-prof group that got a gift of newer Macs. The addresses in Address Book were theirs. I thought I was deleting them, but deleted the entire address app. This is the only machine I have running Mavericks. Others are on Snow Leopard.
    I do not have the Mavericks install disk but I'll ask for it tomorrow.
    PeachMac offered to install Address Book and any other system software for $69. But that's still not my contact list of 200 or so.
    I'm investigating resources.
    First I have to send my broken, no-boot MacBookPro to Florida for a motherboard or whatever it needs. I have a Snow Leopard Time Machine back-up for that. I doubt there's a way to Restore that back-up to a Mavericks machine. Apple ain't that kind.

  • Hi, my java app seems "stopping there"

    hi
    yes, my java app stop there itself
    it has run for 2 days
    but now, it doesn't work
    on windows task manager, i can see java.exe's info
    thread counts - above 100
    cpu - 0
    head - 50,152
    and all the number not change for 1 day, and seems not change for erver
    what happened?

    yes, sorry for my poor description
    the java app worked normally first two days,
    and it should work 7*24,can't be interrupped,
    now it doesn't work without any error information
    i only can see that ,all of "java.exe" 's information on the windows task manager don't change any more, seems it dead
    if something error, then on the windows task manager would see the head grow up, or threads grow up,or CPU grow up, but now ,they don't change

  • Asset accnting - Documents from last posting run in 2007 r not yet updated

    Dear expert,
    I have accidentatlly repeat run the depreciation so I deleted the batch file and re-run the correct one however I received message Documents from last posting run in 2007 are not updated. How to correct this?
    thank you

    I have resolved this issue. Actually the porblem was not as complicated as I thought.
    Since I have accidentally run the reverse depreciation for 2007, I just let it post to 2007 period 12.
    Then I changed the depreciation key back to ZLIN and re-run the depreciation and posted it in 2007 period 12. By doing this I nullified the previous wrong depreciation.
    Next step I carried AJAB and closed the year 2007 without error. After that I went to change back the depreciation key to '0000' no depreciation.
    With this workaround I managed to resolve the problem.
    From this experience I advice user who want to change the depreciation key, before doing that better make sure your previous year has been closed. Else you will have problem closing your previous year after you have changed the depreciation key.
    Dear Paul Annotee,
    Many thanks to the support and suggestions you have given me. Thanks again.
    regards,
    Max

Maybe you are looking for

  • Issue with AdvancedDataGrid in Flex SDK 3.3

    Hello Forum, I downloaded and installed Flex SDK 3.3. Once I pointed my environment to the SDK 3.3, compiler complained that it can't find AdvancedDataGrid component in the path. After some investigation, I was able to fix this issue by downloading F

  • Excise Tax configure

    Hi experts, How to configure the excise tax? From non-excisable warehouse how will sell the excisable item for Vat is it possible? thank you

  • Download is not initiating

    Hi, I have downloaded the download assistant, installed it and I've trying to download Adobe Illustrator CS5.1 (English). the Adobe Download Assitant window is open without further action. What do I need to do now?

  • Local Username and Password

    I have AAA running on my router and I can authenticate/authorize using the ACS server. I wanted test my config so I turned off the ACS server and tried logging in using the local username and password, I authenticate fine but then I get %Authenticati

  • Nomad Muvo TX 128 MB Firmware upgrade trou

    Ok, for I can see the last version of the firmware for this player is the .4.02 Here's the link: http://cl.creative.com/support/downloads/download.asp?sOSName=Windows+XP&region=&Product_Na me=MuVo+TX&Product_ID=9672&modelnumber=&driverlang =034&OS=0&