GC don't understand

Bill Baxter dnewsgroup at billbaxter.com
Wed Nov 15 23:29:32 PST 2006


Daniel Keep wrote:
> 
> Nahon wrote:
>> Hi.
>>
>> I'm developing a web server application using threads and sockets. It's quite
>> simple but it throws "Error: Access Violation" and stops responding for
> 
> Access Violations can be caused by a few things.  One of these is
> attempting to use a null object, but it doesn't sound like that.  The
> other is attempting to use an object that's been deleted.
> 

Could also be because you're passing D char[]'s to C functions that 
expect char*.  Any time you call a C function that takes a string, you 
need to call toStringz() on it.

--bb



More information about the Digitalmars-d mailing list