Strange deployment problem

All of the sudden this morning I’m getting this error when I try to deploy anything (known working programs as well) to my Domino:

[quote]Incrementally deploying assemblies to device
Deploying assemblies for a total size of 21704 bytes
Assemblies successfully deployed to device.
The debugging target and the debugger engine failed to initialize because of unspecified device errors.
The debugger engine thread has terminated unexpectedly with error ‘Object reference not set to an instance of an object.’.[/quote]

Sometimes it works fine, sometimes not.

Must be a Visual Studio thing as it just crashed on me. In addition to the error report above I also see this strange GC dump:

GC: 2msec 63444 bytes used, 936 bytes available

Type 0F (STRING ): 84 bytes

Type 11 (CLASS ): 1032 bytes

Type 12 (VALUETYPE ): 36 bytes

Type 13 (SZARRAY ): 396 bytes

Type 15 (FREEBLOCK ): 936 bytes

Type 17 (ASSEMBLY ): 8976 bytes

Type 18 (WEAKCLASS ): 48 bytes

Type 19 (REFLECTION ): 24 bytes

Type 1B (DELEGATE_HEAD ): 144 bytes

Type 1D (OBJECT_TO_EVENT ): 72 bytes

Type 1E (BINARY_BLOB_HEAD ): 50196 bytes

Type 1F (THREAD ): 768 bytes

Type 20 (SUBTHREAD ): 96 bytes

Type 21 (STACK_FRAME ): 624 bytes

Type 27 (FINALIZER_HEAD ): 96 bytes

Type 31 (IO_PORT ): 108 bytes

Type 34 (APPDOMAIN_HEAD ): 72 bytes

Type 36 (APPDOMAIN_ASSEMBLY ): 672 bytes

Failed allocation for 5 blocks, 60 bytes

Maybe you added assemblies that you shouldn’t add that are eating your memory!

Try new project, you should have over 40K of free RAM

No, very small programs that I have used many times. The total size of the assembly for this program was

[quote]Deploying assemblies for a total size of 21704 bytes
[/quote]

That is not what the GC says! The memory has gone somewhere :slight_smile:

It turns out that if you have PWM hooked to I/0(0) when it reboots it causes the problem. I was feeding the PWM output to the input pin for testing. I’m not sure why it causes this strange error though.