Click here to Skip to main content
15,919,028 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: can anyone help me with the combo box dropdown button Pin
Yulianto.6-Oct-04 17:53
Yulianto.6-Oct-04 17:53 
GeneralRe: can anyone help me with the combo box dropdown button Pin
toxcct6-Oct-04 20:27
toxcct6-Oct-04 20:27 
GeneralRe: can anyone help me with the combo box dropdown button Pin
David Crow6-Oct-04 4:17
David Crow6-Oct-04 4:17 
GeneralCreating a really topmost window Pin
rentzk5-Oct-04 18:49
rentzk5-Oct-04 18:49 
GeneralRe: Creating a really topmost window Pin
HarshaPerla5-Oct-04 21:17
HarshaPerla5-Oct-04 21:17 
GeneralRe: Creating a really topmost window Pin
rentzk6-Oct-04 5:58
rentzk6-Oct-04 5:58 
GeneralGDI+ startup Pin
JHAKAS5-Oct-04 17:34
JHAKAS5-Oct-04 17:34 
GeneralError in declaration of multiple instances of a class Pin
Kiran Satish5-Oct-04 17:02
Kiran Satish5-Oct-04 17:02 
Hi all,

I am getting an assertion failure error while executing my program. In my program I am declaring multiple instances of a class dynamically like...

Cube *C = new Cube[n];
Sphere *S = new Sphere[n1];

and till these statements the execytion is fine but after these I am callling a method of those instances individually in a loop...

if (n>=1)
for (i=1;i<=n;i++)
C[i].set_values(dis,dim,res1);

if (n1>=1)
for (i=1;i<=n1;i++)
S[i].set_values(dis,dim,res1);

when returning from this method it is giving me above error.

but if i used only one instance like

Cube C = new Cube();
C.set_values(dis,dim,res1);

then it is working fine....

I am not getting where I am goin wrong and here is the error.

Debug Assertion Failed!
Program: C:\....\xyz.exe
File:dbgdel.cpp
Line:47

Expression: _BLOCK_TYPE_IS_VALID(pHead->nBlockUse)

Press retry to debug the application..

anyone help me out from this.....

thanks in advance,


Suman
GeneralRe: Error in declaration of multiple instances of a class Pin
Maxwell Chen5-Oct-04 17:34
Maxwell Chen5-Oct-04 17:34 
GeneralRe: Error in declaration of multiple instances of a class Pin
Kiran Satish5-Oct-04 19:32
Kiran Satish5-Oct-04 19:32 
QuestionHow to change item height for CListCtrl ? Pin
enoloo_don5-Oct-04 15:47
enoloo_don5-Oct-04 15:47 
AnswerRe: How to change item height for CListCtrl ? Pin
Ryan Binns5-Oct-04 18:22
Ryan Binns5-Oct-04 18:22 
General/clr and C code Pin
jspano5-Oct-04 15:29
jspano5-Oct-04 15:29 
QuestionInternet connection events? Pin
LukeV5-Oct-04 15:18
LukeV5-Oct-04 15:18 
AnswerRe: Internet connection events? Pin
Sujan Christo5-Oct-04 20:34
Sujan Christo5-Oct-04 20:34 
GeneralMy IP is unreachable Pin
hazem_hegazi5-Oct-04 13:09
hazem_hegazi5-Oct-04 13:09 
GeneralRe: My IP is unreachable Pin
ThatsAlok5-Oct-04 18:46
ThatsAlok5-Oct-04 18:46 
GeneralRe: My IP is unreachable Pin
Arsalan Malik5-Oct-04 19:13
Arsalan Malik5-Oct-04 19:13 
GeneralRe: My IP is unreachable Pin
2249175-Oct-04 20:37
2249175-Oct-04 20:37 
GeneralUsing the CWndFade class from article Pin
Anonymous5-Oct-04 12:41
Anonymous5-Oct-04 12:41 
GeneralRe: Using the CWndFade class from article Pin
Christian Graus5-Oct-04 13:35
protectorChristian Graus5-Oct-04 13:35 
GeneralSwitching TCHAR to UTF-8 Pin
SanShou5-Oct-04 12:13
SanShou5-Oct-04 12:13 
GeneralRe: Switching TCHAR to UTF-8 Pin
Michael Dunn5-Oct-04 13:38
sitebuilderMichael Dunn5-Oct-04 13:38 
GeneralVisual Studio 2003 Migration question. Pin
RickGavin5-Oct-04 11:47
RickGavin5-Oct-04 11:47 
GeneralRe: Visual Studio 2003 Migration question. Pin
Michael Dunn5-Oct-04 11:50
sitebuilderMichael Dunn5-Oct-04 11:50 

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.