Solved

MTS & VB

Posted on 2000-05-12
3
356 Views
Last Modified: 2010-05-02
I have a dll which has been packaged in MTS and has been exported , and a EXE create object from the dll in a client machine , but why the system always prompt dialog saying some program is busy ,please switch the program to resolve the error?
0
Comment
Question by:Jimsong
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 

Expert Comment

by:SpikeDog
ID: 2805685
Hi JimSong.
Sounds like your MTS is having problems.
If you're getting a message box every time you try to do anything to your client exe telling you to Switch To or Retry then your client exe is still waiting for your MTS object to respond.
There are lots of possible reasons for this. Obvious ones include security settings and the possibility that your MTS DLL has hung.
Have a peek at the objects on your MTS and see whether the component is active and In Call.
The Transaction Explorer is under the Option Pack menu.

Most importantly, if you wait long enough your client will generate an error. If it handles it properly and you can get the error details that will set you in the right direction.
0
 
LVL 143

Expert Comment

by:Guy Hengel [angelIII / a3]
ID: 2807276
Ensure that your DLL does not include any .Show vbModal or MsgBox code.
This will result in behaviour you report.
I don't think that MTS does actually have a problem, but this is not impossible at all...

0
 

Accepted Solution

by:
SpikeDog earned 50 total points
ID: 2808042
Sorry, misphrased my earlier comment. What I meant was that the MTS was unable to respond to your client.
That message you are getting is simply because your client has not received a complete response from the MTS object.
There are many possible reasons for this but over the last year or so I've seen dozens of these and generally they involve either a security issue (turning all security is the easiest option and is not as bad as it sounds) or there is a malfunction in the DLL.
Angel is right, any attempt to call code such as this will cause a problem.
Here, the easiest way to cope is to put in complete error handling and write to the event log (app.eventlog) any and all error info. Then if the MTS hangs your client you can go look for the problem on the MTS machine in the event viewer. Still, if you wait long enough you SHOULD get an error message from the client. Post this and I can probably help further. MTS is great - when it works.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
vb6 connector to SQL Server 2 42
Copy a row 12 75
vb6 connector to mongodb 2 162
SQL VB connection works in one PC and doesn't in another 15 80
There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

739 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question