473,804 Members | 3,126 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

System.StackOve rflow exception

Can anyone comment on why in the following code i get a
StackOverflowEx ception on the marked line of code. The weird thing is i only
get it when the string being returned in the second paramater approaches
600+kb ?

BSTR service;
BSTR xml;
CoInitialize(NU LL);
_esyv0111Ptr broker;
HRESULT hr = broker.CreateIn stance(__uuidof (esyv0111));
if (SUCCEEDED(hr)) {
broker->exec(&servic e, &xml); // <------ stack over flow
The Com object is imported using the #import directive and fails on the
following compiler generated .tli code:

inline long _esyv0111::exec ( BSTR * servicename, BSTR * xml_message ) {
long _result = 0;
_com_dispatch_m ethod(this, 0x3ea, DISPATCH_METHOD , VT_I4,
(void*)&_result , L"\x4008\x4008" , servicename, xml_message); // fails
here
return _result;
}

tia
andrew
Nov 17 '05 #1
0 1985

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
53511
by: Matthias Ludwig | last post by:
I'm trying to create a directory on the web server with a vb.net code: .... Dim dirName As String = "w:\filepath\images" If Not Directory.Exists(dirName) Then Directory.CreateDirectory(dirName) Label1.Text = "Directory created" Else
2
14050
by: Paul Gronka | last post by:
I've got a VB.NET windows application (written in VS .NET 2003) that makes a call to WMI for retrieving the MAC Address from the client's PC. It works on 4 out of the 5 PC's tested so far. All the workstations are DELLs running XP SP1a with the 1.1 .NET Framework. The following line of code generates an exception on the one PC: Dim oMac As New System.Management.ManagementClass("Win32_NetworkAdapterConfiguration") The error it...
5
4032
by: Vitling | last post by:
For no apparent reason, a NullReference exception is thrown in system.dll (System.Net.Sockets.OverlappedAsyncResult.CompletionPortCallback). Since I only get a disassembly from Visual Studio, it is almost impossible to figure out what causes this. I've tried adding: AppDomain.CurrentDomain.UnhandledException += new UnhandledExceptionEventHandler (SystemErrorHandler); to my main method, and a handler function:
1
1906
by: TDOR | last post by:
I have started a nt service project in VS2003, added a timer from the toolbox, and set the timer to trigger every 20 secs. The method that the timer calls has among others these lines: ArrayList x = new ArrayList(); for (...) { x.add(new someobject(...)); }
3
387
by: Darryn | last post by:
hi, How do i aviod the StackOverflowException? or how do i increase it's limits? Regards
5
4915
by: Gene Ariani | last post by:
Is there a limit to how big a rowfilter on dataview could be? my rowfilter is dynamically generated and if its get too big I get a stackoverflow error other wise it works fine. Any direction is appreciated it.
2
1716
by: wansch | last post by:
Hello, Iam quite new to programming and dont know enough about the stack. My problem is if I call a recurcive function like in the code TestCalc(100000), I get at some integer argument size a stack overflow exception. The recursion is not endless. But at 1000000 the exception is thrown. What is limitation of the stack or how can I figure it out. Are there restrictions about function calls?
1
1530
by: Analizer1 | last post by:
Is there a real time debugger , out here for xsl transform when i run the xsl transform with a xml file (that represents 2000 or more rows from a sql 2005 tables) I get a Statckoverflow exception . Im No Pro at Xsl, there are some running totals in the xsl file, and one xsl:for loop for each item in the file any help is welcome
0
970
by: mmayur | last post by:
I'm using ANTLR parser for a txt file of around 5 MB. My main grammer module contains displaying contents between START_TAG(<) and END_TAG(>). fragment ELEMENT : ( (ELEMENT | t=PCDATA { Console.Out.WriteLine("PCDATA: \""+$t.Text+"\""); } //| t=CDATA // { Console.Out.WriteLine("CDATA: \""+$t.Text+"\""); }
2
1706
by: Wan | last post by:
Dear Group, I have a small application with two buttons and three textboxes with databinding. One of the textboxes has a ¡§textchanged¡¨ event and other 2 textboxes are attached with the same events. If I type into any textboxes then btnSave and btnExit will enable/disable respectively. The problem is that in some instances ¡¥text changed event¡¨ hits endless loop and causes an stackoverflow message. Is there a way to solve this...
0
9705
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9575
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10564
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10073
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9134
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7609
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5513
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5645
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
2981
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.