Click here to Skip to main content
15,925,206 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Generalftp inf o -Urgent!! Pin
V.G14-Apr-05 19:00
V.G14-Apr-05 19:00 
GeneralRe: ftp inf o -Urgent!! Pin
ThatsAlok14-Apr-05 19:48
ThatsAlok14-Apr-05 19:48 
GeneralRe: ftp inf o -Urgent!! Pin
Anonymous14-Apr-05 19:51
Anonymous14-Apr-05 19:51 
GeneralRe: ftp inf o -Urgent!! Pin
ThatsAlok14-Apr-05 19:56
ThatsAlok14-Apr-05 19:56 
GeneralRe: ftp inf o -Urgent!! Pin
V.G14-Apr-05 20:15
V.G14-Apr-05 20:15 
GeneralRe: ftp inf o -Urgent!! Pin
ThatsAlok14-Apr-05 20:39
ThatsAlok14-Apr-05 20:39 
GeneralRe: ftp inf o -Urgent!! Pin
ThatsAlok14-Apr-05 20:42
ThatsAlok14-Apr-05 20:42 
Generaldebug successfully but failed in .exe Pin
steven_wong14-Apr-05 18:38
steven_wong14-Apr-05 18:38 
hello everyone
my code works well most of the time in debug mode,however,it failed when i ship it into .exe.i guess it may be the problem of memory leak. the code seems to have problem is as below:
for(int i=0;i<30;i++)
{
CString temp;
temp=myfunction();
if (temp!="")
{
dlg->FieldName[j]=new char[];
strcpy(dlg->FieldName[j],temp);
dlg->nColumnEnd=count;
j++;
count++;
}
}
and sometimes when debugging, it alerts as below:
Warning: Critical memory allocation failed!
Warning: Shrinking safety pool from 512 to 444 to satisfy request of 64 bytes.
Warning: Critical memory allocation failed!
Warning: Shrinking safety pool from 444 to 376 to satisfy request of 64 bytes.
Warning: Critical memory allocation failed!
Warning: Shrinking safety pool from 376 to 344 to satisfy request of 28 bytes.
Warning: Critical memory allocation failed!
Warning: Shrinking safety pool from 344 to 312 to satisfy request of 28 bytes.
Warning: Critical memory allocation failed!
Warning: Shrinking safety pool from 312 to 280 to satisfy request of 28 bytes.
Warning: Critical memory allocation failed!
Warning: Shrinking safety pool from 280 to 224 to satisfy request of 52 bytes.
Warning: Critical memory allocation failed!
Warning: Shrinking safety pool from 224 to 168 to satisfy request of 52 bytes.
Warning: Critical memory allocation failed!
Warning: Shrinking safety pool from 168 to 112 to satisfy request of 52 bytes.
First-chance exception in C.exe (NTDLL.DLL): 0xC0000005: Access Violation.
First-chance exception in C.exe (KERNEL32.DLL): 0xE06D7363: Microsoft C++ Exception.
First-chance exception in C.exe (NTDLL.DLL): 0xC0000005: Access Violation.

Is there any who can tell me what i could do to save my code?ThanX in advance!Rose | [Rose]
GeneralRe: debug successfully but failed in .exe Pin
22491714-Apr-05 19:05
22491714-Apr-05 19:05 
GeneralRe: debug successfully but failed in .exe Pin
ThatsAlok14-Apr-05 19:31
ThatsAlok14-Apr-05 19:31 
GeneralRe: debug successfully but failed in .exe Pin
steven_wong15-Apr-05 0:52
steven_wong15-Apr-05 0:52 
GeneralRe: debug successfully but failed in .exe Pin
ThatsAlok15-Apr-05 2:24
ThatsAlok15-Apr-05 2:24 
GeneralRe: debug successfully but failed in .exe Pin
steven_wong15-Apr-05 3:04
steven_wong15-Apr-05 3:04 
GeneralRe: debug successfully but failed in .exe Pin
ThatsAlok15-Apr-05 18:03
ThatsAlok15-Apr-05 18:03 
GeneralRe: debug successfully but failed in .exe Pin
David Crow15-Apr-05 3:53
David Crow15-Apr-05 3:53 
GeneralVisual C++ .NET 2003 Bug on templates Pin
cheungcc_200014-Apr-05 16:04
cheungcc_200014-Apr-05 16:04 
GeneralRe: need help !!!! Very Urgent !! Pin
ng kok chuan14-Apr-05 16:37
ng kok chuan14-Apr-05 16:37 
GeneralRe: need help !!!! Very Urgent !! Pin
V.14-Apr-05 22:20
professionalV.14-Apr-05 22:20 
GeneralRe: need help !!!! Very Urgent !! Pin
khyap14-Apr-05 22:59
khyap14-Apr-05 22:59 
GeneralRe: need help !!!! Very Urgent !! Pin
V.14-Apr-05 23:11
professionalV.14-Apr-05 23:11 
GeneralCString or string Pin
ng kok chuan14-Apr-05 14:31
ng kok chuan14-Apr-05 14:31 
GeneralRe: CString or string Pin
Christian Graus14-Apr-05 14:34
protectorChristian Graus14-Apr-05 14:34 
GeneralRe: CString or string Pin
Rama Krishna Vavilala14-Apr-05 16:19
Rama Krishna Vavilala14-Apr-05 16:19 
GeneralRe: CString or string Pin
22491715-Apr-05 0:16
22491715-Apr-05 0:16 
Generalchanging a part of a string Pin
Green Fuze14-Apr-05 13:55
Green Fuze14-Apr-05 13:55 

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.