Click here to Skip to main content
15,887,135 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: can we know whether our dll is registered or not Pin
softp_vc30-Apr-04 23:23
softp_vc30-Apr-04 23:23 
GeneralSTL Deque Container - question Pin
CoolVini28-Apr-04 23:38
CoolVini28-Apr-04 23:38 
GeneralRe: STL Deque Container - question Pin
Paul Ranson29-Apr-04 0:24
Paul Ranson29-Apr-04 0:24 
GeneralRe: STL Deque Container - question Pin
CoolVini29-Apr-04 4:31
CoolVini29-Apr-04 4:31 
GeneralRe: STL Deque Container - question Pin
Paul Ranson29-Apr-04 11:22
Paul Ranson29-Apr-04 11:22 
GeneralRe: STL Deque Container - question Pin
CoolVini29-Apr-04 22:34
CoolVini29-Apr-04 22:34 
GeneralHTML Dialog question ... Pin
Hadi Rezaee28-Apr-04 23:29
Hadi Rezaee28-Apr-04 23:29 
GeneralDll & Vectors Pin
Bernhard28-Apr-04 23:10
Bernhard28-Apr-04 23:10 
I have got the following situation (VC6)
i have got two dll's each exporting functions like this

void fun1 (std::vector<int>& vec);

The calling function passes an empty vector.. it is filled in the dll.. and the dll passes the filled vector back.

One dll works perfectly fine. The other dll has got the following problem:
After leaving the function which called the dll - function (when the passed vector leaves the scope)
there is a runtime bug, which says that a debug assertation failed.. and that the following expression failed:
_CrtIsValidHeapPointer(pUserData)

One the one hand i do understand, why this could be (allocating memory in another process and freeing it in the other)..
but WHY does this technique work happily with one dll, and why not with the other dll ?

Any ideas ?
Thanks in advance,
bernhard


"Just looking for loopholes." W. C. Fields
American actor, 1880-1946, explaining why he was reading the Bible on his deathbed.
GeneralRe: Dll &amp; Vectors Pin
Anonymous29-Apr-04 0:05
Anonymous29-Apr-04 0:05 
GeneralRe: Dll &amp; Vectors Pin
Mike Dimmick29-Apr-04 0:21
Mike Dimmick29-Apr-04 0:21 
GeneralRe: Dll &amp; Vectors Pin
Antony M Kancidrowski29-Apr-04 3:20
Antony M Kancidrowski29-Apr-04 3:20 
GeneralProblem choosing collection&#8230; Pin
anderslundsgard28-Apr-04 22:53
anderslundsgard28-Apr-04 22:53 
GeneralRe: Problem choosing collection&#8230; Pin
David Crow29-Apr-04 2:13
David Crow29-Apr-04 2:13 
GeneralChildFrame and Menu Pin
amit_k_gupta28-Apr-04 22:52
amit_k_gupta28-Apr-04 22:52 
GeneralRound dialog drawing question Pin
YaronNir28-Apr-04 22:45
YaronNir28-Apr-04 22:45 
GeneralRe: Round dialog drawing question Pin
ohadp28-Apr-04 23:52
ohadp28-Apr-04 23:52 
GeneralRe: Round dialog drawing question Pin
YaronNir29-Apr-04 0:25
YaronNir29-Apr-04 0:25 
Questiongenerate c++ doc ? Pin
anderslundsgard28-Apr-04 22:25
anderslundsgard28-Apr-04 22:25 
AnswerRe: generate c++ doc ? Pin
Anonymous28-Apr-04 22:51
Anonymous28-Apr-04 22:51 
GeneralRe: generate c++ doc ? Pin
anderslundsgard28-Apr-04 22:55
anderslundsgard28-Apr-04 22:55 
AnswerRe: generate c++ doc ? Pin
Anonymous29-Apr-04 0:03
Anonymous29-Apr-04 0:03 
AnswerRe: generate c++ doc ? Pin
Pedro Ruiz29-Apr-04 0:31
Pedro Ruiz29-Apr-04 0:31 
GeneralClickety police ! Pin
Trollslayer29-Apr-04 1:03
mentorTrollslayer29-Apr-04 1:03 
GeneralWebBrowser Pin
Gem128-Apr-04 21:30
Gem128-Apr-04 21:30 
QuestionUsing CSplitterWindow with MFC? Pin
Roozbeh6928-Apr-04 21:26
professionalRoozbeh6928-Apr-04 21:26 

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.