Origin Ver. and Service Release (Select Help-->About Origin): Origin Pro 8G SR4 v8.0951 (B951)
Operating System: Windows XP
Hello everyone,
I have written a programm in OriginC that runs on all Workstations here without problems. Just on one Computer, which runs the same Origin Version and the same Windows XP like all the others, its not running.
I've narrowed the error down to the following section of code
string strFile = GetOpenBox("*.*", NULL, "", "Bitte Datensatz auswählen"); // Öffnet "Datei öffnen"-Dialog
if( strFile.IsEmpty() ) // Kontrolle ob Datei gewählt wurde
{
out_str("Bitte einen Datensatz auswählen!");
return;
}
string fileName = GetFileName(strFile);
printf(strFile);
Worksheet tabelleDaten("Daten"); // Erstellen der Daten-Tabelle
tabelleDaten.Create("Origin.OTW");
tabelleDaten.GetPage().Rename("Daten");
WorksheetPage PageDaten = Project.Pages();
PageDaten.Label = (fileName);
PageDaten.TitleShow = WIN_TITLE_SHOW_BOTH;
ASCIMP ascimp;
if(AscImpReadFileStruct(strFile,&ascimp)==0)
{
ascimp.nNumSep = test_numeric_separator(strFile);
}
The Error occurs in the section marked red, the if clause is not 0 but 1, and hence delivers an error.
The Error is reproducable on that computer, with different files, after restarts and so on, but it doesnt occur on any other workstation.
So, what could be the reason for it, I'm kind of lost....
Other then with the programm I wrote, the computer imports ascii-files just fine (when done manually).
Thanks a lot in advance
Tobi