Click here to Skip to main content
15,893,368 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Mangling of CString in fstream Pin
Stephen Hewitt27-May-07 15:13
Stephen Hewitt27-May-07 15:13 
Questionoperator overloading Pin
Kiran Pinjala25-May-07 3:42
Kiran Pinjala25-May-07 3:42 
AnswerRe: operator overloading Pin
David Crow25-May-07 3:45
David Crow25-May-07 3:45 
GeneralRe: operator overloading Pin
Kiran Pinjala25-May-07 3:47
Kiran Pinjala25-May-07 3:47 
GeneralRe: operator overloading Pin
David Crow25-May-07 3:51
David Crow25-May-07 3:51 
GeneralRe: operator overloading Pin
Kiran Pinjala25-May-07 4:19
Kiran Pinjala25-May-07 4:19 
GeneralRe: operator overloading Pin
Mark Salsbery25-May-07 5:30
Mark Salsbery25-May-07 5:30 
QuestionSTL string calling delete and crashing... [modified] Pin
sandeepkavade25-May-07 1:27
sandeepkavade25-May-07 1:27 
Hi,

I have written a function in a DLL as follows
std::string Myclass::MyFunc()
{
std::string ret;
ret = "HHHHHHHHHHHHHHH"
return ret;
}
I am exporting this class and importing in client app.
What I am observing is that when I call this function from C++ client, if the number of charcters assigned to ret are less than 16 the program is working fine. But if the nuber of characters assigned to ret are 16 or greater, in client program it is giving exception while assigning the returned string to local string.
It is working in Debug mode but crashing in release mode.

Thanks in advance...


-- modified at 7:56 Friday 25th May, 2007
AnswerRe: STL string calling delete and crashing... Pin
Cedric Moonen25-May-07 2:02
Cedric Moonen25-May-07 2:02 
GeneralRe: STL string calling delete and crashing... Pin
sandeepkavade25-May-07 2:24
sandeepkavade25-May-07 2:24 
GeneralRe: STL string calling delete and crashing... Pin
Cedric Moonen25-May-07 2:42
Cedric Moonen25-May-07 2:42 
GeneralRe: STL string calling delete and crashing... [modified] Pin
Mark Salsbery25-May-07 5:33
Mark Salsbery25-May-07 5:33 
AnswerRe: STL string calling delete and crashing... Pin
_AnsHUMAN_ 25-May-07 2:08
_AnsHUMAN_ 25-May-07 2:08 
AnswerRe: STL string calling delete and crashing... Pin
Michael Dunn25-May-07 21:33
sitebuilderMichael Dunn25-May-07 21:33 
Questionofstream flags - create file... Pin
ldsdbomber25-May-07 1:20
ldsdbomber25-May-07 1:20 
AnswerRe: ofstream flags - create file... Pin
Arman S.25-May-07 2:09
Arman S.25-May-07 2:09 
GeneralRe: ofstream flags - create file... Pin
ldsdbomber25-May-07 2:14
ldsdbomber25-May-07 2:14 
GeneralRe: ofstream flags - create file... Pin
Arman S.25-May-07 2:57
Arman S.25-May-07 2:57 
GeneralRe: ofstream flags - create file... [modified] Pin
ldsdbomber25-May-07 3:02
ldsdbomber25-May-07 3:02 
QuestionRe: ofstream flags - create file... Pin
David Crow25-May-07 3:40
David Crow25-May-07 3:40 
AnswerRe: ofstream flags - create file... Pin
ldsdbomber25-May-07 3:51
ldsdbomber25-May-07 3:51 
GeneralRe: ofstream flags - create file... Pin
David Crow25-May-07 3:56
David Crow25-May-07 3:56 
GeneralRe: ofstream flags - create file... Pin
ldsdbomber25-May-07 4:05
ldsdbomber25-May-07 4:05 
QuestionDialogs at design time Pin
mcsherry25-May-07 1:19
mcsherry25-May-07 1:19 
AnswerRe: Dialogs at design time Pin
Maximilien25-May-07 1:41
Maximilien25-May-07 1:41 

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.