473,394 Members | 1,878 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

TStrings::LoadFromFile and TStrings::LoadFromStream Access ViolationError

Hello all.
for all the tay long I have been having this problem and I have beed
surfing all the web for help, but I can't find a solution.
I am working on a project to open INI Files all the code is done and
working, but when I try to use any of the two functions for file
controlling (Open and Save) the same error apeers and it is the most
important of corse lol...

So, I am working with Borland C++ Builder 6 (unfortunatly this program
will work on windows, bah), and when I try to LoadFromFile or
LoadFromStream in a TStrings or TStringsList (Whitch is inhereted from
TStrings) and Access Violation of Adress apeears and the program stops
untill close, so this go ahead without open the file...

Inicialy I tryed with LoadFromFile and this always returned me the
error, so I saw somewhere that I should use, in LoadFromStream, Shared
file but, this still didn't work...

How can I go arround? :) ... thanks
Dec 19 '07 #1
2 3201
On Tue, 18 Dec 2007 17:48:41 -0800 (PST), "gb*********@gmail.com"
<gb*********@gmail.comwrote:
>Hello all.
for all the tay long I have been having this problem and I have beed
surfing all the web for help, but I can't find a solution.
I am working on a project to open INI Files all the code is done and
working, but when I try to use any of the two functions for file
controlling (Open and Save) the same error apeers and it is the most
important of corse lol...

So, I am working with Borland C++ Builder 6 (unfortunatly this program
will work on windows, bah), and when I try to LoadFromFile or
LoadFromStream in a TStrings or TStringsList (Whitch is inhereted from
TStrings) and Access Violation of Adress apeears and the program stops
untill close, so this go ahead without open the file...

Inicialy I tryed with LoadFromFile and this always returned me the
error, so I saw somewhere that I should use, in LoadFromStream, Shared
file but, this still didn't work...

How can I go arround? :) ... thanks
two notes about your message:

a) It does not belong here. Try borland.cpp.builder.ide (or some
similar group)

b) If you list no code, no one will be able to hint ayt the cause of
the error.

So, write a new message with some code shown, and send it to the
correct usenet group

regards,

Zara
Dec 19 '07 #2
On Dec 19, 6:17 am, Zara <yoz...@terra.eswrote:
On Tue, 18 Dec 2007 17:48:41 -0800 (PST), "gbasilve...@gmail.com"

<gbasilve...@gmail.comwrote:
Hello all.
for all the tay long I have been having this problem and I have beed
surfing all the web for help, but I can't find a solution.
I am working on a project to open INI Files all the code is done and
working, but when I try to use any of the two functions for file
controlling (Open and Save) the same error apeers and it is the most
important of corse lol...
So, I am working with Borland C++ Builder 6 (unfortunatly this program
will work on windows, bah), and when I try to LoadFromFile or
LoadFromStream in a TStrings or TStringsList (Whitch is inhereted from
TStrings) and Access Violation of Adress apeears and the program stops
untill close, so this go ahead without open the file...
Inicialy I tryed with LoadFromFile and this always returned me the
error, so I saw somewhere that I should use, in LoadFromStream, Shared
file but, this still didn't work...
How can I go arround? :) ... thanks

two notes about your message:

a) It does not belong here. Try borland.cpp.builder.ide (or some
similar group)

b) If you list no code, no one will be able to hint ayt the cause of
the error.

So, write a new message with some code shown, and send it to the
correct usenet group

regards,

Zara
I'm sorry ... I didn't remember it could exist a group with that
name...
thank you any how
Dec 19 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Nicola | last post by:
Hi Everyone, I am new to programming and would like to know how to open an access Report from within vb 6. I am trying to write a program to organise cross stitch threads. I have found out how...
11
by: Wolfgang Kaml | last post by:
Hello All, I have been working on this for almost a week now and I haven't anything up my sleeves anymore that I could test in addition or change.... Since I am not sure, if this is a Windows...
5
by: kackson | last post by:
Hi. I would like to access my database outside of my company. I read many documents but they are all pertaining to accessing the database via ASP or some form of web application. Is there no...
17
by: chicha | last post by:
Hey people, I have to convert MS Access 2000 database into mysql database, the whole thing being part of this project I'm doing for one of my faculty classes. My professor somehow presumed I...
0
by: sedefo | last post by:
I ran into this Microsoft Patterns & Practices Enterprise Library while i was researching how i can write a database independent data access layer. In my company we already use Data Access...
63
by: Jerome | last post by:
Hi, I'm a bit confused ... when would I rather write an database application using MS Access and Visual Basic and when (and why) would I rather write it using Visual Studio .Net? Is it as easy...
38
by: Remco Groot Beumer | last post by:
Hello, I'm trying to decide if the following situation would be workable: Generate an MS Access Front End (which will run localy on client computers), which will link to a DBMS (SQL server or...
13
by: bill | last post by:
I am trying to convince a client that dotNet is preferable to an Access project (ADP/ADE). This client currently has a large, pure Access MDB solution with 30+ users, which needs to be upgraded....
2
by: eitsubashkumars | last post by:
I have configured remote access VPN with local pool in ASA firewall however im accessing all the resources(my private network such as servers ) through Asa firewall after getting connected the VPN...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.