|
|
|
Кто-то сталкивался с ограничениями на размер процедуры в VB?
|
|||
|---|---|---|---|
|
#18+
вот процедурка занимает 1400 строк (ничего сложного, просто длинная линейная последовательность) при компиляции гадина пишет, что сильно большая процедура. Нигде в доках не нашел такого ограничения. Мож кто ткнет носом - а то непонятно, это глюк или так и должно быть. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 01.03.2005, 15:49:39 |
|
||
|
Кто-то сталкивался с ограничениями на размер процедуры в VB?
|
|||
|---|---|---|---|
|
#18+
авторНигде в доках не нашел такого ограничения. Сделал то же самое, получил ошибку. Нажал "Справка". MSDN When compiled, the code for a procedure can't exceed 64K. This error has the following cause and solution: Code for this procedure exceeds 64K when compiled. Break this, and any other large procedures, into two or more smaller procedures. For additional information, select the item in question and press F1. А вот ПОЧЕМУ не может превысить 64К - это уже другой вопрос :-). ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 01.03.2005, 16:18:04 |
|
||
|
Кто-то сталкивался с ограничениями на размер процедуры в VB?
|
|||
|---|---|---|---|
|
#18+
А вот и ПОЧЕМУ... MSDN(Data Limitations) ... If a procedure or module exceeds the 64K code limit, Visual Basic generates a compile-time error. If you define a procedure that has more than 64K of local variables defined, you get the error "Too many local nonstatic variables." If you define a module that has more than 64K of module-level variables defined, or if you define a User-Defined Type larger than 64K, you get the error "Fixed or static data can't be larger than 64K." ... ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 01.03.2005, 16:24:21 |
|
||
|
|

start [/forum/topic.php?fid=60&fpage=337&tid=2168157]: |
0ms |
get settings: |
6ms |
get forum list: |
13ms |
check forum access: |
2ms |
check topic access: |
2ms |
track hit: |
22ms |
get topic data: |
6ms |
get forum data: |
2ms |
get page messages: |
24ms |
get tp. blocked users: |
1ms |
| others: | 190ms |
| total: | 268ms |

| 0 / 0 |
