Click to See Complete Forum and Search --> : VC++.net application does't work from ouside the IDE


Vidya_Amar
April 24th, 2004, 04:22 AM
The application which I am working runs fine from the IDE but gives errors when run from outside either from debug or release folders. The following code generates errors:-
NSLearningNetwork nn(DLL_PATH_NAME);
if (nn.IsInitialized())
{
nn.SetNumberOfInputs(m_nInputs);
nn.SetNumberOfOutputs(m_nOutputs);
nn.LoadWeights(m_szWeightsFile);
float * inputData = new float[m_nInputs];
GetNextInputRow(inputData, 1);
float * outputData = new float[m_nOutputs];
nn.GetResponse(NUMBER_OF_EXEMPLARS, inputData, outputData); CString c; c.Format("outputdata=%lf, inputData=%d",*outputData,*inputData);
AfxMessageBox(c);

StoreForecasts(outputData, m_nOutputs);

delete [] inputData; inputData = NULL; delete [] outputData; outputData = NULL;
}
In the above code, outputData value is too large when run from outside but the value is ok when run from the IDE. This generates Arithmetic overflow error when StoreForecasts() function is called.
How to resolve this issue. I am under pressure to solve this problem at the earliest. Hope to find a solution from the forum.
Vidya

Illuvatan
April 24th, 2004, 12:16 PM
Maybe you should post this question in the approprate forum?

This is the Visual Basic Forum not VC++.NET

greetings UNI

Cimperiali
April 25th, 2004, 01:32 AM
Moved in proper forum

Vidya_Amar
April 26th, 2004, 04:32 AM
I hope I am writing to the VC++.net forum. If not please direct me there.
Is there anyone who can guide me to make the application work from outside the IDE. It works fine from the IDE. Any help would be appreciated.

Vidya

Andy Tacker
April 26th, 2004, 09:48 AM
Did you try to set
check for Airthmetic Overflow ...
something something in Project's properties in IDE?

Vidya_Amar
April 28th, 2004, 02:05 AM
The project which I am working is an old one, developed by someone else. I am not able to find Properties under Project. Do you think some project files are missing? How to get the
Project->properties back?
Hope to get a solution to my problem at the earliest.
Vidya