Home : Stack Overflow with ActiveX Controls
Q58931 - ERRMSG: Stack Overflow with ActiveX Controls

Stack Overflow with ActiveX Controls

 

Symptoms

You are using J-Integra to embed an ActiveX component into a Swing component. When you do an operation with the ActiveX component, the application suddenly crashes and displays:



If you have Visual Studio installed and you click Cancel, eventually the application displays:

Cause

The ActiveX component may require a much larger per-thread stack size. This unfortunately is determined by the executable when it is launched (java.exe).

Resolution

Until a better solution from Sun is found, the current solution is to "hack" the java.exe binary to start with a larger stack size. The default is 128Kb, which (if you experience this error message) is not enough for the ActiveX component. The steps are:

  1. You need Visual Studio 6 on your machine, or at least the editbin.exe tool that is included with it.

  2. At the command prompt, change to your JDK1.3.1\bin directory and execute the following command which will increase the stack size to 2Mb:
    editbin.exe /STACK:2000000 java.exe

Once the modification is complete, try running the application again and it should work.

Related Articles
No Related Articles Available.

Article Attachments
No Attachments Available.

Related External Links
No Related Links Available.
Help us improve this article...
What did you think of this article?

poor 
1
2
3
4
5
6
7
8
9
10

 excellent
Tell us why you rated the content this way. (optional)
 
Approved Comments...
No user comments available for this article.
Created on 6/23/2006.
Last Modified on 7/11/2006.
Last Modified by No Author Name Available!.
Article has been viewed 7750 times.
Rated 7 out of 10 based on 14 votes.
Print Article
Email Article