Click here to Skip to main content
16,006,440 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: new and delete -> across an EXE and a DLL Pin
Nemanja Trifunovic21-Jan-02 12:30
Nemanja Trifunovic21-Jan-02 12:30 
GeneralViolations Pin
Stephen Caldwell21-Jan-02 11:58
Stephen Caldwell21-Jan-02 11:58 
GeneralRe: Violations Pin
Joaquín M López Muñoz21-Jan-02 12:05
Joaquín M López Muñoz21-Jan-02 12:05 
GeneralRe: Violations Pin
Peter Weyzen21-Jan-02 12:21
Peter Weyzen21-Jan-02 12:21 
GeneralRe: Violations Pin
Nish Nishant21-Jan-02 16:14
sitebuilderNish Nishant21-Jan-02 16:14 
GeneralStack size question Pin
Bill Wilson21-Jan-02 11:26
Bill Wilson21-Jan-02 11:26 
GeneralRe: Stack size question Pin
Joaquín M López Muñoz21-Jan-02 11:29
Joaquín M López Muñoz21-Jan-02 11:29 
GeneralRe: Stack size question Pin
Bill Wilson21-Jan-02 13:35
Bill Wilson21-Jan-02 13:35 
My concern was that the actual stack requirements of a worker thread greatly exceeds that of the parent thread. The parent merely dispatches jobs to the workers. I thought maybe I didn't have enough stack space in the worker threads.

The specific problem (at the moment) is with using Crystal Reports. I have a wrapper class (CCrystalReports) that uses the CR API (not the com object). The wrapper has been used successfully in several single threaded apps.

I've tried this two different ways with different, but always disappointing Cry | :(( , results.

1. Make CCrystalReports a member of the Worker thread class. This mode of operation had no memory problems as far as I can tell. Crystal Reports, however, failed to open the report file in this configuration.

2. Make CCrystalReports a dynamic in a method called by the worker thread. (So it is automatically destroyed at the right time. This runs for awhile, then blows when trying to return from the method.

The actual blow up occurs in yet another program. The app I have been discussing supports a COM interface. Another program uses this interface to submit requests to the app, which then dispatches them to worker threads. The blowup comes in the Invoke call it returns the following error:

(8007000e) Not enough storage is available to complete this operation.

Any advice would be appreciated. This project has gone on too long!


Thanks for the help,
Bill
GeneralRe: Stack size question Pin
Jamie Hale22-Jan-02 6:12
Jamie Hale22-Jan-02 6:12 
QuestionListControl in Outlook-style??? Pin
Grit21-Jan-02 11:04
Grit21-Jan-02 11:04 
AnswerRe: ListControl in Outlook-style??? Pin
Matt Gullett21-Jan-02 11:17
Matt Gullett21-Jan-02 11:17 
AnswerRe: ListControl in Outlook-style??? Pin
Ernest Laurentin21-Jan-02 14:41
Ernest Laurentin21-Jan-02 14:41 
GeneralDialog boxes and Documents Pin
ed121-Jan-02 10:42
ed121-Jan-02 10:42 
GeneralRe: Dialog boxes and Documents Pin
Joaquín M López Muñoz21-Jan-02 11:24
Joaquín M López Muñoz21-Jan-02 11:24 
GeneralRe: Dialog boxes and Documents Pin
Braulio Dez21-Jan-02 20:59
Braulio Dez21-Jan-02 20:59 
GeneralRe: VirtualAlloc...? Pin
Joaquín M López Muñoz21-Jan-02 11:03
Joaquín M López Muñoz21-Jan-02 11:03 
GeneralMFC: passing structs from one window to another Pin
User 665821-Jan-02 9:14
User 665821-Jan-02 9:14 
GeneralRe: MFC: passing structs from one window to another Pin
Joaquín M López Muñoz21-Jan-02 9:23
Joaquín M López Muñoz21-Jan-02 9:23 
GeneralRe: MFC: passing structs from one window to another Pin
User 665821-Jan-02 10:10
User 665821-Jan-02 10:10 
Generaleek, thanks to the author Pin
21-Jan-02 8:47
suss21-Jan-02 8:47 
Questionwhat does "Add an UPDATE_COMMAND_UI handler for ..." mean? Pin
DanYELL21-Jan-02 8:19
DanYELL21-Jan-02 8:19 
AnswerRe: what does "Add an UPDATE_COMMAND_UI handler for ..." mean? Pin
Joaquín M López Muñoz21-Jan-02 8:30
Joaquín M López Muñoz21-Jan-02 8:30 
General.HLP made me CRAZY ! Pin
Hadi Rezaee21-Jan-02 8:14
Hadi Rezaee21-Jan-02 8:14 
GeneralChange icon in SDI Pin
21-Jan-02 7:28
suss21-Jan-02 7:28 
GeneralRe: Change icon in SDI Pin
Joaquín M López Muñoz21-Jan-02 7:46
Joaquín M López Muñoz21-Jan-02 7:46 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.