C++ Builder IDE >> Access viloation when linking without packages

by Ed Hamilton » Tue, 06 Dec 2005 06:16:42 GMT

I'm linking a program without packages and get an access violation at
startup. The problem is that Grahics::initialization is being called before
Classes:initialization and it can't add stuff to the RegisterIntConsts list
(because it hasn't been created yet). Does anyone know how to force a pascal
object file's initialization code to be called from BCB? The pragma statup
function would do it, except the Classes::initialization label is not
visible.

Thanks,
Ed




Similar Threads

1. Access violation when linking without packages - C++ Builder IDE

2. CString Access Viloation

I've got a DLL, statically linked with MFC, using a CString as one of the 
init parameters.  It gets the CString fine, a comma separated list, and I 
need to parse it into the separate elements.  I can use the Find() and Left 
functions fine, but when I try to use the GetLength() function, it doesn't 
return the correct length, rather than 3, it gives me a number in the 
millions.  Also, when trying to trim off the values read from the beginning 
of the CString, using the Right() funciton, it causes an access violation.  I 
can't figure out why Left() would work and Right() won't.  Any help or 
suggestions are appreciated...

3. Accessing parents of linked cells in Excel without COMException - CSharp/C#

4. Linking packages into a package?

Hi, I haven't got D2005, yet, so I can't check this out myself:
From what I'm reading about people having problems compiling packages, it
seems it's now possible to have packages linked into another package. It
seems package B and package C will be compiled into package A if units from
B and C is in the uses-clause in a unit in A, and B and C isn't in A's
requires-clause. Right? If it is so, then this alone could be enough reason
(for my boss) to upgrade!


5. Provide access to a class without access to the constructor - CSharp/C#

6. Using Access 2002 database without installing Access Server

If server program Access 2002 is installed everything is normal.
But when I use a VC++ *.exe file with a *.mdb 
in the WXPSP2 system without installing 
server program Access 2002 then it:
1. works 3 times slower
2. right-to-left text appears left-to-right in the listbox.
How to fix these in both cases without installing the server program, 
but only with the *.mdb and *.exe program ?
How to use *.mdb with VC++ *.exe without installing 
from MS Office 2002 (or another version) server program
Access ? Maybe I must use newer version of Access file *.mdb ?
Are there some *.dll files which I can install without full installing 
Access server program ?
VC++2008.

7. C# 2005 not packaged without Visual Studio? - CSharp/C#

8. How to C++ exe without installing C++ Redistributable Package

When I tried to deploy the EXE developed using MFC in VS 2008 on to
the client machine, I got the following error: This application has
failed to start because the application configuration is incorrect.
Reinstalling the application may fix the problem. I did some research
and noticed that this is a common problem if I install EXE onto
machine without C++ installed. It seems Microsoft requires to install C
++ Redistributable Package on client machine.

However in my senario, the client machine has strong requirement that
I can't install anything physical onto the machine and my EXE can only
be run in a USB drive. Is there anything I can do to make my
application run on the client machine without installing anything?
Recompile my work in VS 6?

Thanks in advance...