| От | Michael Glaesemann |
|---|---|
| Тема | Re: E_BAD_ACCESS with palloc/pfree in base type |
| Дата | |
| Msg-id | 5023C018-C766-42DB-A9BF-492252B5EF9D@seespotcode.net обсуждение |
| Ответ на | Re: E_BAD_ACCESS with palloc/pfree in base type (Gregory Stark <stark@enterprisedb.com>) |
| Список | pgsql-general |
On Aug 31, 2007, at 3:02 , Gregory Stark wrote: > "Michael Glaesemann" <grzm@seespotcode.net> writes: > >> char * theDigits = malloc(sizeof(XTypeMaximumStringLength)); > ... >> char * subscriberNumber = malloc(XTypeMaximumStringLength); > > One of those two is wrong, I suspect the first one. Thanks, Greg. It looks like that was it. Always good to have a fresh pair of eyes. > I wonder how you define > XTypeMaximumStringLength as sizeof(<integer constant>) ought to give a > compile-time error. It's an enum value. I do have a few compiler warnings (no errors) left to clean up, but that doesn't appear to be one of them. Thanks again for your help! Michael Glaesemann grzm seespotcode net
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера