|
it means your process does not have access to the memory it was trying to use. like the previous poster noted, this usually means you have a bad pointer. check all your pointers - make sure they have valid values.
-c
A man is like a rusty wheel on a rusty cart,
He sings his song as he rattles along and then he falls apart.
-- Richard Thompson
|
|
|
|
|
Hi all,
Thanx a lot for the help.
I think i try to paint u all a better pic:
In my prog, I have 2 arrays. The size of the array depend on the size of my image. One array use a "new" operator to declare and the other one is using the CArray.
my program uses extensive recusive function to process the image. When i try my program on a small image (eg ard 100x100 pixel) it works perfectly fine.
When i try it on large images the first-chance exception occur.
when the error occur, there is a lot of the recusive function being called. And the error occur at the begining of the function (no code is there).
Can anyone please enlighten me what has happened and any possible solutions ?? Thanx you !
bk
|
|
|
|
|
Hi
Probably you are trying to access memory that is read only and it might be caused by using pointers in an unproper way (maybe you haven't initialized something or you are trying to access memory that you've just released). Try to use call stack to find out where have you made that mistake.
Greetings
|
|
|
|
|
0xC0000005 is a GPF. You read or wrote memory you didn't have access to. Usually this is a bad, uninitialized, or dangling pointer.
--Mike--
Just released - RightClick-Encrypt v1.4 - Adds fast & easy file encryption to Explorer
My really out-of-date homepage
Sonork-100.19012 Acid_Helm
|
|
|
|
|
Hello there,
I looking for a function in the recordset class that return the current position in the recordset !!!
Like this:
dwPos = m_Rs.GetCurrentPos();
Also, I’m looking for other function that can jump to special record by record number !
Like this:
m_Rs.SetCurrentPos(50);
Is there thease functions in the recordset class, currently ???
If not, can you tell me how can I write this ??
Regards,
My month article: Game programming by DirectX by Lan Mader.
Please visit in: www.geocities.com/hadi_rezaie/index.html
Hadi Rezaie
|
|
|
|
|
You can use bookmarks for storing the current position.
As far as i know is no way currently to jump to a random position.
But I guess you could always use 'Find', if you know any thing
about the record you want to jump to(ex primary keys are usually
automunbers)
|
|
|
|
|
GetAbsolutePosition()
SetAbsolutePosition()
Mazy
"If I go crazy then will you still
Call me Superman
If I’m alive and well, will you be
There holding my hand
I’ll keep you by my side with
My superhuman might
Kryptonite"Kryptonite-3 Doors Down
|
|
|
|
|
Hi there,
I’m writing a database project …
I used Access database …
I have 50925 records in this database …
My program is very LOW in opening that in starting up (8 seconds)
Is there any way to improve the SPEED of opening the database ?!!!!!!!!!
NOTICE: I connected to database by ADO (OLEDB JET 4.0).
Regards,
My month article: Game programming by DirectX by Lan Mader.
Please visit in: www.geocities.com/hadi_rezaie/index.html
Hadi Rezaie
|
|
|
|
|
What about using MSDE instead?
int x=1, y=5;
x^=y^=x^=y;
<a href="http://www.codeproject.com/tips/StupidXORTrick.asp" target="_blank">ClickHereForHelp();</a>
|
|
|
|
|
MSDE ???
what is it ????????
I really didn't hear anything about it !!!!
Could you explain about it ???
My month article: Game programming by DirectX by Lan Mader.
Please visit in: www.geocities.com/hadi_rezaie/index.html
Hadi Rezaie
|
|
|
|
|
MSDE stands for Microsoft Desktop engine. It´s a light version of SQL Server, this version comes without the graphical administrative tools.
Follow the Link:
http://www.codeproject.com/useritems/JetMSDE.asp
|
|
|
|
|
Hadi_Rezaie wrote:
MSDE ???
I think desktop version of SQLServer.I don't think it helps you.
Mazy
"If I go crazy then will you still
Call me Superman
If I’m alive and well, will you be
There holding my hand
I’ll keep you by my side with
My superhuman might
Kryptonite"Kryptonite-3 Doors Down
|
|
|
|
|
Yes, it is the desktop SQL engine. Since it is quite a bit faster it might well help.
int x=1, y=5;
x^=y^=x^=y;
<a href="http://www.codeproject.com/tips/StupidXORTrick.asp" target="_blank">ClickHereForHelp();</a>
|
|
|
|
|
how do you create an extra item on your right click menu when you right click on a file? Can this be done in VC??
|
|
|
|
|
See M. Dunn's articles about shell extensions here on CP.
Guide to Writing Shell Extensions[^]
int x=1, y=5;
x^=y^=x^=y;
<a href="http://www.codeproject.com/tips/StupidXORTrick.asp" target="_blank">ClickHereForHelp();</a>
|
|
|
|
|
|
See this[^] series of articles, and look at the other articles in the shell programming section.
"We are the knights who say Ni" (The Knights Who Say Ni)
|
|
|
|
|
Whoops, we're all too quick...
"We are the knights who say Ni" (The Knights Who Say Ni)
|
|
|
|
|
amazing!
tx, i'll have a look.
|
|
|
|
|
Using shell extensions is the most common way, but there is a very less complicated way using the registry, which allows to add commands to the "right click menu" without writing a COM component; just adding a registry key.
Here is a example:
We want to add a new option in the context menu of ".exe" files, well, we open regedit and go to the key "HKEY_CLASSES_ROOT\exefile" (or ".XXX" for other extension). Here, it must be a key called "shell" (if it doesn´t exist, we should create it). Under this key we add the name for the new option in the menu, for example "Scan". Now into the "Scan" key, it should be created a new key called "command", whose default value should be the name of the command to execute when clicking our command, for example "c:\scanner.exe %1" ("%1" is replaced by the file clicked in the explorer)
This allows not adding icons or other extended features.
"nobody knows it, but you´ve got a secret smile, and you use it only for me"
|
|
|
|
|
This question is part logic and part functionality...
I'm not familiar with the combo box control, but want/need to use it.
I have several items in my combo box control (drop down list) and other controls in my dialog that depend upon what is currently selected.
I want my other controls to change when the user "really changes" an item in the drop down list. For example, upon leaving the drop down list, if the selection has changed from what it previously was, then change my other controls. If the user has scrolled through the list, but has left the selected item the same, then don't change my other controls.
In short, I need to know how to react to CComboBox upon exit.
Thanks,
Johnny
|
|
|
|
|
You need to handle the CBN_SELCHANGE notification message from the combobox. You must check, if the selected item is the same as before yourself.
Sonork 100.15206;PavelK
|
|
|
|
|
use the class wizard and add a handler for the CB_SELCHANGE message
-c
A man is like a rusty wheel on a rusty cart,
He sings his song as he rattles along and then he falls apart.
-- Richard Thompson
|
|
|
|
|
john john mackey wrote:
I need to know how to react to CComboBox upon exit.
This would suggest handling CBN_KILLFOCUS. However, its usually CBN_SELENDOK - sent when user selects something from dropdown list.
Are you using MFC?
Tomasz Sowinski -- http://www.shooltz.com
Free your mind and your ass will follow.
|
|
|
|
|
Group,
thanks for quick reply. Yes, I'm using MFC and VC++6.0.
Here is my problem... when I get in my CComboBox control (drop down list), I can use the up/down arrows or cursor to move in my list.
However, I don't want the reaction by other buttons to happen until the CComboBox "no longer has focus AND the selection is different than when entered."
I have tried the following:
void CForceProtectDlg::OnSelEndOkCallSign()
{
//if (m_CallSignIndex != m_comboCallSign.GetCurSel())
// Reset(); // Reset other controls
}
void CForceProtectDlg::OnSetFocusCallSign()
{ // Get the index before changes happen
m_CallSignIndex = m_comboCallSign.GetCurSel();
}
void CForceProtectDlg::OnKillFocusCallSign()
{
if (m_CallSignIndex != m_comboCallSign.GetCurSel())
Reset();
}
None of these have given me the action I want. Stumped...
Johnny
|
|
|
|