Form displays modeless despite being called using ShowDialog() when called in a separate thread

I have a java application which loads a C++ dll in order to launch VB components.
Recently the VB activex components were upgraded to C# .NET.But some of the activex components referenced within the C# dlls had to be retained as is.
There were issues of the C# components  not being launched since the Activex components cannot be Instantiated 
in a Multi threaded Aparatment thread. Java as far as I know does not support single threaded apartments.
So we had to create a new thread in the C++ dll (which acts like the interface between Java and C#) and then
the components were launching properly.
Now the issue is that even when the forms are being called using ShowDialog, the modality is lost.
Does anybody know why this happens and a possible solution to the issue.

I have a java application which loads a C++ dll in order to launch VB components.
Recently the VB activex components were upgraded to C# .NET.But some of the activex components referenced within the C# dlls had to be retained as is.
There were issues of the C# components  not being launched since the Activex components cannot be Instantiated 
in a Multi threaded Aparatment thread. Java as far as I know does not support single threaded apartments.
So we had to create a new thread in the C++ dll (which acts like the interface between Java and C#) and then
the components were launching properly.
Now the issue is that even when the forms are being called using ShowDialog, the modality is lost.
Does anybody know why this happens and a possible solution to the issue.
Hello,
It seems like this issue is similar to this one
ShowDialog call of a windows form is not really modal when called from a java Application.
Since we could not test it directly, I would recommend you try to call it by specifying the owner for that form.
Regards.
Carl
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place. <br/> Click
<a href="http://support.microsoft.com/common/survey.aspx?showpage=1&scid=sw%3Ben%3B3559&theme=tech"> HERE</a> to participate the survey.

Similar Messages

  • Oracle Forms in R11i apps Q how to requery when called form is closed

    Scenario:
    I have formA. I am calling another formB from FormA. When I do update on Form B and close the control needs to come back to formA and requery (so I can see changes to the updates done in formB).
    Issue:
    I’m successfully launching formB (using fnd_function.execute) and able to update but when I close formB, I’m not able to requery as the control is not coming back to formA.
    Which event should i use when i close the FormB so i can navigate back to called FormA and Requery. ( i tried exit_form, key-exit, the formB is only closing but unable to go to formA)
    Thank you.

    I'm not 100% sure, but I believe ZOOM should work in your case. A slightly dated but valid explanation is here - http://download.oracle.com/docs/cd/A60725_05/html/comnls/us/fnd/zoom05.htm#codezoom
    Pl see the Application Developer Guide for your release of EBS at http://www.oracle.com/technetwork/documentation/applications-167706.html
    HTH
    Srini

  • RollbackException using UserTransaction when calling EJB in separate server

    I'm using WL 6.1 on Solaris and am calling a stateless session EJB that
              is running in a separate server. I'm looking up the remote EJB using
              JNDI and calling through it's home interface. This works fine but if
              the client code begins a UserTransaction, then calls the EJB that's in
              the separate server, and then calls commit on the transaction, I get the
              following:
              weblogic.transaction.RollbackException: Aborting prepare because some
              resources could not be assigned - with nested exception:
              [javax.transaction.SystemException: Aborting prepare because some
              resources could not be assigned]
              The code that works looks like:
              rgData =
              HomeHolder.ROUTING_GUIDE_MGR_HOME.create().getResourceOptions(qd);
              whereas the code that fails is:
              UserTransaction transaction = new UserTransaction();
              transaction.begin();
              rgData =
              HomeHolder.ROUTING_GUIDE_MGR_HOME.create().getResourceOptions(qd);
              transaction.commit();
              If I put the EJB in the same server as the client, I don't get the
              exception so it seems to be related to running it in the separate server
              and using the UserTransaction. The deployment descriptor of the EJB
              states that it "Supports" transactions.
              Any ideas?
              Thanks,
              John
              

    Yes, actually we are using:
              AppServerTransaction transaction = new AppServerTransaction();
              which is a wrapper which does what you say:
              Context ctx = new InitialContext(...); // connect to another WLS
              UserTransaction tx = (UserTransaction)ctx.lookup("java:comp/UserTransaction");
              and our HomeHolder does what you say as well:
              Homexxx home = ctx.lookup(...);
              Any ideas why surrounding the EJB call by a UserTransaction causes a problem when
              committing?
              Thanks,
              John
              Dimitri Rakitine wrote:
              > John Hanna <[email protected]> wrote:
              > > I'm using WL 6.1 on Solaris and am calling a stateless session EJB that
              > > is running in a separate server. I'm looking up the remote EJB using
              > > JNDI and calling through it's home interface. This works fine but if
              > > the client code begins a UserTransaction, then calls the EJB that's in
              > > the separate server, and then calls commit on the transaction, I get the
              > > following:
              >
              > > weblogic.transaction.RollbackException: Aborting prepare because some
              > > resources could not be assigned - with nested exception:
              > > [javax.transaction.SystemException: Aborting prepare because some
              > > resources could not be assigned]
              >
              > > The code that works looks like:
              >
              > > rgData =
              > > HomeHolder.ROUTING_GUIDE_MGR_HOME.create().getResourceOptions(qd);
              >
              > > whereas the code that fails is:
              >
              > > UserTransaction transaction = new UserTransaction();
              >
              > It's an interface, how did this work? Assuming that you do not want
              > distributed tx, does this work:
              >
              > Context ctx = new InitialContext(...); // connect to another WLS
              > UserTransaction tx = (UserTransaction)ctx.lookup("java:comp/UserTransaction");
              > Homexxx home = ctx.lookup(...);
              > tx.begin();
              > home.create().getResourceOptions(qd);
              > tx.commit();
              >
              > ?
              >
              > > transaction.begin();
              > > rgData =
              > > HomeHolder.ROUTING_GUIDE_MGR_HOME.create().getResourceOptions(qd);
              > > transaction.commit();
              >
              > > If I put the EJB in the same server as the client, I don't get the
              > > exception so it seems to be related to running it in the separate server
              > > and using the UserTransaction. The deployment descriptor of the EJB
              > > states that it "Supports" transactions.
              >
              > > Any ideas?
              >
              > > Thanks,
              >
              > > John
              >
              > --
              > Dimitri
              

  • Asynchronous call using ATMI library call

    I was wondering is there anything have to change in the CONFIG file if the service
    has to be be called synscronously and asynchronoously by two different clients.
    BTW in any case i have to change anything differently if the service is called
    asynchronously by a client .
    thanks in advance

    it depends how you are calling the services.
    If you are calling the services asynchronously with TPNOREPLY
    flag set and you are putting a lot of requests in the pipeline
    then you must have enough of server instances to process the requests as fast
    as the requests are coming otherwise the
    server queues will start filling up.
    in any case with tpacalls the better thing is to have some
    flow control at the client itself.50 requests in the pipeline
    is the limit tuxedo has.if you will put more requests than 50
    a handle of -1 will be returned by tuxedo.
    if your set up is according to tpacalls then it will be fine
    for synchronous calls also but vice versa is not true.
    thanks
    Roopesh
    "tatireddy" <[email protected]> wrote:
    >
    I was wondering is there anything have to change in the CONFIG file if
    the service
    has to be be called synscronously and asynchronoously by two different
    clients.
    BTW in any case i have to change anything differently if the service
    is called
    asynchronously by a client .
    thanks in advance

  • How old is my display?  I bought it used, wonder when it was made?

    I bought a used 23" monitor, and I was wondering....
    Since these things have been around for almost four years now, I wonder if anyone out there can tell me how to find out if the model I have is three months old or three years old. It's not that important to know, but I am curious.
    Thanks!

    This database:
    http://www.chipmunk.nl/klantenservice/applemodel.html
    Should also give you the information, including the facility it was manufactured in.

  • Cfreport call returns html when called within ajax tags

    I'm "ajax-izing" an application.
    I had a data collection cfform that on submit called
    template2.cfm that did a query and invoked a <cfreport>
    It worked great.
    I stuck the same cfform tag within a cflayout and cfpod tag
    and now, instead of a new PDF page displaying, I get goble-d-****
    within the cfpod of the calling template.
    Several posts on the web note that because the whole form is
    not submitted, the header of the calling template stays in force,
    preventing the browser from opening a new PDF window (or some such
    thing).
    I really don't care why. I just want a workaround.
    Is there some way to basically get a targer="_blank" or
    something so that the submission of the form within a cfpod, etc.
    will create a new browser window that will display the cfreport's
    PDF?
    Thanks.
    Craig

    What's the best way to figure something out? Post your question on a forum.. your bound to figure it out for yourself soon after.
    I don't realize that I had to include more of the path in the javascript call.
    req.open("GET","/appName/LoadItemsServlet",false);
    I guess maybe because it was being called from a window that was opened by a javascript window.open method?

  • Possibility to show caller's name when calling to ...

    Hello,
    when i call from skype to mobile number, receiver sees me as unknown.
    How can i change it to my name or phone number?

    Hi, Lex..., and welcome to the Community,
    Here is a link to the FAQ article which explains how to set up Caller ID:
    https://support.skype.com/en/faq/FA1248/what-is-caller-identification-and-how-do-i-set-it-up
    Here is a link to the library of FAQ articles for all Caller ID topics:
    https://support.skype.com/en/category/CALLER_IDENTIFICATION/
    Caller ID is not one of those systems which can be guaranteed.  Community Contributors WD9EWK/Patrick and Neil have detailed the vagaries of networks not transmitting caller ID data, and so on.
    Regards,
    Elaine
    Was your question answered? Please click on the Accept as a Solution link so everyone can quickly find what works! Like a post or want to say, "Thank You" - ?? Click on the Kudos button!
    Trustworthy information: Brian Krebs: 3 Basic Rules for Online Safety and Consumer Reports: Guide to Internet Security Online Safety Tip: Change your passwords often!

  • Use subflow or redirect step when calling another script

    I have a main AA script and it calls another script when caller press option 6.  When a caller presss 6 it is only transferring the call to the sub script.  it does not return any values to the main script.
    In this situation, is it better to use subflow or redirect step.  i am think redirect step but just want to check with the user community.
    thanks in advance.

    Either will work. Here are a few thoughts to consider in no particular order:
    Subflows count toward the originally triggered scripts' maximum step count. If you have a lot of steps, this may result in an exception. Redirecting the call restarts this counter since the newly triggered script will have its own counter.
    NOTE: You might think that this is exactly why the Trigger Application step in Synchronous mode was created for. Alas, there is a bug which renders this useless in 7.0(1): CSCtd72562
    Redirecting the call will result in the user hearing ringback. This would occur because of the recommended two-second delay step following the Accept step of a step to prevent a race condition. I find this to be irritating enough to shy away from it mid-way through an IVR if possible.
    Subflows are more difficult to debug. You need to have sufficient code embedded in them such that you can trigger and reactively debug them.
    Be sure that the redirect destination of an actual CCX Trigger (CTI Route Point). Do not set it to a value in UCM that is translated or forwarded back to CCX. This results in a race condition which CCX does not handle well.
    If you were asking me as an individual my answer would be this: Is the code small enough and not reused elsewhere? If yes, then put it in the first script and avoid this topic all together. If it's reused in a bunch of places from multiple scripts and does not represent a large quantity of steps: use a subflow. Otherwise use Trigger Application if you're on a new enough version or Call Redirect if you're not.

  • Suggestion: Direct Video Call using 3G network.

    I found there is not Direct Video Call option in any Android version by default Like it is in iPhone and Symbian phones, we can do a Video Call directly using the 3G network by dialing the number like we dial it for a normal call. Samsung and some HTC phones have implemented this in their andriod phones. I want to suggest please implement this Video calling feature in Sony Xperia phones. Note: I am not talking about Video call using any Video Calling App like skype or hangout or tango etc. I am talking about direct 3G network Video Call by dialing the number. So better people avoid replying to the post with useless replies

    You might be right at your place, many people may not need it because there are many free video calling apps in google play. But if you believe me, there are still some people here in our region, they do not know how to use google play or a google ID, and if they do not know what is google play how they will download an app for a video call.many people are backword here, some of them even do not know how to use these video call APPS. The purpose of my this suggestion is for those people who are not able to download and who are not able to use these video callings apps. if this features enables, they can just make a video call like a normal call only network data charges apply and that is it. I have also requested the same feature to android.

  • Hide UserID, Password, and Report Path when call Report from Report

    Hi,
    I have been able to call Report from Report using the hyperlink.
    I put these code in my Field on the Report caller.
    function F_3FormatTrigger return boolean is
      temp varchar2(2000);
    begin
      temp := 'http://<computer_name>:8889/reports/rwservlet?';
      temp := temp || 'server=repsrv' || '&' ||
                         'report=C:\MyReport\rep_detail.jsp' || '&' ||
                         'userid=scott/tiger@orcl' || '&' ||
                         'desformat=htmlcss' || '&' ||
                         'destype=cache' || '&' ||
                         'P_1=' || :ItemID || '&' ||
                         'P_2=' || :ItemName;
      SRW.Set_Hyperlink(temp);
      return (TRUE);
    end;The hyperlink showed, and I can see the rep_detail.jsp showed in the same browser after I clicked the hyperlink.
    The problem is, the hyperlink has to include the reports path and also userid and password.
    If I did not put the userid and password, it will showed in another browse that
    "The report has uncompiled PL/SQL"
    How can I hide those userid, password, and the reports path?
    BTW, Is there anyway to show the report callee in different page (precisely, open another IE) from the report caller?
    Any help would be grateful.
    Many thanks,
    Buntoro

    Hi,
    Thanks for the answers.
    Yet, I am still doubt about using cgicmd.dat.
    I have looked around in this forum saying that it is not secure to use cgicmd.dat. Because all report request does not use authentication (the client can directly open report without login).
    In Form, I can use the On-Logon to do the Oracle Form login (to do logon to the database), and then I use my own custom user login to restrict the menu for each user.
    I do this since I want to restrict the user,
    i.e user A can only view the sales form as well as sales report,
    user B can only view the purchasing form as well as purchasing report.
    Well, I am not so fond about the SSO itself.
    It comes to my mind, since I don't have to re-login (to the database) each time I call another form (login database is only once at the first Form, On-Logon). It also goes to when calling the report caller.
    What is RAD?
    How can we use it?
    Is OID = Oracle Internet Directory?
    If true, maybe, I won't use it since I don't understand about it also.
    Why we don't have to specify the userid and password when Form calls Report1 (using Run_Report_Object and Web.Show_Document())?
    But we have to specify the userid and password when Report1 calls Report2.
    Any help is appreciated.
    Many thanks,
    Buntoro

  • Server actions when calling dbms_error_code

    Hi all,
    The database is Oracle 10g 10.2 , and the GUI is Forms R6i with patch 17.
    Our application has a logout process , using the logout built-in, if the user does nothing during a certain number of time.
    In our pll library code there is a call to the dbms_error_code built-in executed when the ON-ERROR forms trigger is raised. It is logical that the ON-ERROR trigger is raised after the logout process if the user wants to do something.
    Our customer complains that there is a Forms alert saying that there is an error when calling the dbm_error_code built-in. I tested the scenario but I could not produce the error.
    So I want to know the actions involved into the database when calling the dbms_eror_code from Forms.
    Thank yiou very much indeed

    Sorry you had to discover this bug, Michael. It is a known issue we outlined in the release notes, and have since repaired it in the upcoming release. This is only an issue when your API returns an array of strings, as is the case for the default ValuesController
    file. Sorry about that, but know that we've fixed it. 

  • Online number is busy when called

    I signed up for a new online number today. Paid for 12 months. It works for outgoing cals, but when you call the number it's always busy.
    I even tried to activate call-forwarding, but when called the number is busy.
    Any ideas?

    So do I have such a problem. very frustrated

  • Iphone 4s - how do I change the name in the contacts for the owner of the phone - it is coming up as the other person who uses the laptop - so when ringing or texting anyone 2 names are being used as the caller id on the screen

    Iphone 4s - how do I change the name in the contacts for the owner of the phone - it is coming up as the other person who uses the laptop - so when ringing or texting anyone 2 names are being used as the caller id on the screen

    *Ralph Johns* writes:
    "Your options are:
    Get a trial account form @mac which will work as an iChat name after the 60 days run out but not be a email account that is valid (And is free)"
    Do you mean a trial account from .Mac? (DotMac)
    "Get an AIM Screen name and set it to Display what you want as you set it up.
    The Screen name can be whatever yu want but you can also set it to display something else as well."
    I had thought about this, but it seems other people have already chosen the screen name "pinksharkmark" and virtually every variation of it I can think of. So that isn't an option for me. As for getting it to display something else as well, do you mean that if I were to get an AIM screen name like "CromulentCat" I could somehow log in to iChat under the AIM account "CromulentCat" yet get iChat to represent me to my Buddies as "PinkSharkMark"? Because I have to admit I don't see how that can be done. It appears as if iChat displays to anyone chatting with you precisely the account name you logged in under and nothing else. So if you logged in using a .Mac account, then you are displayed as "[email protected]" while if you logged in under an AIM account, you are displayed as "CromulentCat". But that's it that's all... there is no way to change CromulentCat to PinkSharkMark.
    Thanks very much for taking the time to reply, though.

  • Wrong Caller-ID displayed - only rightmost 4 digits used for matching number - name

    Hi,
    Some days ago I discovered a rather strange and very confusing behavior on my Z10 wrt matching calling number to stored contact (name):
    When you get a call there should be a "reverse lookup" in the phonebook matching number to name. As it seems the match number to name is solely done based on the rightmost 4 digits. This can lead to very confusing situations to say the least:
    Say you have the number +43123456789 stored belonging to "Smith". Now when you get a call another number,  say +432838126789 the Z10 displays the calling party as "Smith" - which is defintely wrong.
    The same holds true when placing outbound calls: Again, take the contact Smith having +43123456789. Suppose on Z10s dialpad you enter a number, say +43228376789 (righmost 4 digits are the same). When you finish the call in your last call log the Z10 displays the number called as "Smith" - which is completely wrong.
    So here are my questions:
    Anybody else seen this behavior
    Any known cure against it?
    BTW - this is happens not only on my Z10 but on every Z10 that is used in our company.
    Thanks much in advance for any clue,
    -bblacksheep
    Solved!
    Go to Solution.

    Test the recommedationa and see if it works.
    Remove the country code from the number you're dialing and see if it fixes it.
    1. If any post helps you please click the below the post(s) that helped you.
    2. Please resolve your thread by marking the post "Solution?" which solved it for you!
    3. Install free BlackBerry Protect today for backups of contacts and data.
    4. Guide to Unlocking your BlackBerry & Unlock Codes
    Join our BBM Channels (Beta)
    BlackBerry Support Forums Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • HT1551 When using Airplay, the display on my tv isn't being fully used (its not taking up the full widescreen tv display). How do I fix that issue?

    When using Airplay, the display on my tv isn't being fully used (its not taking up the full widescreen tv display). How do I fix that issue?

    Intermittent issues will point to a local network/wifi issue.
    Reboot ATV and router, make sure both are up to date
    Try ethernet
    The home sharing connection will cut out if the iMac goes to sleep.

Maybe you are looking for

  • How do I use camera connection kit to transfer photos from iphone 4 with ios 7 to ipad 2 with ios t?

    How do I use the camera connection kit to transfer photos from iPhone 4 with ios 7.0.2 to iPad 2 with ios 7.0.2?

  • Imac external display

    I am having trouble getting my imac to act as teh external display for my MBP.  This has worked up until today ... new software update on imac (10.8.5). Anyone else having this issue?

  • Proxies and use of proxies in XI

    hi all, Can anybody help me this what is proxies and how it will be helpfull in XI. regards manoj kumar

  • AV failure... "Failed to respond" error

    Been suffering from this "failed to respond" error for attempted video connections for some time now. Never quite got a solution for it. I have a PB 12" and iMac mini routed at home through a Netgear WPN824 unit, and now adding a MacBook. We could AV

  • BAPI_CTRACDOCUMENT_CREATE

    Hi, I am creating Doc 1 using this BAPI. Now , I am creating Doc 2 using the same BAPI with reverse values(+ to -). It is creating both the documents. Now, I want to clear Doc 1 with Doc 2 and I want to clear Doc 1 at the same time , when I am creati