Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17


Large data for ActiveX control

Posted on 1999-07-11
Medium Priority
Last Modified: 2010-08-05
My ActiveX control is importing a large chunk of data (>1Mb). The

DoPropExchange(CPropExchange* pPX)

function crashes with a Stack overflow on the function:

PX_String(pPX, _T("Value"), m_Value);

If I use a smaller chunk of data it works fine.
What is the limiting factor here? And how do I get around it ?

Thank you
Question by:tomschuring
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
  • 3
  • 3
LVL 23

Accepted Solution

chensu earned 300 total points
ID: 1199737
Use Binary Large Object (BLOB) instead. See the following KB article for an example.

DOC: How to Use the PX_Blob Function

Author Comment

ID: 1199738
Does this also support string loading from a html page ?
LVL 23

Expert Comment

ID: 1199739
Definitely. It is binary data.
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.


Author Comment

ID: 1199740
HGLOBAL hValue; //
in header file

the function PX_Blob(pPX, _T("Value"), hValue);

immediatly returns with FALSE when DoPropertyExchange is loading,
GetLastError doesn't return the description of what went wrong.

LVL 23

Expert Comment

ID: 1199741
hValue should be initialized to NULL before initially calling PX_Blob for the first time.

Author Comment

ID: 1199742
I Did do that. I have now resolved the problem by using the get/set functions of a property and setting the large string via a bit of script. It's not very nice, I would rather have the <PARAMS..> work with any size value...

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Unlike C#, C++ doesn't have native support for sealing classes (so they cannot be sub-classed). At the cost of a virtual base class pointer it is possible to implement a pseudo sealing mechanism The trick is to virtually inherit from a base class…
Introduction This article is the first in a series of articles about the C/C++ Visual Studio Express debugger.  It provides a quick start guide in using the debugger. Part 2 focuses on additional topics in breakpoints.  Lastly, Part 3 focuses on th…
The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.

670 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