[maxmsp] textedit bug!
ingo randolf
ingo at quitch.net
Thu Aug 2 05:25:03 MDT 2007
- Previous message: [maxmsp] ANNOUNCE: Panaiotis Objects for OSX UB and XP available
- Next message: [maxmsp] Re: textedit bug!
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
hello. i had troubles with a patch which crashed randomly, at least it seemed randomly... on windows max crashed with this error-message: __________________________ Microsoft Visual C++ Runtime Library Runtime Error! Program C:\.....program R6025 - pure virtual function call ___________________________ i figured out, that this was related to an error an mxj-object threw (net.multi.send) i broke the crashes down to the textedit object. (i used it to be able to debug in runtime-version without the status window) there seems to be a maximum number of lines the textedit object is able to handle. the maximum count of lines depends on the length of the appended text, and the platform... i wrote a test-patch, which writes a counting number to a file, before appending a text. a sentence with the length of 21 characters could be appended 1024 times on a mac, and 1365 time on windows (both max 4.6.3) - a word with 5 characters could be appended 2048 time on a mac and 2731 time on windows... with a longer text, max crashed earlier. here is a patch: #P window setfont "Sans Serif" 9.; #P window linecount 1; #P comment 472 131 100 196617 turn on; #P comment 472 116 100 196617 2.; #P comment 637 183 100 196617 1.; #P comment 608 246 136 196617 <- press here to get linefeed; #P message 512 192 21 196617 inc; #P newex 449 174 30 196617 t b b; #P number 512 234 50 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0; #P user incdec 512 213 15 15 0 0; #P toggle 449 131 15 0; #P newex 449 152 52 196617 metro 20; #P newex 574 283 62 196617 prepend set; #P message 359 114 33 196617 clear; #P newex 449 278 78 196617 prepend append; #P message 449 259 104 196617 crash coming soon ...; #P newex 449 301 53 196617 append br; #P newex 574 263 40 196617 itoa; #P message 574 244 20 196617 13; #P newex 574 225 48 196617 loadbang; #P user textedit 102 130 392 563 32816 3 9; #P window linecount 3; #P comment 635 198 100 196617 if you pasted the patch \, the loadbang does not go off.; #P hidden connect 8 0 1 0; #P hidden connect 5 0 1 0; #P connect 6 0 7 0; #P connect 7 0 5 0; #P connect 9 0 5 0; #P connect 2 0 3 0; #P connect 3 0 4 0; #P connect 4 0 9 0; #P connect 11 0 10 0; #P connect 12 0 13 0; #P connect 10 0 14 0; #P connect 14 0 6 0; #P connect 15 0 12 0; #P connect 14 1 15 0; #P window clipboard copycount 20; you can avoid the crash by clearing the textedit-object... reproducable? some solutions? greets ingo
- Previous message: [maxmsp] ANNOUNCE: Panaiotis Objects for OSX UB and XP available
- Next message: [maxmsp] Re: textedit bug!
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
