Click here to Skip to main content
15,916,846 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: Search Database Pin
Christian Graus7-Dec-06 18:40
protectorChristian Graus7-Dec-06 18:40 
GeneralRe: Search Database Pin
The ANZAC7-Dec-06 18:44
The ANZAC7-Dec-06 18:44 
QuestionSet blank for 1st item combolist in VSFlexGrid Pin
angelagke7-Dec-06 17:05
angelagke7-Dec-06 17:05 
QuestionVB script not workng on Win 2000 Pin
japel7-Dec-06 10:53
japel7-Dec-06 10:53 
QuestionRound to nearest quarter of hour Pin
VK-Cadec7-Dec-06 10:07
VK-Cadec7-Dec-06 10:07 
AnswerRe: Round to nearest quarter of hour Pin
Uber17-Dec-06 15:51
Uber17-Dec-06 15:51 
GeneralRe: Round to nearest quarter of hour Pin
Uber17-Dec-06 16:28
Uber17-Dec-06 16:28 
QuestionC++ and VB.NET Pin
Kornfeld Eliyahu Peter7-Dec-06 9:39
professionalKornfeld Eliyahu Peter7-Dec-06 9:39 
Hi,

I have a VC++/MFC application.
I decided to move the UI to VB.NET to improve it.
I created a VB project with new interface and moved the C++ core into a MFC dll project.
When I run the application I got 'Stack owerflow' inside the MFC code.

For code details:
The C++ code does image processing using some recursive functionality, that is the point where the stack sucks up.
It happens when I passing over 4400 iterrations (the maximum is about 12000).

The recursive function looks like this

// Check for continous black areas
void CBitmapScan::CheckAround(CRect* pBound, int nX, int nY)
{
if(oMemDC.GetPixel(nX, nY) == RGB(0x00, 0x00, 0x00))
{
// Remove the pixel to avoid duble-check
oMemDC.SetPixel(nX, nY, RGB(0xff, 0xff, 0xff));

// Set new bounds
if(pBound->left > nX) pBound->left = nX;
if(pBound->right < nX) pBound->right = nX;
if(pBound->top > nY) pBound->top = nY;
if(pBound->bottom < nY) pBound->bottom = nY;

// Check up-down-left-right
CheckAround(pBound, nX + 1, nY);
CheckAround(pBound, nX - 1, nY);
CheckAround(pBound, nX, nY + 1);
CheckAround(pBound, nX, nY - 1);
}
}


Why this happening?!

Thanks in advance


Peter
QuestionHow to get multiple key states simultaneously Pin
Gregbob7-Dec-06 7:41
Gregbob7-Dec-06 7:41 
AnswerRe: How to get multiple key states simultaneously Pin
Christian Graus7-Dec-06 8:11
protectorChristian Graus7-Dec-06 8:11 
QuestionHow to control tab size Pin
adairjk7-Dec-06 5:58
adairjk7-Dec-06 5:58 
Questionmdi application error Pin
kharkov927-Dec-06 5:15
kharkov927-Dec-06 5:15 
AnswerRe: mdi application error Pin
minhnguyen089-Dec-06 1:04
minhnguyen089-Dec-06 1:04 
GeneralRe: mdi application error Pin
kharkov9211-Dec-06 4:07
kharkov9211-Dec-06 4:07 
QuestionCallbackOnCollectedDelegate with keeyboard Hook Pin
tessers7-Dec-06 1:31
tessers7-Dec-06 1:31 
Questionsharing of a translucent form using netmeeting Pin
rumadash7-Dec-06 0:14
rumadash7-Dec-06 0:14 
AnswerRe: sharing of a translucent form using netmeeting Pin
Dave Kreskowiak7-Dec-06 15:04
mveDave Kreskowiak7-Dec-06 15:04 
GeneralRe: sharing of a translucent form using netmeeting Pin
rumadash7-Dec-06 16:00
rumadash7-Dec-06 16:00 
GeneralRe: sharing of a translucent form using netmeeting Pin
Dave Kreskowiak7-Dec-06 18:00
mveDave Kreskowiak7-Dec-06 18:00 
Questionhow to download binary file from SQL SERVER to VB.NET Pin
Syed Ali Raza6-Dec-06 22:27
Syed Ali Raza6-Dec-06 22:27 
AnswerRe: how to download binary file from SQL SERVER to VB.NET Pin
Alessandro7-Dec-06 1:57
Alessandro7-Dec-06 1:57 
QuestionPanels Pin
punam306-Dec-06 20:05
punam306-Dec-06 20:05 
AnswerRe: Panels Pin
Christian Graus6-Dec-06 20:30
protectorChristian Graus6-Dec-06 20:30 
AnswerRe: Panels Pin
obarahmeh7-Dec-06 4:41
obarahmeh7-Dec-06 4:41 
Questiontab movements in windows application Pin
rrrriiizz6-Dec-06 19:01
rrrriiizz6-Dec-06 19:01 

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.