App hanging during execution


#1

I'm doing an evaluation of Aspose.Slides and I notice that when looping thru the slide collection like:

foreach(Slide slide in object.Slides)
{
//Do stuff here
}


It only loops thru about 30 slides and stops. No exception, nothing.

My environment is ASP.NET 1.1.

Any ideas what's happening (or not) here?


Thx


#2

How many slides your presentation has?
Did you try to use normal “for” instead of “foreach”?


#3

It has 100 slides.

No I didn't use a "for". Will it make a difference?


#4

I tried using a “for loop” and it’s the same thing. Just stops looping
after it’s started with no indication of what’s happening.



In addition, it’s on a hosted server. So I have no idea whats happening in the task manager, event viewer etc.



Any ideas?



#5

Could you send me this presentation for testing?


#6

Here you go…


#7

Well, I have run this shot app with your test.ppt presentation:

Presentation pres = new Presentation(“test.ppt”);
foreach(Slide slide in pres.Slides)
{
System.Console.WriteLine("Position: " + slide.SlidePosition + "; Id: " + slide.SlideId);
}

ang got this output. If I’m not mistaken all 100 slides were iterated.

Position: 1; Id: 256
Position: 2; Id: 258
Position: 3; Id: 259
Position: 4; Id: 260
Position: 5; Id: 261
Position: 6; Id: 262
Position: 7; Id: 263
Position: 8; Id: 264
Position: 9; Id: 265
Position: 10; Id: 266
Position: 11; Id: 267
Position: 12; Id: 268
Position: 13; Id: 269
Position: 14; Id: 270
Position: 15; Id: 271
Position: 16; Id: 272
Position: 17; Id: 273
Position: 18; Id: 274
Position: 19; Id: 275
Position: 20; Id: 276
Position: 21; Id: 277
Position: 22; Id: 278
Position: 23; Id: 279
Position: 24; Id: 280
Position: 25; Id: 281
Position: 26; Id: 282
Position: 27; Id: 283
Position: 28; Id: 284
Position: 29; Id: 285
Position: 30; Id: 286
Position: 31; Id: 287
Position: 32; Id: 288
Position: 33; Id: 289
Position: 34; Id: 290
Position: 35; Id: 291
Position: 36; Id: 292
Position: 37; Id: 293
Position: 38; Id: 294
Position: 39; Id: 295
Position: 40; Id: 296
Position: 41; Id: 297
Position: 42; Id: 298
Position: 43; Id: 299
Position: 44; Id: 300
Position: 45; Id: 301
Position: 46; Id: 302
Position: 47; Id: 303
Position: 48; Id: 304
Position: 49; Id: 305
Position: 50; Id: 306
Position: 51; Id: 307
Position: 52; Id: 308
Position: 53; Id: 309
Position: 54; Id: 310
Position: 55; Id: 311
Position: 56; Id: 312
Position: 57; Id: 313
Position: 58; Id: 314
Position: 59; Id: 315
Position: 60; Id: 316
Position: 61; Id: 317
Position: 62; Id: 318
Position: 63; Id: 319
Position: 64; Id: 320
Position: 65; Id: 321
Position: 66; Id: 322
Position: 67; Id: 323
Position: 68; Id: 324
Position: 69; Id: 325
Position: 70; Id: 326
Position: 71; Id: 327
Position: 72; Id: 328
Position: 73; Id: 329
Position: 74; Id: 330
Position: 75; Id: 331
Position: 76; Id: 332
Position: 77; Id: 333
Position: 78; Id: 334
Position: 79; Id: 335
Position: 80; Id: 336
Position: 81; Id: 337
Position: 82; Id: 338
Position: 83; Id: 339
Position: 84; Id: 340
Position: 85; Id: 341
Position: 86; Id: 342
Position: 87; Id: 343
Position: 88; Id: 344
Position: 89; Id: 345
Position: 90; Id: 346
Position: 91; Id: 347
Position: 92; Id: 348
Position: 93; Id: 349
Position: 94; Id: 350
Position: 95; Id: 351
Position: 96; Id: 352
Position: 97; Id: 353
Position: 98; Id: 354
Position: 99; Id: 355
Position: 100; Id: 356