|
Hi, I have a few comboboxes on a form. Let's name them LHS (left hand side) and RHS. Whenever I click LHS, I want RHS to reset to it's 0th element.
However, when I click an element in LHS, LHS resets to it's 0th element but will still show the proper items in RHS even though LHS is reset to it's 0th element. There are no pointers to objects being used.
What could be a culprit of this problem? Some windows message? I checked the message maps in the class wizard and combo messages are cleared (except CBN_SELCHANGE, of course).
|
|
|
|
|
When you click on left combo then values of this combo rest to zero,right?
|
|
|
|
|
but i don't think the problem is there
Run-Time Check Failure #2 - Stack around the variable '_Lk' was corrupted.
HEAP[framework(debug).exe]: Heap block at 00CA73D8 modified at 00CA7428 past requested size of 48
Windows has triggered a breakpoint in framework(debug).exe.
This may be due to a corruption of the heap, and indicates a bug in framework(debug).exe or any of the DLLs it has loaded.
The output window may have more diagnostic information
this error just occured out of the blank.
the project is a loader of 3ds files and making a nice scene with some communication through com port with a haptic device. everything worked great till this morning.
maybe some one can give me a push into the right direction or a request of the info he needs from me to point out where the problem could be.
thnx in advanced
Ewart ten Brink
|
|
|
|
|
Hello,
i recive sometimes this message, and only when i want to debugg my app, and i dont know why they is shown!
Can any one explain me what can be an reason for that message.
I dont have any breakpoints set i my sourcecode!
regards
break;
|
|
|
|
|
break; wrote: User breakpoint called from code at
It is as message says. If some memory access violation occurs, this message pops-up.
|
|
|
|
|
Hi,
thanks very much!
I solve them now!
break;
|
|
|
|
|
break; wrote: I solve them now!
how ? please share !
|
|
|
|
|
Does anyone know where I can get some code written in c++(win32 or MFC), that performs transitions between 2 images( Fade, Zoom Out, Page roll etc...). I have tried various imaging libraries including - ImageStone & CXImage, but cannot find any support for transitions.
Many Thanks,
Atom
|
|
|
|
|
CXImage is a good code what do you need exactly?
|
|
|
|
|
OK,
I've found a solution, thanks for your help.
Atom
|
|
|
|
|
I glad you find it
|
|
|
|
|
Hello,
how to disable item(one or more items) from a CMenu that is shown as popup menu?
Diable normal menu items i do with this:
m_cMenu.EnableMenuItem(IDC_CLEAR, MF_BYCOMAND | MF_DISABLED | MF_GRAYED);
but how to do this when i show the same menu as an popup menu?
I call my popup menu like this:
cMenu.GetSubMenu(1)->TrackPopupMenu(1, posMouse.x, posMouse.y, this);
and all menu items are active! How to disable them?
thanks in advance
break
|
|
|
|
|
You got:
CMenu* pMenu = cMenu.GetSubMenu(1);
//do stuff
pMenu->EnableMenuItem(...);
//show
pMenu->>TrackPopupMenu(1, posMouse.x, posMouse.y, this);
Greetings from Germany
|
|
|
|
|
Hello,
thanks, that works!
break;
Greetings from Germany to!
|
|
|
|
|
|
|
Programm3r wrote: now that this some of the code CLI
then ask the right forum. you should be flamed to asking the wrong forum knowing perfectly what you do
|
|
|
|
|
This one works for me
Stings
/krissi
|
|
|
|
|
in my application's app class initinstrance i am creting a thread as
(new CMYThread)->CreateThread();
in the run() of that thread i am wrote
CSocket mySock;
mySock.Create(1234,SOCK_DGRAM);
when the execution passes the line mySock.Create(...) it's giving an exception saying access violation and in the debug it takes the point to
void* CMapPtrToPtr::GetValueAt(void* key) const
{
if (m_pHashTable == NULL)
return NULL;
UINT nHash = HashKey(key) % m_nHashTableSize;
CAssoc* pAssoc;
for (pAssoc = m_pHashTable[nHash]; pAssoc != NULL; pAssoc = pAssoc->pNext)
{
if (pAssoc->key == key)
return pAssoc->value;
}
return NULL;
}
and showing
this pointer as NULL in the 'watch'.
Can u guide me the way out.
Thank you.
KIRAN PINJARLA
|
|
|
|
|
The construction of the socket seems to fail.
Does this help (surprisingly, I do not know if it is really the same):
CSocket mySock();
~RaGE();
I think words like 'destiny' are a way of trying to find order where none exists. - Christian Graus
|
|
|
|
|
It Doesn't help me.
Thank you.
KIRAN PINJARLA
|
|
|
|
|
my replys will certainly not help, but when you do this :
(new CMYThread)->CreateThread();
do you see the memory leak ???
you allocate dynamically a CMyThread object (using new ), but as you don't store the address returned (in a CMyPointer pointer), you'll never be able to delete it, thus the leak.
store the address in a pointer, or try this :
(CMYThread())->CreateThread();
this will call the default constructor of the class (just like new does), but allocated the object on the stack instead of on the heap.
|
|
|
|
|
First, I'll assume CMYThread is derived from CWinThread and you know
(new CMYThread)->CreateThread();
won't be a memory leak because the object is self-deleting.
Second, CSocket needs a window when you call Create() so you'd need to use a user interface
thread. An easier method would be to create the socket on the app's UI thread and pass it
into (or make it accessible by) CMyThread.
Mark
|
|
|
|
|
Hello
I am creating a file with a particular name (its a simple txt file). The properties of this file should be such that the user should not be able to rename the file. Is is possible to create a file such that the computer user is not able rename it ??
This is basically because, my application needs some information from this specific file, and it would fail in case the user has changed the file name (because the application would not be able to find that file in its working directory)
Thanx,
Vipin.
|
|
|
|
|
vipin_nvk wrote: Is is possible to create a file such that the computer user is not able rename it
I do not think it is, unless this is a general administration policy, but that would be true for all files.
Anyway, I think you should rethink your design, it seems that your application must be robust enough to handle the fact that the property file does not exist. If the user is dumb enough to move or rename files that comes with your app, he deserves nothing more than an error message.
~RaGE();
I think words like 'destiny' are a way of trying to find order where none exists. - Christian Graus
|
|
|
|