Run CFront

prancius
Member Posts: 12
Hello,
I have trouble to test CFront. I would like connect to database open company ...
But i have an error
Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
Hangs on line front.ConnectServerAndOpenDatabase
Client version is 4.00 SP2 (5.0 SP1)
Any sugestion are welcome.
Thank you
I have trouble to test CFront. I would like connect to database open company ...
But i have an error
Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
Hangs on line front.ConnectServerAndOpenDatabase
Client version is 4.00 SP2 (5.0 SP1)
NavisionValue Data; String NavisionPath = "C:\\Program Files\\Microsoft Dynamics NAV\\CSIDE Client\\"; CFrontDotNet front=new CFrontDotNet(NavisionDriverType.Sql,NavisionPath); int CT; // Currentt Table. Keep name short, since we need to type it in a lot int CR; // CurrentRecord. Keep name short, as above front.ConnectServerAndOpenDatabase("Navision", NavisionNetType.SqlDefault, "my_database", 2000, true, false,"demo", "demo"); front.OpenCompany("Test company"); CT = front.OpenTable(18); CR = front.AllocRecord(CT); front.FindFirstRecord(CT, CR); Data = front.GetFieldData(CT, CR, 2); NavisionText NAVText; NAVText = Data; textBox1.Text = NAVText.ToString(); // Important: Close down Navision when finished. front.FreeRecord(CR); front.CloseTable(CT); front.CloseCompany(); front.CloseDatabase(); front.DisconnectServer(); front.Dispose();
Any sugestion are welcome.
Thank you
0
Comments
-
Which version number are you using?
I would suggest using 4.00 SP3.“This posting is provided "AS IS" with no warranties, and confers no rights.”0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions