Ошибка base 1132


04 дек 2012 09:39 #80
от Ольга

Добрый день. Прошу помощи или хотя бы совета.. Есть программа калькуляций, написана на клиппере. Исходников нет. Работает в настоящее время под Windows XP SP3. Возникла острая необходимость переноса этой программы на другой компьютер. Дело в том, что в аннотации автор предупреждает, что «программа привязана к конкретному компьютеру и простым копированием не переносится». Мы бы обратились к разработчику, но человек умер…
Я перенесла все: и папку с программой, и системные NT-файлы CONFIG и AUTOEXEC.Поначалу при запуске вылетало бесконечное «несанкционированное использование». Поместила все на С. Теперь запускается оболочка, и вылетает ошибка «BASE/1132 выход за границы индекса:array access». В чем собственно вопрос:как декомпилировать экзешник (может быть я смогу выяснить, к чему конкретно привязана программа).Я скачала Valkyrie 5,но к моему стыду не понимаю, как ей пользоваться? Или может быть что-то еще надо прописать? (где-то здесь, на сайте что-то читала еще про config.sys и autoexec.bat…)Заранее извиняюсь, если вопрос не в том месте задала. Спасибо.

Пожалуйста Войти или Регистрация, чтобы присоединиться к беседе.


05 дек 2012 10:0805 дек 2012 10:11 #81
от Admin

Valkyrie запускается как VPP5 <myfile> или V5 <myfile>
Попробуйте еще декомпилятор
для Clipper 5 — RESCUE5
запускать RESCUE5.EXE <ваш.exe>. Запустить два раза.
Если clipper-exe шник сжат, то декомпиляция не получится, по крайней мере просто.
Если не получится — можете выслать Ваш exe-шник (лучше всю программу с базами) на Адрес электронной почты защищен от спам-ботов. Для просмотра адреса в вашем браузере должен быть включен Javascript. — посмотрю, мож чем помогу.

Спасибо сказали: Ольга

Пожалуйста Войти или Регистрация, чтобы присоединиться к беседе.


05 дек 2012 14:29 #84
от Ольга

Проблема решена!Интересно было бы конечно узнать, прописано ли что-то в exe-шнике моего наследства, но неудобно загружать людей: декомпиляция и анализ результатов может занять немало времени. (Если кому интересно, я могу выслать). Дело оказалось в следующем: на экране ПК, где расположен работающий вариант программы, есть соответствующий ярлык запуска. Я наивно полагала, что это тоже самое, что запустить exe-файл из корневой папки, где лежит весь каталог программы! Так вот, ярлык оказался хитрый, с расширением *.pif, и в его свойствах на вкладке программа написано: команда- F:\KALK\KALK.EXE pole, рабочая папка-F:\KALK.Когда я скопировала именно этот файлик (который лежал в профиле пользователя, а не в папке с программой) и папку с программой, подправила пути, все запустилось…. Так что Всех с Наступающим НГ, стабильно работающих программ и беспроблемных пользователей!

Пожалуйста Войти или Регистрация, чтобы присоединиться к беседе.

Posted on January 22, 2014 by vivaclipper

Template

Run time error

Name

BASE/1132

Category

Run time errors

Oneliner

Bound error in array access

Description

The specified index into an array was greater then the number of elements in the array.

Compliance

Clipper

One response to “BASE/1132

  1. Pingback: Run Time Error Messages | Viva Clipper !

Leave a Reply

Enter your comment here…

Fill in your details below or click an icon to log in:

Gravatar

Email (required) (Address never made public)

WordPress.com Logo


You are commenting using your WordPress.com account.
( Log Out / 
Change )

Twitter picture


You are commenting using your Twitter account.
( Log Out / 
Change )

Facebook photo


You are commenting using your Facebook account.
( Log Out / 
Change )

Notify me of new comments via email.

Notify me of new posts via email.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Contact US

Thanks. We have received your request and will respond promptly.

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!

  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It’s Free!

*Tek-Tips’s functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Error BASE/1132 Bound Error Array Access

Error BASE/1132 Bound Error Array Access

(OP)

14 Oct 02 16:32

When my Clipper 5.2x application writes to a database file about halfway through the process I get the error:

Error BASE/1132 Bound Error Array Access

It is just a simple writing variables to a clipper database. I am not using arrays in this function. This happens nowhere else in my application where I write to numerous data files

Any ideas?

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Join Tek-Tips® Today!

Join your peers on the Internet’s largest technical computer professional community.
It’s easy to join and it’s free.

Here’s Why Members Love Tek-Tips Forums:

  • Tek-Tips ForumsTalk To Other Members
  • Notification Of Responses To Questions
  • Favorite Forums One Click Access
  • Keyword Search Of All Posts, And More…

Register now while it’s still free!

Already a member? Close this window and log in.

Join Us             Close


Форум программистов Vingrad

> Клипперованная прога вызывает Bound error в Win XP, Вылетает при попытке добавить запись 

:(

Опции темы

Гость_Geolog

Unregistered

Люди, Help!
На машине с Win XP стоит прога 1991 года — клипперованная. При входе в режим добавления или редактирования таблиц данных вылазит ошибка:

Error BASE1132 Bound error : array access

Чего делать? На клиппере никогда не писал, поэтому даже не знаю, что она означает, и где искать ответ. smile

  Вверх
Guest

Unregistered

если исходников нет — гиблое дело

  Вверх
Cashey

Бессмертный
****

Профиль
Группа: Завсегдатай
Сообщений: 3441
Регистрация: 13.11.2002
Где: в столице

Репутация: 13
Всего: 60

Может и не гиблое, но дело плохо это однозначно. Скорее всего дело не в винде и не в программе, а базе, точнее в данных которые находятся в таблицах. Но для очистки совести попробуй запускать программу из-под нортана. Если не поможет в Клиппере не разбираешься, но знаешь другие языки программирования то законекся к таблицам через BDE или ODBC и переделай программу. Или же покажи прогу и данные специалистам, но тут скорее всего исходники нужны будут

———————

библия учит любить ближнего, а камасутра обучает как именно

Vlad04

Unregistered

Решил проблему или нет? Ошибка означает , что вышел за границы массива.
Для работы Клиппер программы должно быть настроено окружение.
Обратись на форум клиппер программистов
http://clipper.fastbb.ru/?-0

  Вверх



















Правила форума «Foxpro/Clipper/Dbase»
MoLeX

Запрещается!

1. Публиковать ссылки для чисто рекламных целей.

2. Оффтопить, флеймить, говорить не культурно.

Пожалуйста, адекватно задавайте свой вопрос. Тема должна создаваться с названием характеризующем Вашу проблему.

Задавайте вопросы правильно — как спросите, так вам и ответят.

Разрешено!

Давать ссылки на статьи, обзоры, если это не нарушает первый пункт правил.

Задавая вопрос, давайте нужную информацию касающуюся Вашей проблемы. Этим вы ускорите полезные ответы.

P.S. Размещение рекламы будет строго наказываться!


Если Вам понравилась атмосфера форума, заходите к нам чаще! С уважением, MoLeX

0 Пользователей читают эту тему (0 Гостей и 0 Скрытых Пользователей)
0 Пользователей:
« Предыдущая тема | Foxpro/Clipper/Dbase | Следующая тема »

Rathinagiri wrote:
PrihtGrid has to be revamped. I will try to do that.

Hi Rathi,

«PrihtGrid» is a blessed piece of code, invaluable in the the difficult area of windows printing.
It indeed makes our life easier —I speak for myself but I believe many would agree on that.
A «big thank!» is the least I can say.

In case you plan to update/refresh it, I have some thoughts that I’d like
to propose here (you decide if and what is doable.)

=> Do it to be «version neutral». What I mean with that is,
— make it to work on any minigui version, Official and Extended.[*][/b]

=> Add option/ability:
— to select what columns will be printed (important)
— to define the height of rows
— to define the position and the font type/size of the main headers (left, center, right)
(and if possible the headers of columns, also)

(that’s for now, but I’m sure have forgotten something, so perhaps I’ll come back .. :-))

regards,


Pete

_________________________________________________________________
[*][/b] I always was a proponent of unification of the two versions,
(we use an ancient dictum in my «village», that says «in the unity is the power»)
but as usually, things rarely follow our wishes. Anyway..

I’m writing windows program with C and Visual Studio. I have to map a file than access it from it’s 750th byte. I tried

pFile = (char *) MapViewOfFile(hMMap,FILE_MAP_ALL_ACCESS,0,(DWORD) 750,0)

open file with this but it returns error 1132.

ERROR_MAPPED_ALIGNMENT
1132 (0x46C)
The base address or the file offset specified does not have the proper alignment.

How can resolve this?

asked Dec 20, 2011 at 23:46

Ömer Faruk AK's user avatar

Ömer Faruk AKÖmer Faruk AK

2,4095 gold badges25 silver badges47 bronze badges

The documentation of MapViewOfFile is pretty clear that the offset has to be a multiple of the allocation granularity (which is normally 64KB I believe, but call GetSystemInfo to get true actual value as the documentation states).

So since 750 is smaller than the allocation granularity you’ll have to map the file from 0. If you really need your pointer to the 750th byte, then just increment the pointer

pFile = (char *) MapViewOfFile(hMMap,FILE_MAP_ALL_ACCESS,0,(DWORD) 0,0);
char* pBuffer = pFile + 750;

You’ll need a second buffer because you will have to pass pFile to UnmapViewOfFile

answered Dec 20, 2011 at 23:55

shf301's user avatar

1

I presume that you have to access the file from its 750th byte, not that you have to create the map from this offset. As you’ve discovered, you can’t do this because the offset that you pass to MapViewOfFile must be a multiple of the system’s «allocation granularity» which you can get from GetSystemInfo, but tends to be at least 4kbytes, IIRC.

You can create a view of the file which starts at byte 0 and just read from 750 bytes beyond the returned address.

answered Dec 20, 2011 at 23:54

CB Bailey's user avatar

CB BaileyCB Bailey

740k102 gold badges630 silver badges655 bronze badges

The offset in the file has to be a multiple of 4k (so 750 doesn’t work)

You’ll probably be better off mapping the file from 0 and just offsetting 750 from the mapped address.

answered Dec 20, 2011 at 23:54

antlersoft's user avatar

antlersoftantlersoft

14.6k4 gold badges35 silver badges55 bronze badges


Форум программистов Vingrad

> Клипперованная прога вызывает Bound error в Win XP, Вылетает при попытке добавить запись 

:(

Опции темы

Гость_Geolog

Unregistered

Люди, Help!
На машине с Win XP стоит прога 1991 года — клипперованная. При входе в режим добавления или редактирования таблиц данных вылазит ошибка:

Error BASE1132 Bound error : array access

Чего делать? На клиппере никогда не писал, поэтому даже не знаю, что она означает, и где искать ответ. smile

  Вверх
Guest

Unregistered

если исходников нет — гиблое дело

  Вверх
Cashey

Бессмертный
****

Профиль
Группа: Завсегдатай
Сообщений: 3441
Регистрация: 13.11.2002
Где: в столице

Репутация: 13
Всего: 60

Может и не гиблое, но дело плохо это однозначно. Скорее всего дело не в винде и не в программе, а базе, точнее в данных которые находятся в таблицах. Но для очистки совести попробуй запускать программу из-под нортана. Если не поможет в Клиппере не разбираешься, но знаешь другие языки программирования то законекся к таблицам через BDE или ODBC и переделай программу. Или же покажи прогу и данные специалистам, но тут скорее всего исходники нужны будут

———————

библия учит любить ближнего, а камасутра обучает как именно

Vlad04

Unregistered

Решил проблему или нет? Ошибка означает , что вышел за границы массива.
Для работы Клиппер программы должно быть настроено окружение.
Обратись на форум клиппер программистов
http://clipper.fastbb.ru/?-0

  Вверх



















Правила форума «Foxpro/Clipper/Dbase»
MoLeX

Запрещается!

1. Публиковать ссылки для чисто рекламных целей.

2. Оффтопить, флеймить, говорить не культурно.

Пожалуйста, адекватно задавайте свой вопрос. Тема должна создаваться с названием характеризующем Вашу проблему.

Задавайте вопросы правильно — как спросите, так вам и ответят.

Разрешено!

Давать ссылки на статьи, обзоры, если это не нарушает первый пункт правил.

Задавая вопрос, давайте нужную информацию касающуюся Вашей проблемы. Этим вы ускорите полезные ответы.

P.S. Размещение рекламы будет строго наказываться!


Если Вам понравилась атмосфера форума, заходите к нам чаще! С уважением, MoLeX

0 Пользователей читают эту тему (0 Гостей и 0 Скрытых Пользователей)
0 Пользователей:
« Предыдущая тема | Foxpro/Clipper/Dbase | Следующая тема »

INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Contact US

Thanks. We have received your request and will respond promptly.

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!

  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It’s Free!

*Tek-Tips’s functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Error BASE/1132 Bound Error Array Access

Error BASE/1132 Bound Error Array Access

(OP)

14 Oct 02 16:32

When my Clipper 5.2x application writes to a database file about halfway through the process I get the error:

Error BASE/1132 Bound Error Array Access

It is just a simple writing variables to a clipper database. I am not using arrays in this function. This happens nowhere else in my application where I write to numerous data files

Any ideas?

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Join Tek-Tips® Today!

Join your peers on the Internet’s largest technical computer professional community.
It’s easy to join and it’s free.

Here’s Why Members Love Tek-Tips Forums:

  • Tek-Tips ForumsTalk To Other Members
  • Notification Of Responses To Questions
  • Favorite Forums One Click Access
  • Keyword Search Of All Posts, And More…

Register now while it’s still free!

Already a member? Close this window and log in.

Join Us             Close

Rathinagiri wrote:
PrihtGrid has to be revamped. I will try to do that.

Hi Rathi,

«PrihtGrid» is a blessed piece of code, invaluable in the the difficult area of windows printing.
It indeed makes our life easier —I speak for myself but I believe many would agree on that.
A «big thank!» is the least I can say.

In case you plan to update/refresh it, I have some thoughts that I’d like
to propose here (you decide if and what is doable.)

=> Do it to be «version neutral». What I mean with that is,
— make it to work on any minigui version, Official and Extended.[*][/b]

=> Add option/ability:
— to select what columns will be printed (important)
— to define the height of rows
— to define the position and the font type/size of the main headers (left, center, right)
(and if possible the headers of columns, also)

(that’s for now, but I’m sure have forgotten something, so perhaps I’ll come back .. :-))

regards,


Pete

_________________________________________________________________
[*][/b] I always was a proponent of unification of the two versions,
(we use an ancient dictum in my «village», that says «in the unity is the power»)
but as usually, things rarely follow our wishes. Anyway..

Viva Clipper !

Notes of a Clipper Language Student

Posted on January 22, 2014 by vivaclipper

Template

Run time error

Name

BASE/1132

Category

Run time errors

Oneliner

Bound error in array access

Description

The specified index into an array was greater then the number of elements in the array.

Compliance

Clipper

One response to “BASE/1132

  1. Pingback: Run Time Error Messages | Viva Clipper !

Leave a Reply

Enter your comment here…

Fill in your details below or click an icon to log in:

Gravatar

Email (required) (Address never made public)

WordPress.com Logo


You are commenting using your WordPress.com account.
( Log Out / 
Change )

Facebook photo


You are commenting using your Facebook account.
( Log Out / 
Change )

Notify me of new comments via email.

Notify me of new posts via email.

This site uses Akismet to reduce spam. Learn how your comment data is processed.


Форум программистов Vingrad

Поиск:

Ответ в темуСоздание новой темы
Создание опроса
> Клипперованная прога вызывает Bound error в Win XP, Вылетает при попытке добавить запись 

:(

   

Опции темы

Гость_Geolog
Дата 29.7.2005, 13:48 (ссылка)
   |    (голосов: 0)
Загрузка ... Загрузка …




Быстрая цитата

Цитата

Unregistered

Люди, Help!
На машине с Win XP стоит прога 1991 года — клипперованная. При входе в режим добавления или редактирования таблиц данных вылазит ошибка:

Error BASE\1132 Bound error : array access

Чего делать? На клиппере никогда не писал, поэтому даже не знаю, что она означает, и где искать ответ. smile

  Вверх
Guest
Дата 17.9.2005, 22:56 (ссылка)
   |    (голосов: 0)
Загрузка ... Загрузка …




Быстрая цитата

Цитата

Unregistered

если исходников нет — гиблое дело

  Вверх
Cashey
Дата 20.9.2005, 00:19 (ссылка)
| (нет голосов)
Загрузка ... Загрузка …




Быстрая цитата

Цитата

Бессмертный
****

Профиль
Группа: Завсегдатай
Сообщений: 3441
Регистрация: 13.11.2002
Где: в столице

Репутация: 13
Всего: 60

Может и не гиблое, но дело плохо это однозначно. Скорее всего дело не в винде и не в программе, а базе, точнее в данных которые находятся в таблицах. Но для очистки совести попробуй запускать программу из-под нортана. Если не поможет в Клиппере не разбираешься, но знаешь другие языки программирования то законекся к таблицам через BDE или ODBC и переделай программу. Или же покажи прогу и данные специалистам, но тут скорее всего исходники нужны будут

———————

библия учит любить ближнего, а камасутра обучает как именно

PM Jabber   Вверх
Vlad04
Дата 30.10.2005, 05:28 (ссылка)
   |    (голосов: 0)
Загрузка ... Загрузка …




Быстрая цитата

Цитата

Unregistered

Решил проблему или нет? Ошибка означает , что вышел за границы массива.
Для работы Клиппер программы должно быть настроено окружение.
Обратись на форум клиппер программистов
http://clipper.fastbb.ru/?-0

  Вверх



















Ответ в темуСоздание новой темы
Создание опроса
Правила форума «Foxpro/Clipper/Dbase»
MoLeX

Запрещается!

1. Публиковать ссылки для чисто рекламных целей.

2. Оффтопить, флеймить, говорить не культурно.

Пожалуйста, адекватно задавайте свой вопрос. Тема должна создаваться с названием характеризующем Вашу проблему.

Задавайте вопросы правильно — как спросите, так вам и ответят.

Разрешено!

Давать ссылки на статьи, обзоры, если это не нарушает первый пункт правил.

Задавая вопрос, давайте нужную информацию касающуюся Вашей проблемы. Этим вы ускорите полезные ответы.

P.S. Размещение рекламы будет строго наказываться!


Если Вам понравилась атмосфера форума, заходите к нам чаще! С уважением, MoLeX

 

0 Пользователей читают эту тему (0 Гостей и 0 Скрытых Пользователей)
0 Пользователей:
« Предыдущая тема | Foxpro/Clipper/Dbase | Следующая тема »

Posted on January 22, 2014 by vivaclipper

Template

Run time error

Name

BASE/1132

Category

Run time errors

Oneliner

Bound error in array access

Description

The specified index into an array was greater then the number of elements in the array.

Compliance

Clipper

One response to “BASE/1132

  1. Pingback: Run Time Error Messages | Viva Clipper !

Leave a Reply

Enter your comment here…

Fill in your details below or click an icon to log in:

Gravatar

Email (required) (Address never made public)

WordPress.com Logo


You are commenting using your WordPress.com account.
( Log Out / 
Change )

Twitter picture


You are commenting using your Twitter account.
( Log Out / 
Change )

Facebook photo


You are commenting using your Facebook account.
( Log Out / 
Change )

Notify me of new comments via email.

Notify me of new posts via email.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Contact US

Thanks. We have received your request and will respond promptly.

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!

  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It’s Free!

*Tek-Tips’s functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Error BASE/1132 Bound Error Array Access

Error BASE/1132 Bound Error Array Access

(OP)

14 Oct 02 16:32

When my Clipper 5.2x application writes to a database file about halfway through the process I get the error:

Error BASE/1132 Bound Error Array Access

It is just a simple writing variables to a clipper database. I am not using arrays in this function. This happens nowhere else in my application where I write to numerous data files

Any ideas?

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Join Tek-Tips® Today!

Join your peers on the Internet’s largest technical computer professional community.
It’s easy to join and it’s free.

Here’s Why Members Love Tek-Tips Forums:

  • Tek-Tips ForumsTalk To Other Members
  • Notification Of Responses To Questions
  • Favorite Forums One Click Access
  • Keyword Search Of All Posts, And More…

Register now while it’s still free!

Already a member? Close this window and log in.

Join Us             Close


Форум программистов Vingrad

> Клипперованная прога вызывает Bound error в Win XP, Вылетает при попытке добавить запись 

:(

Опции темы

Гость_Geolog

Unregistered

Люди, Help!
На машине с Win XP стоит прога 1991 года — клипперованная. При входе в режим добавления или редактирования таблиц данных вылазит ошибка:

Error BASE1132 Bound error : array access

Чего делать? На клиппере никогда не писал, поэтому даже не знаю, что она означает, и где искать ответ. smile

  Вверх
Guest

Unregistered

если исходников нет — гиблое дело

  Вверх
Cashey

Бессмертный
****

Профиль
Группа: Завсегдатай
Сообщений: 3441
Регистрация: 13.11.2002
Где: в столице

Репутация: 13
Всего: 60

Может и не гиблое, но дело плохо это однозначно. Скорее всего дело не в винде и не в программе, а базе, точнее в данных которые находятся в таблицах. Но для очистки совести попробуй запускать программу из-под нортана. Если не поможет в Клиппере не разбираешься, но знаешь другие языки программирования то законекся к таблицам через BDE или ODBC и переделай программу. Или же покажи прогу и данные специалистам, но тут скорее всего исходники нужны будут

———————

библия учит любить ближнего, а камасутра обучает как именно

Vlad04

Unregistered

Решил проблему или нет? Ошибка означает , что вышел за границы массива.
Для работы Клиппер программы должно быть настроено окружение.
Обратись на форум клиппер программистов
http://clipper.fastbb.ru/?-0

  Вверх



















Правила форума «Foxpro/Clipper/Dbase»
MoLeX

Запрещается!

1. Публиковать ссылки для чисто рекламных целей.

2. Оффтопить, флеймить, говорить не культурно.

Пожалуйста, адекватно задавайте свой вопрос. Тема должна создаваться с названием характеризующем Вашу проблему.

Задавайте вопросы правильно — как спросите, так вам и ответят.

Разрешено!

Давать ссылки на статьи, обзоры, если это не нарушает первый пункт правил.

Задавая вопрос, давайте нужную информацию касающуюся Вашей проблемы. Этим вы ускорите полезные ответы.

P.S. Размещение рекламы будет строго наказываться!


Если Вам понравилась атмосфера форума, заходите к нам чаще! С уважением, MoLeX

0 Пользователей читают эту тему (0 Гостей и 0 Скрытых Пользователей)
0 Пользователей:
« Предыдущая тема | Foxpro/Clipper/Dbase | Следующая тема »

Rathinagiri wrote:
PrihtGrid has to be revamped. I will try to do that.

Hi Rathi,

«PrihtGrid» is a blessed piece of code, invaluable in the the difficult area of windows printing.
It indeed makes our life easier —I speak for myself but I believe many would agree on that.
A «big thank!» is the least I can say.

In case you plan to update/refresh it, I have some thoughts that I’d like
to propose here (you decide if and what is doable.)

=> Do it to be «version neutral». What I mean with that is,
— make it to work on any minigui version, Official and Extended.[*][/b]

=> Add option/ability:
— to select what columns will be printed (important)
— to define the height of rows
— to define the position and the font type/size of the main headers (left, center, right)
(and if possible the headers of columns, also)

(that’s for now, but I’m sure have forgotten something, so perhaps I’ll come back .. :-))

regards,


Pete

_________________________________________________________________
[*][/b] I always was a proponent of unification of the two versions,
(we use an ancient dictum in my «village», that says «in the unity is the power»)
but as usually, things rarely follow our wishes. Anyway..

I’m writing windows program with C and Visual Studio. I have to map a file than access it from it’s 750th byte. I tried

pFile = (char *) MapViewOfFile(hMMap,FILE_MAP_ALL_ACCESS,0,(DWORD) 750,0)

open file with this but it returns error 1132.

ERROR_MAPPED_ALIGNMENT
1132 (0x46C)
The base address or the file offset specified does not have the proper alignment.

How can resolve this?

asked Dec 20, 2011 at 23:46

Ömer Faruk AK's user avatar

Ömer Faruk AKÖmer Faruk AK

2,4095 gold badges25 silver badges47 bronze badges

The documentation of MapViewOfFile is pretty clear that the offset has to be a multiple of the allocation granularity (which is normally 64KB I believe, but call GetSystemInfo to get true actual value as the documentation states).

So since 750 is smaller than the allocation granularity you’ll have to map the file from 0. If you really need your pointer to the 750th byte, then just increment the pointer

pFile = (char *) MapViewOfFile(hMMap,FILE_MAP_ALL_ACCESS,0,(DWORD) 0,0);
char* pBuffer = pFile + 750;

You’ll need a second buffer because you will have to pass pFile to UnmapViewOfFile

answered Dec 20, 2011 at 23:55

shf301's user avatar

1

I presume that you have to access the file from its 750th byte, not that you have to create the map from this offset. As you’ve discovered, you can’t do this because the offset that you pass to MapViewOfFile must be a multiple of the system’s «allocation granularity» which you can get from GetSystemInfo, but tends to be at least 4kbytes, IIRC.

You can create a view of the file which starts at byte 0 and just read from 750 bytes beyond the returned address.

answered Dec 20, 2011 at 23:54

CB Bailey's user avatar

CB BaileyCB Bailey

740k102 gold badges630 silver badges655 bronze badges

The offset in the file has to be a multiple of 4k (so 750 doesn’t work)

You’ll probably be better off mapping the file from 0 and just offsetting 750 from the mapped address.

answered Dec 20, 2011 at 23:54

antlersoft's user avatar

antlersoftantlersoft

14.6k4 gold badges35 silver badges55 bronze badges

INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Contact US

Thanks. We have received your request and will respond promptly.

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!

  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It’s Free!

*Tek-Tips’s functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Error BASE/1132 Bound Error Array Access

Error BASE/1132 Bound Error Array Access

(OP)


When my Clipper 5.2x application writes to a database file about halfway through the process I get the error:

Error BASE/1132 Bound Error Array Access

It is just a simple writing variables to a clipper database. I am not using arrays in this function. This happens nowhere else in my application where I write to numerous data files

Any ideas?

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Join Tek-Tips® Today!

Join your peers on the Internet’s largest technical computer professional community.
It’s easy to join and it’s free.

Here’s Why Members Love Tek-Tips Forums:

  • Tek-Tips ForumsTalk To Other Members
  • Notification Of Responses To Questions
  • Favorite Forums One Click Access
  • Keyword Search Of All Posts, And More…

Register now while it’s still free!

Already a member? Close this window and log in.

Join Us             Close

Понравилась статья? Поделить с друзьями:
  • Ошибка bas на мерседес w220
  • Ошибка bas на мерседес w203 что означает
  • Ошибка bank 1 sensor 2
  • Ошибка bas на мерседес w203 что значит
  • Ошибка bas asr w202